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: "" <> buildModelFMU(PlanarMechanics.Examples.PistonEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PistonEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine",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.002426/0.002426, allocations: 187.9 kB / 7.463 MB, free: 2.246 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.185/1.185, allocations: 221.4 MB / 229.3 MB, free: 3.074 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.0009059/0.0009058, allocations: 101.8 kB / 280.1 MB, free: 1.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.0383/0.0383, allocations: 8.841 MB / 339.7 MB, free: 5.703 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1753/0.2136, allocations: 58.49 MB / 398.2 MB, free: 67.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0854/0.299, allocations: 52.39 MB / 450.6 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3501/0.6492, allocations: 87.08 MB / 0.5251 GB, free: 6.277 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002524/0.6495, allocations: 69.72 kB / 0.5252 GB, free: 6.246 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.2103/0.8598, allocations: 71.48 MB / 0.595 GB, free: 5.734 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.8599, allocations: 8 kB / 0.595 GB, free: 5.727 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009392/0.8693, allocations: 1.657 MB / 0.5966 GB, free: 4.062 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004931/0.8742, allocations: 1.864 MB / 0.5984 GB, free: 2.152 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001361/0.8744, allocations: 104 kB / 0.5985 GB, free: 2.051 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008777/0.8753, allocations: 207.8 kB / 0.5987 GB, free: 1.848 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01054/0.8858, allocations: 5.897 MB / 0.6045 GB, free: 11.94 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0146/0.9005, allocations: 7.871 MB / 0.6121 GB, free: 3.625 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001161/0.9006, allocations: 31.72 kB / 0.6122 GB, free: 3.594 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000546/0.9012, allocations: 16 kB / 0.6122 GB, free: 3.578 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001359/0.9026, allocations: 1.045 MB / 0.6132 GB, free: 2.531 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03925/0.9418, allocations: 29.09 MB / 0.6416 GB, free: 4.496 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001879/0.9438, allocations: 1.199 MB / 0.6428 GB, free: 3.293 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001151/0.9449, allocations: 0.8291 MB / 0.6436 GB, free: 2.469 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1805/1.125, allocations: 4.855 MB / 0.6483 GB, free: 103.3 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.253e-05/1.126, allocations: 48.91 kB / 0.6484 GB, free: 103.3 MB / 458.7 MB Notification: Performance of pre-optimization done (n=152): time 3.908e-06/1.126, allocations: 0 / 0.6484 GB, free: 103.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=190): time 0.008942/1.134, allocations: 4.845 MB / 0.6531 GB, free: 102.8 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.76e-05/1.135, allocations: 68.41 kB / 0.6532 GB, free: 102.8 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002672/1.137, allocations: 2.21 MB / 0.6553 GB, free: 102.5 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.433e-05/1.137, allocations: 29.61 kB / 0.6554 GB, free: 102.5 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008495/1.138, allocations: 2.349 MB / 0.6577 GB, free: 101.1 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003813/1.139, allocations: 0.6769 MB / 0.6583 GB, free: 100.7 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001565/1.139, allocations: 0 / 0.6583 GB, free: 100.7 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002349/1.139, allocations: 0.5533 MB / 0.6589 GB, free: 100.4 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00166/1.141, allocations: 1.478 MB / 0.6603 GB, free: 100.3 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002502/1.143, allocations: 4.152 MB / 0.6644 GB, free: 96.89 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00271/1.146, allocations: 2.541 MB / 0.6668 GB, free: 96.88 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.07e-05/1.146, allocations: 27.22 kB / 0.6669 GB, free: 96.88 MB / 458.7 MB Notification: Performance of matching and sorting (n=643) (initialization): time 0.008091/1.154, allocations: 5.508 MB / 0.6723 GB, free: 96.53 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/1.154, allocations: 5.906 kB / 0.6723 GB, free: 96.53 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.468e-05/1.154, allocations: 97.72 kB / 0.6724 GB, free: 96.53 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001234/1.155, allocations: 0.5668 MB / 0.6729 GB, free: 96.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002862/1.158, allocations: 1.044 MB / 0.6739 GB, free: 96.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007367/1.166, allocations: 7.749 MB / 0.6815 GB, free: 92.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003443/1.169, allocations: 127 kB / 0.6816 GB, free: 92.33 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004394/1.17, allocations: 293.6 kB / 0.6819 GB, free: 92.33 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.0006228/1.17, allocations: 343.4 kB / 0.6822 GB, free: 92.07 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002896/1.17, allocations: 227.7 kB / 0.6824 GB, free: 91.95 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003477/1.174, allocations: 2.468 MB / 0.6848 GB, free: 91.79 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001138/1.174, allocations: 29.17 kB / 0.6849 GB, free: 91.79 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/1.174, allocations: 7.5 kB / 0.6849 GB, free: 91.79 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.454e-05/1.174, allocations: 7.125 kB / 0.6849 GB, free: 91.79 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01041/1.185, allocations: 6.032 MB / 0.6908 GB, free: 91.07 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-05/1.185, allocations: 3.469 kB / 0.6908 GB, free: 91.07 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008975/1.186, allocations: 226.5 kB / 0.691 GB, free: 91.05 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001011/1.187, allocations: 420.8 kB / 0.6914 GB, free: 91.03 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001172/1.187, allocations: 13.58 kB / 0.6914 GB, free: 91.03 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006067/1.193, allocations: 6.741 MB / 0.698 GB, free: 87.15 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/1.193, allocations: 7.844 kB / 0.698 GB, free: 87.15 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00593/1.199, allocations: 3.918 MB / 0.7018 GB, free: 86.19 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007382/1.206, allocations: 5.564 MB / 0.7073 GB, free: 83.66 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008094/1.207, allocations: 308.5 kB / 0.7076 GB, free: 83.41 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006428/1.208, allocations: 3.688 kB / 0.7076 GB, free: 83.41 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001259/1.209, allocations: 34.78 kB / 0.7076 GB, free: 83.41 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001673/1.209, allocations: 86.73 kB / 0.7077 GB, free: 83.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001169/1.209, allocations: 55.56 kB / 0.7077 GB, free: 83.39 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.003147/1.212, allocations: 1.474 MB / 0.7092 GB, free: 82.79 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005954/1.218, allocations: 0.7137 MB / 0.7099 GB, free: 82.79 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.0005366/1.219, allocations: 142.8 kB / 0.71 GB, free: 82.68 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007345/1.226, allocations: 3.837 MB / 0.7138 GB, free: 81.22 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/1.226, allocations: 1 kB / 0.7138 GB, free: 81.22 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002298/1.229, allocations: 1.4 MB / 0.7151 GB, free: 80.55 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001798/1.23, allocations: 228.9 kB / 0.7153 GB, free: 80.45 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01387/1.244, allocations: 5.864 MB / 0.7211 GB, free: 75.97 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004568/1.249, allocations: 3.083 MB / 0.7241 GB, free: 73.52 MB / 458.7 MB Notification: Performance of SimCode: time 1.072e-06/1.249, allocations: 0 / 0.7241 GB, free: 73.52 MB / 458.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PistonEngine_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PistonEngine.fmu > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1)