Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine.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/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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.PistonEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine") translateModel(PlanarMechanics.Examples.PistonEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.00134/0.00134, allocations: 187 kB / 17.34 MB, free: 5.762 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.34/1.34, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04575/0.04575, allocations: 9.107 MB / 300.3 MB, free: 5.828 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 59.89 kB / 415.3 MB, free: 21.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09302/0.09422, allocations: 51.44 MB / 466.7 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.011/0.1053, allocations: 9.723 MB / 476.5 MB, free: 7.891 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006218/0.1115, allocations: 2.846 MB / 479.3 MB, free: 5.035 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001563/0.1131, allocations: 39.94 kB / 479.4 MB, free: 4.996 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001354/0.1145, allocations: 413.1 kB / 479.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004391/0.1189, allocations: 1.54 MB / 481.3 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007437/0.1197, allocations: 175.7 kB / 481.5 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004106/0.1238, allocations: 2.856 MB / 484.3 MB, free: 4 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001792/0.1257, allocations: 1.075 MB / 485.4 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001878/0.1276, allocations: 1.035 MB / 486.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002297/0.1299, allocations: 1.456 MB / 487.9 MB, free: 12.4 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006327/0.1305, allocations: 260 kB / 488.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001718/0.1322, allocations: 0.8737 MB / 489 MB, free: 11.27 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001244/0.1335, allocations: 1.348 MB / 490.4 MB, free: 9.918 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001704/0.1352, allocations: 1.763 MB / 492.1 MB, free: 8.145 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005754/0.141, allocations: 5.465 MB / 497.6 MB, free: 2.66 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.141, allocations: 4 kB / 497.6 MB, free: 2.656 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.141, allocations: 0 / 497.6 MB, free: 2.656 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001096/0.1411, allocations: 0 / 497.6 MB, free: 2.656 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: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01225/0.1534, allocations: 5.174 MB / 0.491 GB, free: 13.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.1534, allocations: 8.031 kB / 0.491 GB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006425/0.1599, allocations: 1.817 MB / 0.4928 GB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003293/0.1632, allocations: 1.499 MB / 0.4942 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001432/0.1634, allocations: 168.3 kB / 0.4944 GB, free: 9.871 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005477/0.1639, allocations: 239.7 kB / 0.4946 GB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01416/0.1781, allocations: 8.948 MB / 0.5034 GB, free: 228 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.819e-05/0.1782, allocations: 31.66 kB / 0.5034 GB, free: 196 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003209/0.1786, allocations: 107.9 kB / 0.5035 GB, free: 88 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2097/0.3883, allocations: 2.008 MB / 0.5055 GB, free: 41.74 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01657/0.4049, allocations: 7.968 MB / 0.5132 GB, free: 39.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03542/0.4403, allocations: 28.48 MB / 0.541 GB, free: 17.45 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00656/0.4469, allocations: 2.825 MB / 0.5438 GB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001393/0.4484, allocations: 0.9894 MB / 0.5448 GB, free: 13.51 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007801/0.4562, allocations: 6.449 MB / 0.5511 GB, free: 6.473 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.552e-05/0.4563, allocations: 47.81 kB / 0.5511 GB, free: 6.418 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 5.34e-06/0.4563, allocations: 0 / 0.5511 GB, free: 6.418 MB / 382.1 MB Notification: Performance of matching and sorting (n=193): time 0.01461/0.4709, allocations: 6.48 MB / 0.5574 GB, free: 15.93 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.026e-05/0.471, allocations: 73.41 kB / 0.5575 GB, free: 15.85 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005128/0.4761, allocations: 3.031 MB / 0.5605 GB, free: 12.8 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002369/0.4764, allocations: 49.7 kB / 0.5605 GB, free: 12.75 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001761/0.4781, allocations: 2.355 MB / 0.5628 GB, free: 10.39 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008955/0.4791, allocations: 0.7041 MB / 0.5635 GB, free: 9.695 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001809/0.4809, allocations: 0.9308 MB / 0.5644 GB, free: 8.754 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.481, allocations: 305.1 kB / 0.5647 GB, free: 8.453 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002607/0.4836, allocations: 1.511 MB / 0.5662 GB, free: 6.938 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004273/0.4879, allocations: 4.077 MB / 0.5702 GB, free: 1.586 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007041/0.495, allocations: 6.036 MB / 0.5761 GB, free: 10.3 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.333e-05/0.4951, allocations: 24 kB / 0.5761 GB, free: 10.28 MB / 414.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01176/0.5069, allocations: 5.969 MB / 0.5819 GB, free: 4.293 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.964e-05/0.507, allocations: 44 kB / 0.582 GB, free: 4.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001393/0.5072, allocations: 91.94 kB / 0.582 GB, free: 4.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001502/0.5087, allocations: 0.5718 MB / 0.5826 GB, free: 3.582 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00333/0.512, allocations: 1.002 MB / 0.5836 GB, free: 2.578 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01118/0.5232, allocations: 9.328 MB / 0.5927 GB, free: 8.844 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003708/0.527, allocations: 242 kB / 0.5929 GB, free: 8.609 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008581/0.5279, allocations: 276 kB / 0.5932 GB, free: 8.34 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 410 * Number of states: 0 () * Number of discrete variables: 24 (revolutePiston.cylinderColor[3],revolutePiston.cylinderColor[2],revolutePiston.cylinderColor[1],bodyPiston.sphereColor[3],bodyPiston.sphereColor[2],bodyPiston.sphereColor[1],pistonRod.color[3],pistonRod.color[2],pistonRod.color[1],revoluteDisc.cylinderColor[3],revoluteDisc.cylinderColor[2],revoluteDisc.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],fixedTranslationDisc.color[3],fixedTranslationDisc.color[2],fixedTranslationDisc.color[1],revoluteDrive.cylinderColor[3],revoluteDrive.cylinderColor[2],revoluteDrive.cylinderColor[1],bodyDrive.sphereColor[3],bodyDrive.sphereColor[2],bodyDrive.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (548): * Single equations (assignments): 541 * Array equations: 4 * 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): 2 systems {(5,19,56.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of prepare postOptimizeDAE: time 0.003433/0.5313, allocations: 1.726 MB / 0.5949 GB, free: 6.602 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006594/0.532, allocations: 268.5 kB / 0.5951 GB, free: 6.336 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005051/0.537, allocations: 2.658 MB / 0.5977 GB, free: 3.656 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001057/0.5372, allocations: 31.98 kB / 0.5977 GB, free: 3.625 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.948e-05/0.5372, allocations: 4 kB / 0.5978 GB, free: 3.621 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-05/0.5372, allocations: 7.969 kB / 0.5978 GB, free: 3.613 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01487/0.5521, allocations: 7.254 MB / 0.6048 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-05/0.5522, allocations: 4 kB / 0.6048 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009307/0.5531, allocations: 239.6 kB / 0.6051 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001159/0.5543, allocations: 450.7 kB / 0.6055 GB, free: 11.55 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001511/0.5544, allocations: 35.98 kB / 0.6055 GB, free: 11.51 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008374/0.5628, allocations: 7.875 MB / 0.6132 GB, free: 3.211 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.916e-06/0.5629, allocations: 11.94 kB / 0.6132 GB, free: 3.199 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00615/0.569, allocations: 3.989 MB / 0.6171 GB, free: 15.12 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009094/0.57, allocations: 341.7 kB / 0.6175 GB, free: 14.77 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005492/0.5705, allocations: 35.94 kB / 0.6175 GB, free: 14.73 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001167/0.5717, allocations: 75.91 kB / 0.6176 GB, free: 14.66 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002739/0.572, allocations: 137 kB / 0.6177 GB, free: 14.53 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001116/0.5721, allocations: 55.94 kB / 0.6178 GB, free: 14.47 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003281/0.5754, allocations: 1.936 MB / 0.6196 GB, free: 12.53 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5754, allocations: 0 / 0.6196 GB, free: 12.53 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004215/0.5797, allocations: 0.8373 MB / 0.6205 GB, free: 11.7 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (revoluteDrive.phi,revoluteDrive.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 (135): * Single equations (assignments): 128 * Array equations: 4 * 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): 2 systems {(5,15,56.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005142/0.5802, allocations: 165.6 kB / 0.6206 GB, free: 11.53 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006948/0.5872, allocations: 4.142 MB / 0.6247 GB, free: 7.379 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/0.5872, allocations: 4 kB / 0.6247 GB, free: 7.375 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002317/0.5895, allocations: 1.591 MB / 0.6262 GB, free: 5.742 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00264/0.5922, allocations: 455.6 kB / 0.6267 GB, free: 5.309 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01397/0.6062, allocations: 7.641 MB / 0.6341 GB, free: 13.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004111/0.6103, allocations: 2.801 MB / 0.6369 GB, free: 10.77 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008608/0.6112, allocations: 239.4 kB / 0.6371 GB, free: 10.54 MB / 478.1 MB Notification: Performance of SimCode: time 1.012e-06/0.6112, allocations: 0 / 0.6371 GB, free: 10.54 MB / 478.1 MB Notification: Performance of Templates: time 0.3443/0.9555, allocations: 98.39 MB / 0.7332 GB, free: 176.2 MB / 0.5294 GB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PistonEngine.sim & ./PlanarMechanics_PlanarMechanics.Examples.PistonEngine -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1)