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-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,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.006226/0.006226, allocations: 99.81 kB / 15.73 MB, free: 6.059 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.001343/0.001343, allocations: 195 kB / 16.67 MB, free: 5.973 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.04383/0.04383, allocations: 9.138 MB / 299.7 MB, free: 5.863 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 67.89 kB / 414.6 MB, free: 21.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.109, allocations: 51.45 MB / 466.1 MB, free: 1.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.01044/0.1195, allocations: 9.719 MB / 475.8 MB, free: 7.922 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005925/0.1254, allocations: 2.842 MB / 478.6 MB, free: 5.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001216/0.1267, allocations: 43.88 kB / 478.7 MB, free: 5.027 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009185/0.1276, allocations: 417.1 kB / 479.1 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003274/0.1309, allocations: 1.533 MB / 480.6 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004343/0.1314, allocations: 187.7 kB / 480.8 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002874/0.1343, allocations: 2.861 MB / 483.7 MB, free: 24 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001659/0.1359, allocations: 1.063 MB / 484.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001628/0.1376, allocations: 1.035 MB / 485.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002199/0.1398, allocations: 1.463 MB / 487.2 MB, free: 12.42 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006925/0.1405, allocations: 260 kB / 487.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001968/0.1425, allocations: 0.8582 MB / 488.3 MB, free: 11.31 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001223/0.1437, allocations: 1.348 MB / 489.7 MB, free: 9.957 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001737/0.1455, allocations: 1.767 MB / 491.5 MB, free: 8.18 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005755/0.1512, allocations: 5.485 MB / 496.9 MB, free: 2.672 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1513, allocations: 0 / 496.9 MB, free: 2.672 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1513, allocations: 8 kB / 497 MB, free: 2.664 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.066e-05/0.1514, allocations: 0 / 497 MB, free: 2.664 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.01273/0.1641, allocations: 5.261 MB / 0.4904 GB, free: 13.33 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.1642, allocations: 12.03 kB / 0.4905 GB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006625/0.1708, allocations: 1.831 MB / 0.4922 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00369/0.1745, allocations: 1.518 MB / 0.4937 GB, free: 9.914 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001857/0.1747, allocations: 176.3 kB / 0.4939 GB, free: 9.738 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007029/0.1754, allocations: 227.8 kB / 0.4941 GB, free: 9.516 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01448/0.1899, allocations: 8.948 MB / 0.5029 GB, free: 108 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.701e-05/0.19, allocations: 39.75 kB / 0.5029 GB, free: 68 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.2527/0.4427, allocations: 105.3 kB / 0.503 GB, free: 41.13 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004785/0.4476, allocations: 2.011 MB / 0.505 GB, free: 41.12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01928/0.4669, allocations: 7.961 MB / 0.5127 GB, free: 38.83 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03213/0.499, allocations: 28.54 MB / 0.5406 GB, free: 17.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005898/0.505, allocations: 2.815 MB / 0.5434 GB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001258/0.5062, allocations: 0.9855 MB / 0.5443 GB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007712/0.514, allocations: 6.479 MB / 0.5506 GB, free: 6.316 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.3e-05/0.514, allocations: 43.88 kB / 0.5507 GB, free: 6.266 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 2.966e-06/0.514, allocations: 3.938 kB / 0.5507 GB, free: 6.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=193): time 0.01406/0.5281, allocations: 6.54 MB / 0.5571 GB, free: 15.87 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.329e-05/0.5282, allocations: 77.34 kB / 0.5571 GB, free: 15.79 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004443/0.5327, allocations: 3.031 MB / 0.5601 GB, free: 12.75 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001404/0.5328, allocations: 53.7 kB / 0.5602 GB, free: 12.69 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001496/0.5343, allocations: 2.446 MB / 0.5625 GB, free: 10.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006131/0.5349, allocations: 0.7421 MB / 0.5633 GB, free: 9.52 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0012/0.5362, allocations: 0.9335 MB / 0.5642 GB, free: 8.574 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.464e-05/0.5363, allocations: 305.1 kB / 0.5645 GB, free: 8.273 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002279/0.5385, allocations: 1.5 MB / 0.5659 GB, free: 6.766 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004701/0.5433, allocations: 4.08 MB / 0.5699 GB, free: 1.41 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006968/0.5503, allocations: 6.038 MB / 0.5758 GB, free: 10.12 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.017e-05/0.5504, allocations: 28 kB / 0.5758 GB, free: 10.1 MB / 414.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01066/0.561, allocations: 5.981 MB / 0.5817 GB, free: 4.105 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.901e-05/0.5611, allocations: 44 kB / 0.5817 GB, free: 4.062 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.424e-05/0.5612, allocations: 95.5 kB / 0.5818 GB, free: 3.973 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001414/0.5626, allocations: 0.5755 MB / 0.5824 GB, free: 3.391 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003153/0.5658, allocations: 1.006 MB / 0.5834 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0103/0.5761, allocations: 9.32 MB / 0.5925 GB, free: 8.648 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003891/0.58, allocations: 241.9 kB / 0.5927 GB, free: 8.414 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007907/0.5809, allocations: 276 kB / 0.593 GB, free: 8.145 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.002909/0.5838, allocations: 1.73 MB / 0.5947 GB, free: 6.402 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004926/0.5843, allocations: 278.1 kB / 0.5949 GB, free: 6.129 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004466/0.5888, allocations: 2.662 MB / 0.5975 GB, free: 3.445 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001013/0.5889, allocations: 32.11 kB / 0.5975 GB, free: 3.414 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.5889, allocations: 8 kB / 0.5976 GB, free: 3.406 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.574e-05/0.5889, allocations: 7.969 kB / 0.5976 GB, free: 3.398 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0121/0.601, allocations: 7.259 MB / 0.6047 GB, free: 12.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.129e-05/0.6011, allocations: 7.938 kB / 0.6047 GB, free: 12.01 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008612/0.602, allocations: 235.7 kB / 0.6049 GB, free: 11.78 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001153/0.6031, allocations: 450.2 kB / 0.6053 GB, free: 11.33 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-05/0.6032, allocations: 36 kB / 0.6053 GB, free: 11.29 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008282/0.6115, allocations: 7.879 MB / 0.613 GB, free: 2.992 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.6116, allocations: 4 kB / 0.613 GB, free: 2.988 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005941/0.6175, allocations: 4.01 MB / 0.617 GB, free: 14.89 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008687/0.6184, allocations: 351.2 kB / 0.6173 GB, free: 14.53 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003084/0.6187, allocations: 35.98 kB / 0.6173 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009711/0.6197, allocations: 87.84 kB / 0.6174 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002643/0.62, allocations: 125.1 kB / 0.6175 GB, free: 14.29 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001083/0.6201, allocations: 55.98 kB / 0.6176 GB, free: 14.23 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003574/0.6237, allocations: 1.936 MB / 0.6195 GB, free: 12.29 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6237, allocations: 0 / 0.6195 GB, free: 12.29 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004546/0.6283, allocations: 0.8281 MB / 0.6203 GB, free: 11.46 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.0003903/0.6287, allocations: 178.8 kB / 0.6205 GB, free: 11.28 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006912/0.6356, allocations: 4.145 MB / 0.6245 GB, free: 7.125 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.625e-06/0.6356, allocations: 4 kB / 0.6245 GB, free: 7.121 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00218/0.6378, allocations: 1.606 MB / 0.6261 GB, free: 5.473 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002299/0.6401, allocations: 448.2 kB / 0.6265 GB, free: 5.043 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01258/0.6527, allocations: 7.353 MB / 0.6337 GB, free: 13.62 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003115/0.6559, allocations: 2.801 MB / 0.6364 GB, free: 10.79 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003138/0.659, allocations: 1.325 MB / 0.6377 GB, free: 9.457 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004845/0.6595, allocations: 195.4 kB / 0.6379 GB, free: 9.266 MB / 478.1 MB Notification: Performance of SimCode: time 1.222e-06/0.6596, allocations: 0 / 0.6379 GB, free: 9.266 MB / 478.1 MB Notification: Performance of Templates: time 0.05967/0.7192, allocations: 29.75 MB / 0.667 GB, free: 11.65 MB / 0.4981 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)