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.008515/0.008515, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001272/0.001272, allocations: 197.2 kB / 16.68 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.0441/0.0441, allocations: 9.131 MB / 299.7 MB, free: 5.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 63.89 kB / 414.6 MB, free: 21.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1203, allocations: 51.44 MB / 466.1 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PendulumExcited): time 0.01041/0.1308, allocations: 8.527 MB / 474.6 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006938/0.1377, allocations: 2.589 MB / 477.2 MB, free: 6.488 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00143/0.1392, allocations: 31.94 kB / 477.2 MB, free: 6.457 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001448/0.1407, allocations: 377.5 kB / 477.6 MB, free: 6.086 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005119/0.1459, allocations: 1.416 MB / 479 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005642/0.1465, allocations: 147.7 kB / 479.2 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00353/0.15, allocations: 2.533 MB / 481.7 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00179/0.1518, allocations: 0.9948 MB / 482.7 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001883/0.1537, allocations: 0.9222 MB / 483.6 MB, free: 32 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002093/0.1558, allocations: 1.32 MB / 484.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005052/0.1564, allocations: 240 kB / 485.2 MB, free: 14.47 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001671/0.158, allocations: 0.8346 MB / 486 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00117/0.1592, allocations: 1.219 MB / 487.2 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001813/0.1611, allocations: 1.6 MB / 488.8 MB, free: 10.8 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005863/0.1669, allocations: 5.064 MB / 493.9 MB, free: 5.723 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.167, allocations: 0 / 493.9 MB, free: 5.723 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.167, allocations: 0 / 493.9 MB, free: 5.723 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001097/0.1671, allocations: 0 / 493.9 MB, free: 5.723 MB / 366.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.01/0.1771, allocations: 4.279 MB / 498.2 MB, free: 1.379 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.1772, allocations: 8.031 kB / 498.2 MB, free: 1.371 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006349/0.1835, allocations: 1.763 MB / 499.9 MB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002769/0.1863, allocations: 1.347 MB / 0.4895 GB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001256/0.1865, allocations: 148.1 kB / 0.4897 GB, free: 14.06 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005173/0.187, allocations: 196.1 kB / 0.4899 GB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01385/0.2008, allocations: 8.2 MB / 0.4979 GB, free: 5.309 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001343/0.201, allocations: 19.81 kB / 0.4979 GB, free: 5.289 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000741/0.2018, allocations: 91.86 kB / 0.498 GB, free: 5.199 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003336/0.2051, allocations: 1.915 MB / 0.4998 GB, free: 3.281 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3057/0.5108, allocations: 7.424 MB / 0.5071 GB, free: 38.9 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03731/0.5482, allocations: 24.8 MB / 0.5313 GB, free: 22.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004207/0.5524, allocations: 2.413 MB / 0.5337 GB, free: 21.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001069/0.5535, allocations: 0.8677 MB / 0.5345 GB, free: 20.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00463/0.5582, allocations: 4.435 MB / 0.5388 GB, free: 17.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.941e-05/0.5582, allocations: 47.31 kB / 0.5389 GB, free: 17.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 2.855e-06/0.5582, allocations: 1.031 kB / 0.5389 GB, free: 17.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.008948/0.5672, allocations: 4.648 MB / 0.5434 GB, free: 13.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.255e-05/0.5672, allocations: 60.41 kB / 0.5435 GB, free: 13.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002718/0.57, allocations: 2.496 MB / 0.5459 GB, free: 11.22 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.053e-05/0.57, allocations: 45.7 kB / 0.546 GB, free: 11.17 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007802/0.5708, allocations: 2.077 MB / 0.548 GB, free: 9.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002847/0.5711, allocations: 0.5277 MB / 0.5485 GB, free: 8.566 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007772/0.5719, allocations: 0.7498 MB / 0.5492 GB, free: 7.812 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.441e-05/0.572, allocations: 301.1 kB / 0.5495 GB, free: 7.516 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00154/0.5735, allocations: 1.237 MB / 0.5507 GB, free: 6.277 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002182/0.5757, allocations: 3.302 MB / 0.554 GB, free: 1.969 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005184/0.5809, allocations: 4.891 MB / 0.5587 GB, free: 12.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.889e-05/0.5809, allocations: 20 kB / 0.5588 GB, free: 12.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.00816/0.5891, allocations: 4.638 MB / 0.5633 GB, free: 7.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.88e-05/0.5892, allocations: 41.81 kB / 0.5633 GB, free: 7.371 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001026/0.5893, allocations: 72 kB / 0.5634 GB, free: 7.301 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000641/0.59, allocations: 224.7 kB / 0.5636 GB, free: 7.078 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002593/0.5926, allocations: 0.8236 MB / 0.5644 GB, free: 6.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004122/0.5967, allocations: 2.858 MB / 0.5672 GB, free: 3.266 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002937/0.5996, allocations: 188 kB / 0.5674 GB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003082/0.6, allocations: 224 kB / 0.5676 GB, free: 2.863 MB / 398.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003376/0.6034, allocations: 1.572 MB / 0.5691 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003969/0.6038, allocations: 213.2 kB / 0.5693 GB, free: 1.066 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003717/0.6075, allocations: 1.94 MB / 0.5712 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001042/0.6076, allocations: 23.98 kB / 0.5712 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.229e-05/0.6076, allocations: 4 kB / 0.5713 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.948e-05/0.6076, allocations: 7.969 kB / 0.5713 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009893/0.6175, allocations: 5.81 MB / 0.5769 GB, free: 9.156 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.171e-05/0.6176, allocations: 4 kB / 0.5769 GB, free: 9.152 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000849/0.6184, allocations: 216.1 kB / 0.5771 GB, free: 8.941 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003655/0.6188, allocations: 144.7 kB / 0.5773 GB, free: 8.801 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.61e-05/0.6189, allocations: 24 kB / 0.5773 GB, free: 8.777 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002593/0.6215, allocations: 2.529 MB / 0.5798 GB, free: 6.113 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.6215, allocations: 12.05 kB / 0.5798 GB, free: 6.102 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004522/0.626, allocations: 3.048 MB / 0.5828 GB, free: 2.988 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006806/0.6267, allocations: 290.3 kB / 0.583 GB, free: 2.684 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000223/0.627, allocations: 35.83 kB / 0.5831 GB, free: 2.652 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007787/0.6278, allocations: 67.98 kB / 0.5831 GB, free: 2.586 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002052/0.628, allocations: 88.81 kB / 0.5832 GB, free: 2.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.842e-05/0.6281, allocations: 43.98 kB / 0.5833 GB, free: 2.457 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00252/0.6306, allocations: 1.603 MB / 0.5848 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.6306, allocations: 0 / 0.5848 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003218/0.6338, allocations: 0.6537 MB / 0.5855 GB, free: 192 kB / 414.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003506/0.6342, allocations: 159.1 kB / 0.5856 GB, free: 28 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005023/0.6392, allocations: 3.029 MB / 0.5886 GB, free: 13.01 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/0.6393, allocations: 4 kB / 0.5886 GB, free: 13 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001482/0.6407, allocations: 1.009 MB / 0.5896 GB, free: 11.98 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001961/0.6427, allocations: 411.7 kB / 0.59 GB, free: 11.6 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01292/0.6557, allocations: 6.317 MB / 0.5961 GB, free: 5.223 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004147/0.6599, allocations: 2.59 MB / 0.5987 GB, free: 2.598 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003106/0.663, allocations: 1.132 MB / 0.5998 GB, free: 1.461 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005954/0.6636, allocations: 159.5 kB / 0.5999 GB, free: 1.305 MB / 430.1 MB Notification: Performance of SimCode: time 9.42e-07/0.6636, allocations: 7.938 kB / 0.5999 GB, free: 1.297 MB / 430.1 MB Notification: Performance of Templates: time 0.0513/0.7149, allocations: 24.11 MB / 0.6235 GB, free: 9.344 MB / 462.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)