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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.0009556/0.0009556, allocations: 168.8 kB / 7.645 MB, free: 1.434 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 221.5 MB / 229.6 MB, free: 7.523 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008472/0.0008469, allocations: 88.5 kB / 280.5 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.0385/0.0385, allocations: 8.822 MB / 340.1 MB, free: 6.387 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.249e-05/1.252e-05, allocations: 1.5 kB / 398.7 MB, free: 47.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09459/0.09462, allocations: 52.39 MB / 451.1 MB, free: 4.527 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3403/0.4349, allocations: 86.8 MB / 0.5253 GB, free: 80.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001734/0.4352, allocations: 76.06 kB / 0.5253 GB, free: 80.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1477/0.5829, allocations: 68.22 MB / 0.592 GB, free: 22.8 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.5829, allocations: 0 / 0.592 GB, free: 22.8 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001/0.583, allocations: 60 kB / 0.592 GB, free: 22.75 MB / 362.7 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.5953, allocations: 3.709 MB / 0.5956 GB, free: 18.98 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.5953, allocations: 12.02 kB / 0.5957 GB, free: 18.96 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00917/0.6045, allocations: 1.976 MB / 0.5976 GB, free: 16.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005085/0.6096, allocations: 1.864 MB / 0.5994 GB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002077/0.6099, allocations: 104 kB / 0.5995 GB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002219/0.6121, allocations: 199.9 kB / 0.5997 GB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009458/0.6216, allocations: 5.807 MB / 0.6054 GB, free: 8.961 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01638/0.638, allocations: 7.785 MB / 0.613 GB, free: 0.7266 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001136/0.6381, allocations: 27.81 kB / 0.613 GB, free: 0.6992 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004288/0.6386, allocations: 23.98 kB / 0.613 GB, free: 0.6758 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001314/0.6399, allocations: 0.9942 MB / 0.614 GB, free: 15.68 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04054/0.6805, allocations: 28.48 MB / 0.6418 GB, free: 2.391 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004157/0.6847, allocations: 2.455 MB / 0.6442 GB, free: 15.82 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001372/0.6861, allocations: 0.8517 MB / 0.645 GB, free: 14.98 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008105/0.6942, allocations: 4.849 MB / 0.6498 GB, free: 9.723 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.033e-05/0.6943, allocations: 51.81 kB / 0.6498 GB, free: 9.664 MB / 410.7 MB Notification: Performance of pre-optimization done (n=146): time 4.018e-06/0.6943, allocations: 3.938 kB / 0.6498 GB, free: 9.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=184): time 0.01165/0.7059, allocations: 4.714 MB / 0.6544 GB, free: 4.941 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.497e-05/0.706, allocations: 72.72 kB / 0.6545 GB, free: 4.855 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005896/0.7119, allocations: 2.178 MB / 0.6566 GB, free: 2.648 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002893/0.7123, allocations: 25.7 kB / 0.6566 GB, free: 2.617 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002577/0.7149, allocations: 2.44 MB / 0.659 GB, free: 144 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009911/0.7159, allocations: 0.659 MB / 0.6597 GB, free: 15.47 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004549/0.7163, allocations: 0 / 0.6597 GB, free: 15.47 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006173/0.717, allocations: 0.5563 MB / 0.6602 GB, free: 14.91 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002594/0.7196, allocations: 1.403 MB / 0.6616 GB, free: 13.5 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004456/0.7241, allocations: 4.08 MB / 0.6656 GB, free: 8.074 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003703/0.7278, allocations: 2.414 MB / 0.6679 GB, free: 5.66 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.278e-05/0.7278, allocations: 28 kB / 0.668 GB, free: 5.633 MB / 426.7 MB Notification: Performance of matching and sorting (n=637) (initialization): time 0.009658/0.7375, allocations: 5.392 MB / 0.6732 GB, free: 236 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.456e-05/0.7376, allocations: 44 kB / 0.6733 GB, free: 192 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001331/0.7377, allocations: 96 kB / 0.6734 GB, free: 96 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001349/0.7391, allocations: 0.5569 MB / 0.6739 GB, free: 15.53 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003315/0.7424, allocations: 1.041 MB / 0.6749 GB, free: 14.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009424/0.7519, allocations: 8.073 MB / 0.6828 GB, free: 6.031 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003737/0.7556, allocations: 139.9 kB / 0.6829 GB, free: 5.895 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001087/0.7568, allocations: 292 kB / 0.6832 GB, free: 5.609 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pistonRod.frame_b.phi:DUMMY_STATE(flow=false unit = "rad" ) "Angle (counter-clockwise)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 434 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (570): * Single equations (assignments): 563 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,88.9%) 21,(1,100.0%) 9} * Non-linear torn systems: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.001467/0.7582, allocations: 353.5 kB / 0.6835 GB, free: 5.254 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005915/0.7588, allocations: 233.1 kB / 0.6838 GB, free: 5.023 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004652/0.7635, allocations: 2.348 MB / 0.6861 GB, free: 2.656 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001104/0.7636, allocations: 39.95 kB / 0.6861 GB, free: 2.617 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.556e-05/0.7637, allocations: 7.953 kB / 0.6861 GB, free: 2.609 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.65e-05/0.7637, allocations: 7.969 kB / 0.6861 GB, free: 2.602 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.262/1.026, allocations: 5.851 MB / 0.6918 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.277e-06/1.026, allocations: 3.969 kB / 0.6918 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007684/1.027, allocations: 217 kB / 0.692 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000862/1.027, allocations: 412.9 kB / 0.6924 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.505e-05/1.027, allocations: 10.08 kB / 0.6924 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006273/1.034, allocations: 6.925 MB / 0.6992 GB, free: 103 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.141e-06/1.034, allocations: 2.312 kB / 0.6992 GB, free: 103 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005411/1.039, allocations: 3.706 MB / 0.7028 GB, free: 102.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007929/1.04, allocations: 303.4 kB / 0.7031 GB, free: 102.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000247/1.04, allocations: 4.438 kB / 0.7031 GB, free: 102.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008593/1.041, allocations: 50.64 kB / 0.7032 GB, free: 102.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002614/1.041, allocations: 117 kB / 0.7033 GB, free: 102.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001299/1.042, allocations: 50.05 kB / 0.7033 GB, free: 102.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002289/1.044, allocations: 1.441 MB / 0.7047 GB, free: 102.2 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.044, allocations: 0 / 0.7047 GB, free: 102.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003406/1.047, allocations: 0.7151 MB / 0.7054 GB, free: 102.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (revoluteDrive.phi,revoluteDrive.w) * Number of discrete variables: 0 () * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,68.8%) 16,(1,100.0%) 7} * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003449/1.048, allocations: 145.6 kB / 0.7056 GB, free: 102.1 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005253/1.053, allocations: 3.751 MB / 0.7092 GB, free: 101.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/1.053, allocations: 0 / 0.7092 GB, free: 101.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001733/1.055, allocations: 1.387 MB / 0.7106 GB, free: 101.4 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001362/1.056, allocations: 231.4 kB / 0.7108 GB, free: 101.4 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009534/1.066, allocations: 5.687 MB / 0.7164 GB, free: 100.2 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002511/1.068, allocations: 2.871 MB / 0.7192 GB, free: 99.41 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003015/1.071, allocations: 1.308 MB / 0.7204 GB, free: 99.39 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003601/1.072, allocations: 181.6 kB / 0.7206 GB, free: 99.38 MB / 442.7 MB Notification: Performance of SimCode: time 1.302e-06/1.072, allocations: 2.812 kB / 0.7206 GB, free: 99.38 MB / 442.7 MB Notification: Performance of Templates: time 0.04088/1.112, allocations: 23.84 MB / 0.7439 GB, free: 95.35 MB / 442.7 MB 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)