Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PlanarMechanics.Examples.PendulumExcited,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PendulumExcited") translateModel(PlanarMechanics.Examples.PendulumExcited,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PendulumExcited") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 91.77 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0017/0.0017, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2506/0.2506, allocations: 9.107 MB / 300.2 MB, free: 2.75 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003582/0.0003583, allocations: 12 kB / 363.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1283, allocations: 52.43 MB / 415.5 MB, free: 8.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.2986/0.4269, allocations: 28.03 MB / 443.6 MB, free: 28.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02016/0.4471, allocations: 6.531 MB / 450.1 MB, free: 23.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01009/0.4572, allocations: 116 kB / 450.2 MB, free: 23.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00623/0.4635, allocations: 1.377 MB / 451.6 MB, free: 23.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02029/0.4839, allocations: 4.845 MB / 456.4 MB, free: 21.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002475/0.4864, allocations: 142.8 kB / 456.6 MB, free: 21.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005731/0.4922, allocations: 2.757 MB / 459.3 MB, free: 20.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003083/0.4953, allocations: 0.8704 MB / 460.2 MB, free: 19.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00266/0.498, allocations: 0.8025 MB / 461 MB, free: 19.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00296/0.501, allocations: 1.283 MB / 462.3 MB, free: 19.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001097/0.5021, allocations: 133.6 kB / 462.4 MB, free: 19.01 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002338/0.5045, allocations: 0.6664 MB / 463.1 MB, free: 18.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001953/0.5064, allocations: 1.1 MB / 464.2 MB, free: 18.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001521/0.508, allocations: 0.6468 MB / 464.8 MB, free: 18.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00544/0.5134, allocations: 3.725 MB / 468.6 MB, free: 17.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.5135, allocations: 0 / 468.6 MB, free: 17.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.276e-06/0.5135, allocations: 0.7031 kB / 468.6 MB, free: 17.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002444/0.5137, allocations: 0 / 468.6 MB, free: 17.16 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1181 * Number of variables: 1181 Notification: Performance of Generate backend data structure: time 0.01208/0.5258, allocations: 3.68 MB / 472.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/0.5259, allocations: 10.52 kB / 472.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008281/0.5342, allocations: 1.809 MB / 474.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004469/0.5387, allocations: 1.323 MB / 475.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002162/0.5389, allocations: 150.6 kB / 475.5 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008239/0.5398, allocations: 196.3 kB / 475.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01988/0.5596, allocations: 8.185 MB / 483.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.846e-05/0.5598, allocations: 20.31 kB / 483.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003331/0.5601, allocations: 96.39 kB / 484 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003608/0.5637, allocations: 1.921 MB / 485.9 MB, free: 9.793 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02068/0.5844, allocations: 7.402 MB / 493.3 MB, free: 5.918 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04437/0.6288, allocations: 24.92 MB / 0.5061 GB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006545/0.6354, allocations: 2.4 MB / 0.5085 GB, free: 9.969 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001976/0.6375, allocations: 0.8715 MB / 0.5093 GB, free: 9.098 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008548/0.6461, allocations: 4.435 MB / 0.5136 GB, free: 4.246 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.168e-05/0.6462, allocations: 47.55 kB / 0.5137 GB, free: 4.191 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 5.661e-06/0.6462, allocations: 3.938 kB / 0.5137 GB, free: 4.188 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01268/0.6589, allocations: 4.657 MB / 0.5182 GB, free: 15.52 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.767e-05/0.659, allocations: 64.41 kB / 0.5183 GB, free: 15.45 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005862/0.6649, allocations: 2.472 MB / 0.5207 GB, free: 12.94 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001526/0.665, allocations: 41.7 kB / 0.5208 GB, free: 12.89 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001819/0.6669, allocations: 2.085 MB / 0.5228 GB, free: 10.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006342/0.6675, allocations: 0.5281 MB / 0.5233 GB, free: 10.24 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002783/0.6678, allocations: 72 kB / 0.5234 GB, free: 10.17 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003471/0.6682, allocations: 462 kB / 0.5238 GB, free: 9.711 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002491/0.6707, allocations: 1.229 MB / 0.525 GB, free: 8.48 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004145/0.6748, allocations: 3.29 MB / 0.5282 GB, free: 4.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003896/0.6787, allocations: 2.015 MB / 0.5302 GB, free: 2.164 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.613e-05/0.6789, allocations: 24 kB / 0.5302 GB, free: 2.141 MB / 398.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.01076/0.6896, allocations: 4.617 MB / 0.5347 GB, free: 13.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000127/0.6898, allocations: 36 kB / 0.5348 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001888/0.69, allocations: 72 kB / 0.5348 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009813/0.691, allocations: 241.2 kB / 0.5351 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003408/0.6944, allocations: 0.8267 MB / 0.5359 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004196/0.6986, allocations: 2.627 MB / 0.5384 GB, free: 9.578 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003937/0.7026, allocations: 196 kB / 0.5386 GB, free: 9.387 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008895/0.7035, allocations: 220 kB / 0.5388 GB, free: 9.172 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 329 * Number of states: 0 () * Number of discrete variables: 21 (worldForce.arrowTorque.twoHeadedArrow,worldForce.arrowTorque.headAtOrigin,worldForce.arrowForce.twoHeadedArrow,worldForce.arrowForce.headAtOrigin,cutForce.arrowForce.twoHeadedArrow,cutForce.arrowForce.headAtOrigin,worldForce.color[3],worldForce.color[2],worldForce.color[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (445): * Single equations (assignments): 440 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004464/0.708, allocations: 1.584 MB / 0.5404 GB, free: 7.578 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006616/0.7087, allocations: 213.2 kB / 0.5406 GB, free: 7.367 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004548/0.7132, allocations: 1.944 MB / 0.5425 GB, free: 5.418 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001115/0.7133, allocations: 23.98 kB / 0.5425 GB, free: 5.395 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.812e-05/0.7134, allocations: 4 kB / 0.5425 GB, free: 5.391 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.96e-05/0.7134, allocations: 7.969 kB / 0.5425 GB, free: 5.383 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01445/0.7279, allocations: 5.839 MB / 0.5482 GB, free: 15.4 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.891e-05/0.7279, allocations: 4.438 kB / 0.5482 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009886/0.7289, allocations: 219.7 kB / 0.5484 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003992/0.7293, allocations: 136.7 kB / 0.5486 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001156/0.7295, allocations: 28 kB / 0.5486 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002827/0.7323, allocations: 2.293 MB / 0.5508 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.7323, allocations: 7.938 kB / 0.5508 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005183/0.7375, allocations: 3.067 MB / 0.5538 GB, free: 9.445 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009603/0.7385, allocations: 306.2 kB / 0.5541 GB, free: 9.125 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005496/0.7391, allocations: 24 kB / 0.5541 GB, free: 9.102 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/0.7402, allocations: 79.92 kB / 0.5542 GB, free: 9.023 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002212/0.7404, allocations: 84.83 kB / 0.5543 GB, free: 8.941 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001063/0.7405, allocations: 43.98 kB / 0.5543 GB, free: 8.898 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003555/0.7441, allocations: 1.588 MB / 0.5559 GB, free: 7.293 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.7441, allocations: 0 / 0.5559 GB, free: 7.293 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004067/0.7482, allocations: 0.6523 MB / 0.5565 GB, free: 6.641 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 104 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004899/0.7487, allocations: 160.3 kB / 0.5567 GB, free: 6.477 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005992/0.7547, allocations: 3.006 MB / 0.5596 GB, free: 3.473 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.7547, allocations: 0 / 0.5596 GB, free: 3.473 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00172/0.7564, allocations: 1.02 MB / 0.5606 GB, free: 2.441 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00286/0.7593, allocations: 380.6 kB / 0.561 GB, free: 2.074 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01549/0.7748, allocations: 7.656 MB / 0.5685 GB, free: 10.35 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00446/0.7793, allocations: 2.598 MB / 0.571 GB, free: 7.715 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003603/0.783, allocations: 1.136 MB / 0.5721 GB, free: 6.57 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006659/0.7837, allocations: 167.4 kB / 0.5723 GB, free: 6.406 MB / 446.1 MB Notification: Performance of SimCode: time 1.392e-06/0.7837, allocations: 0 / 0.5723 GB, free: 6.406 MB / 446.1 MB Notification: Performance of Templates: time 0.2712/1.055, allocations: 22.87 MB / 0.5946 GB, free: 122.5 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.sim & ./PlanarMechanics_PlanarMechanics.Examples.PendulumExcited -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PendulumExcited.pipe 2>&1)