Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDemo.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) Running command: translateModel(PlanarMechanics.Examples.SpringDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDemo") translateModel(PlanarMechanics.Examples.SpringDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDemo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001688/0.001688, allocations: 182.8 kB / 15.98 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.217/1.217, allocations: 222.9 MB / 239.6 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 114.1 kB / 289.9 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04115/0.04115, allocations: 8.937 MB / 349 MB, free: 36 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009898/0.0009899, allocations: 53.62 kB / 411.1 MB, free: 57.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09598/0.09699, allocations: 51.4 MB / 462.5 MB, free: 5.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDemo): time 0.198/0.2951, allocations: 28.24 MB / 490.8 MB, free: 10.77 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0123/0.3074, allocations: 6.228 MB / 497 MB, free: 8.938 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005114/0.3125, allocations: 102.1 kB / 497.1 MB, free: 8.926 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001355/0.314, allocations: 334.7 kB / 497.4 MB, free: 8.805 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003254/0.3172, allocations: 1.328 MB / 498.7 MB, free: 8.324 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004541/0.3177, allocations: 138.3 kB / 498.9 MB, free: 8.254 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003968/0.3217, allocations: 3.807 MB / 0.4909 GB, free: 7.082 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001055/0.3227, allocations: 0.8791 MB / 0.4918 GB, free: 6.742 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009815/0.3237, allocations: 0.8388 MB / 0.4926 GB, free: 6.438 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001494/0.3252, allocations: 1.421 MB / 0.494 GB, free: 5.926 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003249/0.3256, allocations: 149.5 kB / 0.4941 GB, free: 5.926 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001369/0.327, allocations: 0.7838 MB / 0.4949 GB, free: 5.586 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000921/0.3279, allocations: 1.247 MB / 0.4961 GB, free: 4.906 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00127/0.3292, allocations: 1.627 MB / 0.4977 GB, free: 3.664 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004264/0.3334, allocations: 4.955 MB / 0.5025 GB, free: 416 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3335, allocations: 0 / 0.5025 GB, free: 416 kB / 314.7 MB Notification: Performance of FrontEnd: time 8.91e-07/0.3335, allocations: 0 / 0.5025 GB, free: 416 kB / 314.7 MB Notification: Performance of Transformations before backend: time 9.433e-05/0.3336, allocations: 0 / 0.5025 GB, free: 416 kB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1293 * Number of variables: 1293 Notification: Performance of Generate backend data structure: time 0.007341/0.3409, allocations: 3.601 MB / 0.506 GB, free: 13.9 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.341, allocations: 9.625 kB / 0.506 GB, free: 13.9 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006514/0.3475, allocations: 1.834 MB / 0.5078 GB, free: 12.81 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002653/0.3502, allocations: 1.414 MB / 0.5092 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001065/0.3503, allocations: 168 kB / 0.5094 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003593/0.3506, allocations: 220.5 kB / 0.5096 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01077/0.3614, allocations: 8.674 MB / 0.5181 GB, free: 2.066 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.279e-05/0.3615, allocations: 19.81 kB / 0.5181 GB, free: 2.047 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002606/0.3618, allocations: 107.9 kB / 0.5182 GB, free: 1.98 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003005/0.3648, allocations: 2.092 MB / 0.5202 GB, free: 15.9 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01182/0.3766, allocations: 7.502 MB / 0.5275 GB, free: 8.387 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0325/0.4091, allocations: 27.07 MB / 0.554 GB, free: 12.89 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003931/0.4131, allocations: 2.177 MB / 0.5561 GB, free: 10.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001424/0.4145, allocations: 0.9499 MB / 0.557 GB, free: 9.641 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008529/0.4231, allocations: 5.554 MB / 0.5625 GB, free: 3.723 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.012e-05/0.4231, allocations: 43.56 kB / 0.5625 GB, free: 3.672 MB / 378.7 MB Notification: Performance of pre-optimization done (n=119): time 3.156e-06/0.4231, allocations: 0 / 0.5625 GB, free: 3.672 MB / 378.7 MB Notification: Performance of matching and sorting (n=135): time 0.01196/0.4351, allocations: 6.963 MB / 0.5693 GB, free: 12.54 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.645e-05/0.4352, allocations: 64.41 kB / 0.5694 GB, free: 12.46 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003549/0.4387, allocations: 2.927 MB / 0.5722 GB, free: 9.52 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.174e-05/0.4388, allocations: 48.83 kB / 0.5723 GB, free: 9.469 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001323/0.4401, allocations: 2.359 MB / 0.5746 GB, free: 7.105 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003544/0.4405, allocations: 0.5113 MB / 0.5751 GB, free: 6.598 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001016/0.4415, allocations: 0.8477 MB / 0.5759 GB, free: 5.738 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.988e-05/0.4416, allocations: 305.1 kB / 0.5762 GB, free: 5.438 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001935/0.4436, allocations: 1.351 MB / 0.5775 GB, free: 4.078 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003303/0.4469, allocations: 3.796 MB / 0.5812 GB, free: 15.05 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005441/0.4523, allocations: 5.501 MB / 0.5866 GB, free: 8.352 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.088e-05/0.4524, allocations: 24 kB / 0.5866 GB, free: 8.328 MB / 410.7 MB Notification: Performance of matching and sorting (n=552) (initialization): time 0.007525/0.4599, allocations: 5.615 MB / 0.5921 GB, free: 2.621 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.8e-05/0.46, allocations: 40 kB / 0.5921 GB, free: 2.582 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.838e-05/0.46, allocations: 91.94 kB / 0.5922 GB, free: 2.492 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007029/0.4608, allocations: 371.4 kB / 0.5926 GB, free: 2.117 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002467/0.4632, allocations: 0.9124 MB / 0.5935 GB, free: 1.203 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006001/0.4692, allocations: 8.266 MB / 0.6015 GB, free: 8.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002808/0.4721, allocations: 221.9 kB / 0.6018 GB, free: 8.055 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003289/0.4724, allocations: 260 kB / 0.602 GB, free: 7.801 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 392 * Number of states: 0 () * Number of discrete variables: 30 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.colorConnector_b[3],spring1.colorConnector_b[2],spring1.colorConnector_b[1],spring1.colorConnector_a[3],spring1.colorConnector_a[2],spring1.colorConnector_a[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (505): * Single equations (assignments): 495 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(3,10,66.7%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002378/0.4748, allocations: 1.693 MB / 0.6037 GB, free: 6.098 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003132/0.4751, allocations: 236.9 kB / 0.6039 GB, free: 5.863 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003188/0.4783, allocations: 2.254 MB / 0.6061 GB, free: 3.512 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001651/0.4785, allocations: 39.95 kB / 0.6061 GB, free: 3.473 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.4785, allocations: 4 kB / 0.6061 GB, free: 3.469 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.338e-06/0.4785, allocations: 3.984 kB / 0.6061 GB, free: 3.465 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009119/0.4876, allocations: 5.782 MB / 0.6118 GB, free: 13.56 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.849e-06/0.4877, allocations: 4.375 kB / 0.6118 GB, free: 13.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006647/0.4884, allocations: 175.7 kB / 0.6119 GB, free: 13.38 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003917/0.4888, allocations: 158.7 kB / 0.6121 GB, free: 13.22 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.203e-05/0.4888, allocations: 38.58 kB / 0.6121 GB, free: 13.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003387/0.4922, allocations: 4.667 MB / 0.6167 GB, free: 8.121 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.4923, allocations: 4 kB / 0.6167 GB, free: 8.117 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01593/0.5082, allocations: 10.87 MB / 0.6273 GB, free: 12.82 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004744/0.5087, allocations: 318 kB / 0.6276 GB, free: 12.48 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002386/0.509, allocations: 20 kB / 0.6276 GB, free: 12.46 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007924/0.5097, allocations: 67.2 kB / 0.6277 GB, free: 12.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001401/0.5099, allocations: 80.91 kB / 0.6278 GB, free: 12.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.826e-05/0.51, allocations: 43.98 kB / 0.6278 GB, free: 12.28 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002464/0.5125, allocations: 1.866 MB / 0.6296 GB, free: 10.41 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5125, allocations: 0 / 0.6296 GB, free: 10.41 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003569/0.516, allocations: 0.9103 MB / 0.6305 GB, free: 9.496 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (prismatic.s,prismatic.v) * 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 (103): * Single equations (assignments): 95 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,6,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003099/0.5164, allocations: 155.4 kB / 0.6307 GB, free: 9.34 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005152/0.5215, allocations: 3.689 MB / 0.6343 GB, free: 5.602 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.5215, allocations: 0.625 kB / 0.6343 GB, free: 5.602 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001346/0.5229, allocations: 1.13 MB / 0.6354 GB, free: 4.434 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001781/0.5247, allocations: 390.6 kB / 0.6358 GB, free: 4.062 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1687/0.6934, allocations: 9.499 MB / 0.645 GB, free: 150.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00322/0.6967, allocations: 2.796 MB / 0.6478 GB, free: 149.5 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003599/0.7003, allocations: 1.219 MB / 0.6489 GB, free: 149.4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005825/0.7009, allocations: 181.1 kB / 0.6491 GB, free: 149.4 MB / 458.7 MB Notification: Performance of SimCode: time 8.51e-07/0.7009, allocations: 0 / 0.6491 GB, free: 149.4 MB / 458.7 MB Notification: Performance of Templates: time 0.04588/0.7468, allocations: 27.75 MB / 0.6762 GB, free: 134.8 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.SpringDemo.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.SpringDemo -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.SpringDemo.pipe 2>&1)