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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002116/0.002116, allocations: 178.1 kB / 7.454 MB, free: 2.508 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.372/1.372, allocations: 221.4 MB / 229.3 MB, free: 3.012 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.001298/0.001298, allocations: 98.94 kB / 280.1 MB, free: 1.324 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04459/0.04459, allocations: 8.838 MB / 339.7 MB, free: 5.77 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.591e-06/5.631e-06, allocations: 0 / 398.1 MB, free: 67.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06896/0.06898, allocations: 52.4 MB / 450.5 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2332/0.3022, allocations: 87.07 MB / 0.525 GB, free: 6.383 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000178/0.3024, allocations: 72 kB / 0.5251 GB, free: 6.352 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.1875/0.4899, allocations: 67.68 MB / 0.5912 GB, free: 9.68 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001229/0.4901, allocations: 60 kB / 0.5912 GB, free: 9.621 MB / 410.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.01365/0.5038, allocations: 3.736 MB / 0.5949 GB, free: 5.824 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.5038, allocations: 11.97 kB / 0.5949 GB, free: 5.812 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01012/0.5139, allocations: 1.649 MB / 0.5965 GB, free: 4.156 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004596/0.5186, allocations: 1.864 MB / 0.5983 GB, free: 2.246 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001725/0.5188, allocations: 108 kB / 0.5984 GB, free: 2.141 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001445/0.5202, allocations: 191.9 kB / 0.5986 GB, free: 1.953 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01058/0.5308, allocations: 5.893 MB / 0.6044 GB, free: 12.05 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0143/0.5451, allocations: 7.882 MB / 0.612 GB, free: 3.723 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001324/0.5453, allocations: 35.66 kB / 0.6121 GB, free: 3.688 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008096/0.5461, allocations: 12 kB / 0.6121 GB, free: 3.676 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001459/0.5476, allocations: 1.045 MB / 0.6131 GB, free: 2.629 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03952/0.5871, allocations: 29.09 MB / 0.6415 GB, free: 4.594 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002356/0.5895, allocations: 1.195 MB / 0.6427 GB, free: 3.395 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001307/0.5909, allocations: 0.8299 MB / 0.6435 GB, free: 2.566 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1195/0.7104, allocations: 4.851 MB / 0.6482 GB, free: 174.7 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.055e-05/0.7105, allocations: 46 kB / 0.6483 GB, free: 174.7 MB / 458.7 MB Notification: Performance of pre-optimization done (n=152): time 3.897e-06/0.7105, allocations: 0 / 0.6483 GB, free: 174.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=190): time 0.009802/0.7203, allocations: 4.842 MB / 0.653 GB, free: 174.2 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.7203, allocations: 71.97 kB / 0.6531 GB, free: 174.1 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002758/0.7231, allocations: 2.211 MB / 0.6552 GB, free: 173.9 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001098/0.7232, allocations: 29.64 kB / 0.6553 GB, free: 173.8 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001001/0.7242, allocations: 2.347 MB / 0.6576 GB, free: 172.5 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004146/0.7247, allocations: 0.679 MB / 0.6582 GB, free: 172.1 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001863/0.7249, allocations: 2.781 kB / 0.6582 GB, free: 172.1 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003721/0.7252, allocations: 0.551 MB / 0.6588 GB, free: 171.7 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001953/0.7272, allocations: 1.483 MB / 0.6602 GB, free: 171.7 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002743/0.73, allocations: 4.154 MB / 0.6643 GB, free: 168.3 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003092/0.7331, allocations: 2.538 MB / 0.6667 GB, free: 168.2 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.945e-05/0.7331, allocations: 26.44 kB / 0.6668 GB, free: 168.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=643) (initialization): time 0.008569/0.7417, allocations: 5.508 MB / 0.6722 GB, free: 167.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.7417, allocations: 3.594 kB / 0.6722 GB, free: 167.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.658e-05/0.7418, allocations: 98.97 kB / 0.6722 GB, free: 167.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001394/0.7432, allocations: 0.5588 MB / 0.6728 GB, free: 167.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003378/0.7466, allocations: 1.05 MB / 0.6738 GB, free: 167.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007888/0.7545, allocations: 7.753 MB / 0.6814 GB, free: 163.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003595/0.7582, allocations: 120.6 kB / 0.6815 GB, free: 163.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005376/0.7587, allocations: 303.6 kB / 0.6818 GB, free: 163.7 MB / 458.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 (576): * Single equations (assignments): 569 * 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.0007451/0.7595, allocations: 346.2 kB / 0.6821 GB, free: 163.5 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002972/0.7598, allocations: 227.4 kB / 0.6823 GB, free: 163.3 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003919/0.7637, allocations: 2.463 MB / 0.6847 GB, free: 163.1 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001325/0.7639, allocations: 28.56 kB / 0.6848 GB, free: 163.1 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.307e-06/0.7639, allocations: 7.344 kB / 0.6848 GB, free: 163.1 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.532e-05/0.7639, allocations: 7.734 kB / 0.6848 GB, free: 163.1 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009962/0.7739, allocations: 6.032 MB / 0.6907 GB, free: 160.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.237e-06/0.7739, allocations: 7.812 kB / 0.6907 GB, free: 160.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009942/0.7749, allocations: 225.6 kB / 0.6909 GB, free: 160.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001117/0.7761, allocations: 415.7 kB / 0.6913 GB, free: 160.7 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.942e-05/0.7762, allocations: 22.69 kB / 0.6913 GB, free: 160.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006208/0.7824, allocations: 6.736 MB / 0.6979 GB, free: 155.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/0.7824, allocations: 7.688 kB / 0.6979 GB, free: 155.8 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005729/0.7882, allocations: 3.916 MB / 0.7017 GB, free: 154.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000679/0.7889, allocations: 310.7 kB / 0.702 GB, free: 153.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003531/0.7892, allocations: 2.75 kB / 0.702 GB, free: 153.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001039/0.7903, allocations: 36.42 kB / 0.7021 GB, free: 153.8 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001729/0.7905, allocations: 81.89 kB / 0.7021 GB, free: 153.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001252/0.7906, allocations: 53.5 kB / 0.7022 GB, free: 153.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.002549/0.7931, allocations: 1.476 MB / 0.7036 GB, free: 153.2 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004303/0.7975, allocations: 0.7029 MB / 0.7043 GB, free: 152.7 MB / 458.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 (131): * Single equations (assignments): 124 * 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%) 17,(1,100.0%) 7} * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004495/0.7979, allocations: 158.3 kB / 0.7045 GB, free: 152.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00522/0.8032, allocations: 3.832 MB / 0.7082 GB, free: 149.1 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.8032, allocations: 0 / 0.7082 GB, free: 149.1 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001821/0.805, allocations: 1.394 MB / 0.7096 GB, free: 147.8 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00134/0.8064, allocations: 225.9 kB / 0.7098 GB, free: 147.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0105/0.8169, allocations: 5.868 MB / 0.7155 GB, free: 142.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003282/0.8202, allocations: 3.068 MB / 0.7185 GB, free: 139.8 MB / 458.7 MB Notification: Performance of SimCode: time 7.21e-07/0.8202, allocations: 8 kB / 0.7185 GB, free: 139.8 MB / 458.7 MB Notification: Performance of Templates: time 0.05038/0.8706, allocations: 28.96 MB / 0.7468 GB, free: 118.1 MB / 458.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)