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/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: "" <> buildModelFMU(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine_DynamicStateSelection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine_DynamicStateSelection",fmuType="me",version="2.0",platforms={"static"}) [: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.002336/0.002336, allocations: 183.8 kB / 7.459 MB, free: 2.512 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.172/1.172, allocations: 221.4 MB / 229.3 MB, free: 3.273 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.0008421/0.0008422, allocations: 87.12 kB / 280.1 MB, free: 1.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03807/0.03807, allocations: 8.846 MB / 339.7 MB, free: 5.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1797/0.2178, allocations: 58.48 MB / 398.2 MB, free: 67.26 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07641/0.2943, allocations: 52.4 MB / 450.6 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2477/0.542, allocations: 87.08 MB / 0.5251 GB, free: 6.195 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002134/0.5422, allocations: 71.19 kB / 0.5252 GB, free: 6.164 MB / 346.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.1914/0.7336, allocations: 71.48 MB / 0.595 GB, free: 5.648 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.7337, allocations: 8 kB / 0.595 GB, free: 5.641 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009999/0.7437, allocations: 1.645 MB / 0.5966 GB, free: 3.988 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00522/0.7489, allocations: 1.868 MB / 0.5984 GB, free: 2.074 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002315/0.7492, allocations: 104 kB / 0.5985 GB, free: 1.973 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001772/0.751, allocations: 199.9 kB / 0.5987 GB, free: 1.777 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0105/0.7615, allocations: 5.905 MB / 0.6045 GB, free: 11.86 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01605/0.7776, allocations: 7.874 MB / 0.6121 GB, free: 3.539 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002109/0.7778, allocations: 27.81 kB / 0.6122 GB, free: 3.512 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001289/0.7791, allocations: 12 kB / 0.6122 GB, free: 3.5 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001632/0.7808, allocations: 1.049 MB / 0.6132 GB, free: 2.449 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0404/0.8212, allocations: 29.09 MB / 0.6416 GB, free: 4.414 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002118/0.8234, allocations: 1.206 MB / 0.6428 GB, free: 3.203 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001384/0.8248, allocations: 0.8286 MB / 0.6436 GB, free: 2.379 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1797/1.004, allocations: 4.851 MB / 0.6483 GB, free: 103.2 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.298e-05/1.005, allocations: 45.34 kB / 0.6484 GB, free: 103.2 MB / 458.7 MB Notification: Performance of pre-optimization done (n=152): time 3.737e-06/1.005, allocations: 3.719 kB / 0.6484 GB, free: 103.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=194): time 0.01387/1.018, allocations: 7.857 MB / 0.6561 GB, free: 102.2 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.154e-05/1.018, allocations: 75.12 kB / 0.6561 GB, free: 102.1 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002852/1.021, allocations: 2.211 MB / 0.6583 GB, free: 101.8 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 9.969e-05/1.021, allocations: 25.7 kB / 0.6583 GB, free: 101.8 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008055/1.022, allocations: 2.344 MB / 0.6606 GB, free: 100.4 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004028/1.023, allocations: 0.6963 MB / 0.6613 GB, free: 100 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001574/1.023, allocations: 3.906 kB / 0.6613 GB, free: 100 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002386/1.023, allocations: 0.5487 MB / 0.6618 GB, free: 99.68 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001729/1.025, allocations: 1.504 MB / 0.6633 GB, free: 99.66 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002602/1.027, allocations: 4.192 MB / 0.6674 GB, free: 96.2 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002689/1.03, allocations: 2.563 MB / 0.6699 GB, free: 96.18 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-05/1.03, allocations: 27.91 kB / 0.6699 GB, free: 96.18 MB / 458.7 MB Notification: Performance of matching and sorting (n=649) (initialization): time 0.00761/1.038, allocations: 5.573 MB / 0.6754 GB, free: 95.82 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/1.038, allocations: 6.188 kB / 0.6754 GB, free: 95.82 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.362e-05/1.038, allocations: 93.38 kB / 0.6755 GB, free: 95.82 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00122/1.039, allocations: 0.5685 MB / 0.676 GB, free: 95.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002883/1.042, allocations: 1.063 MB / 0.677 GB, free: 95.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007147/1.049, allocations: 7.762 MB / 0.6846 GB, free: 91.63 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003332/1.053, allocations: 136.2 kB / 0.6848 GB, free: 91.62 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004293/1.053, allocations: 301.1 kB / 0.685 GB, free: 91.62 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 (582): * Single equations (assignments): 575 * 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%) 20,(1,100.0%) 9} * Non-linear torn systems: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006009/1.054, allocations: 348.5 kB / 0.6854 GB, free: 91.37 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002832/1.054, allocations: 229.4 kB / 0.6856 GB, free: 91.24 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003921/1.058, allocations: 2.668 MB / 0.6882 GB, free: 91.07 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001098/1.058, allocations: 23.88 kB / 0.6882 GB, free: 91.07 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.065e-05/1.058, allocations: 10.88 kB / 0.6882 GB, free: 91.07 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.53e-05/1.058, allocations: 6.844 kB / 0.6882 GB, free: 91.07 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01288/1.071, allocations: 8.136 MB / 0.6962 GB, free: 90.24 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/1.071, allocations: 0 / 0.6962 GB, free: 90.24 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008247/1.072, allocations: 200.4 kB / 0.6964 GB, free: 90.23 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001482/1.073, allocations: 0.562 MB / 0.6969 GB, free: 90.2 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001199/1.073, allocations: 13.44 kB / 0.6969 GB, free: 90.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009103/1.083, allocations: 7.931 MB / 0.7047 GB, free: 85.15 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005591/1.088, allocations: 5.238 MB / 0.7098 GB, free: 81.52 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006389/1.095, allocations: 4.041 MB / 0.7137 GB, free: 79.89 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007776/1.102, allocations: 5.733 MB / 0.7193 GB, free: 77.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007555/1.103, allocations: 303.5 kB / 0.7196 GB, free: 77.16 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000613/1.104, allocations: 5.188 kB / 0.7196 GB, free: 77.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00122/1.105, allocations: 35.97 kB / 0.7197 GB, free: 77.16 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001716/1.105, allocations: 84.14 kB / 0.7197 GB, free: 77.14 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001263/1.105, allocations: 52.94 kB / 0.7198 GB, free: 77.13 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.002779/1.108, allocations: 1.471 MB / 0.7212 GB, free: 76.16 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004964/1.113, allocations: 0.7619 MB / 0.722 GB, free: 75.41 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 ($STATESET2.x,$STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 114 * 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,(2,100.0%) 11} * Non-linear torn systems: 1 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004137/1.114, allocations: 146.5 kB / 0.7221 GB, free: 75.27 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005401/1.119, allocations: 3.895 MB / 0.7259 GB, free: 71.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/1.119, allocations: 0 / 0.7259 GB, free: 71.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001962/1.121, allocations: 1.482 MB / 0.7274 GB, free: 70.34 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001288/1.122, allocations: 232.6 kB / 0.7276 GB, free: 70.14 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01235/1.135, allocations: 6.048 MB / 0.7335 GB, free: 64.63 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004292/1.139, allocations: 3.096 MB / 0.7365 GB, free: 62.18 MB / 458.7 MB Notification: Performance of SimCode: time 1.092e-06/1.139, allocations: 0 / 0.7365 GB, free: 62.18 MB / 458.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PistonEngine_DynamicStateSelection_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PistonEngine_DynamicStateSelection.fmu > PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe 2>&1)