Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.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.PistonEngine_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") translateModel(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01018/0.01018, allocations: 99.58 kB / 15.73 MB, free: 5.98 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.002185/0.002185, allocations: 194.7 kB / 16.68 MB, free: 5.91 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.04361/0.04361, allocations: 9.144 MB / 299.7 MB, free: 5.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 59.89 kB / 414.6 MB, free: 21.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1049, allocations: 51.45 MB / 466.1 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.01111/0.116, allocations: 9.713 MB / 475.8 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006263/0.1223, allocations: 2.846 MB / 478.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001656/0.124, allocations: 43.88 kB / 478.7 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001916/0.1261, allocations: 413.1 kB / 479.1 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006872/0.133, allocations: 1.536 MB / 480.6 MB, free: 3.168 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001285/0.1343, allocations: 191.7 kB / 480.8 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00653/0.1408, allocations: 2.855 MB / 483.7 MB, free: 120 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002897/0.1438, allocations: 1.075 MB / 484.8 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003122/0.1469, allocations: 1.027 MB / 485.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004562/0.1515, allocations: 1.463 MB / 487.2 MB, free: 12.51 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001707/0.1533, allocations: 260 kB / 487.5 MB, free: 12.26 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004006/0.1574, allocations: 0.8582 MB / 488.4 MB, free: 11.4 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002569/0.16, allocations: 1.356 MB / 489.7 MB, free: 10.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00331/0.1633, allocations: 1.755 MB / 491.5 MB, free: 8.273 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009848/0.1732, allocations: 5.493 MB / 497 MB, free: 2.758 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.1732, allocations: 4 kB / 497 MB, free: 2.754 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1732, allocations: 0 / 497 MB, free: 2.754 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001501/0.1734, allocations: 0 / 497 MB, free: 2.754 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.02368/0.1971, allocations: 5.269 MB / 0.4905 GB, free: 13.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.524e-05/0.1972, allocations: 8.031 kB / 0.4905 GB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01395/0.2112, allocations: 1.827 MB / 0.4923 GB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005925/0.2171, allocations: 1.518 MB / 0.4937 GB, free: 10 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003269/0.2175, allocations: 176.3 kB / 0.4939 GB, free: 9.828 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001642/0.2192, allocations: 231.8 kB / 0.4941 GB, free: 9.602 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02752/0.2467, allocations: 8.952 MB / 0.5029 GB, free: 192 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002083/0.247, allocations: 31.75 kB / 0.5029 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001237/0.2483, allocations: 107.9 kB / 0.503 GB, free: 52 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2521/0.5004, allocations: 2.01 MB / 0.505 GB, free: 41.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01777/0.5182, allocations: 7.958 MB / 0.5127 GB, free: 38.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03754/0.5558, allocations: 28.54 MB / 0.5406 GB, free: 17.26 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00587/0.5617, allocations: 2.817 MB / 0.5434 GB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001274/0.563, allocations: 0.9933 MB / 0.5443 GB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00719/0.5702, allocations: 6.469 MB / 0.5506 GB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.524e-05/0.5703, allocations: 51.86 kB / 0.5507 GB, free: 6.305 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 3.947e-06/0.5703, allocations: 0 / 0.5507 GB, free: 6.305 MB / 382.1 MB Notification: Performance of matching and sorting (n=197): time 0.02008/0.5904, allocations: 9.817 MB / 0.5603 GB, free: 12.56 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007984/0.5984, allocations: 6.777 MB / 0.5669 GB, free: 5.496 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00409/0.6026, allocations: 3.039 MB / 0.5699 GB, free: 2.445 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003016/0.6029, allocations: 49.7 kB / 0.5699 GB, free: 2.391 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001617/0.6045, allocations: 2.452 MB / 0.5723 GB, free: 15.95 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008018/0.6053, allocations: 0.7519 MB / 0.573 GB, free: 15.21 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001249/0.6066, allocations: 0.9532 MB / 0.574 GB, free: 14.24 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.861e-05/0.6067, allocations: 301.1 kB / 0.5743 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002441/0.6091, allocations: 1.536 MB / 0.5758 GB, free: 12.4 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00452/0.6136, allocations: 4.127 MB / 0.5798 GB, free: 7 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007838/0.6215, allocations: 6.107 MB / 0.5858 GB, free: 15.63 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.412e-05/0.6216, allocations: 27.94 kB / 0.5858 GB, free: 15.61 MB / 430.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01331/0.6349, allocations: 6.079 MB / 0.5917 GB, free: 9.516 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.548e-05/0.635, allocations: 44.94 kB / 0.5918 GB, free: 9.473 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001121/0.6352, allocations: 92 kB / 0.5918 GB, free: 9.383 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001446/0.6366, allocations: 0.5801 MB / 0.5924 GB, free: 8.801 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003384/0.64, allocations: 1.025 MB / 0.5934 GB, free: 7.773 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01083/0.6509, allocations: 9.324 MB / 0.6025 GB, free: 14.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003565/0.6545, allocations: 251.9 kB / 0.6028 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006704/0.6552, allocations: 280 kB / 0.603 GB, free: 13.53 MB / 446.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 (554): * Single equations (assignments): 547 * 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.002707/0.6579, allocations: 1.722 MB / 0.6047 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004723/0.6584, allocations: 282.1 kB / 0.605 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005104/0.6635, allocations: 2.912 MB / 0.6078 GB, free: 8.582 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001069/0.6636, allocations: 31.98 kB / 0.6079 GB, free: 8.551 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.6636, allocations: 8 kB / 0.6079 GB, free: 8.543 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.937e-05/0.6637, allocations: 7.969 kB / 0.6079 GB, free: 8.535 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01538/0.6791, allocations: 9.273 MB / 0.6169 GB, free: 15.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.145e-05/0.6791, allocations: 4.438 kB / 0.6169 GB, free: 15.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008022/0.6799, allocations: 211.7 kB / 0.6171 GB, free: 14.89 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001532/0.6815, allocations: 0.6024 MB / 0.6177 GB, free: 14.28 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001155/0.6816, allocations: 44.11 kB / 0.6178 GB, free: 14.24 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01098/0.6926, allocations: 9.499 MB / 0.627 GB, free: 4.328 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006743/0.6994, allocations: 5.921 MB / 0.6328 GB, free: 14.11 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006599/0.706, allocations: 4.25 MB / 0.637 GB, free: 9.785 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008297/0.7069, allocations: 355.3 kB / 0.6373 GB, free: 9.418 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003466/0.7072, allocations: 35.98 kB / 0.6373 GB, free: 9.383 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009678/0.7082, allocations: 91.89 kB / 0.6374 GB, free: 9.293 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003/0.7085, allocations: 133 kB / 0.6376 GB, free: 9.164 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/0.7086, allocations: 55.98 kB / 0.6376 GB, free: 9.109 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002818/0.7115, allocations: 1.936 MB / 0.6395 GB, free: 7.168 MB / 478.1 MB Notification: Performance of sort global known variables: time 7.41e-07/0.7115, allocations: 0 / 0.6395 GB, free: 7.168 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004014/0.7155, allocations: 0.8984 MB / 0.6404 GB, free: 6.27 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 ($STATESET2.x,$STATESET1.x) * 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 (125): * Single equations (assignments): 118 * 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%), (3,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000472/0.716, allocations: 182.8 kB / 0.6406 GB, free: 6.082 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006652/0.7227, allocations: 4.234 MB / 0.6447 GB, free: 1.836 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/0.7227, allocations: 0 / 0.6447 GB, free: 1.836 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002724/0.7254, allocations: 1.746 MB / 0.6464 GB, free: 48 kB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002258/0.7277, allocations: 445.6 kB / 0.6468 GB, free: 15.62 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01235/0.7401, allocations: 7.652 MB / 0.6543 GB, free: 7.867 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003113/0.7432, allocations: 2.837 MB / 0.6571 GB, free: 5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002964/0.7462, allocations: 1.314 MB / 0.6583 GB, free: 3.68 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005297/0.7467, allocations: 203.4 kB / 0.6585 GB, free: 3.48 MB / 494.1 MB Notification: Performance of SimCode: time 8.11e-07/0.7468, allocations: 0 / 0.6585 GB, free: 3.48 MB / 494.1 MB Notification: Performance of Templates: time 0.05858/0.8053, allocations: 32.55 MB / 0.6903 GB, free: 3.082 MB / 0.5137 GB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.sim & ./PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe 2>&1)