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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 181.5 kB / 7.65 MB, free: 1.422 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.658/1.658, allocations: 221.5 MB / 229.6 MB, free: 7.59 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.0009099/0.0009098, allocations: 96.45 kB / 280.5 MB, free: 5.348 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03755/0.03755, allocations: 8.836 MB / 340.1 MB, free: 6.434 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.442e-05/2.438e-05, allocations: 3.312 kB / 398.8 MB, free: 47.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1114, allocations: 52.39 MB / 451.2 MB, free: 4.516 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3932/0.5046, allocations: 86.8 MB / 0.5254 GB, free: 27.51 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002365/0.5049, allocations: 76.17 kB / 0.5254 GB, free: 27.51 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1595/0.6644, allocations: 68.22 MB / 0.5921 GB, free: 9.438 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.6645, allocations: 3.938 kB / 0.5921 GB, free: 9.434 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001396/0.6647, allocations: 61.5 kB / 0.5921 GB, free: 9.43 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.01527/0.68, allocations: 3.714 MB / 0.5957 GB, free: 6.734 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.577e-05/0.68, allocations: 12.02 kB / 0.5958 GB, free: 6.723 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01011/0.6902, allocations: 1.984 MB / 0.5977 GB, free: 4.734 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005213/0.6954, allocations: 1.868 MB / 0.5995 GB, free: 3.309 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001873/0.6957, allocations: 104 kB / 0.5996 GB, free: 3.207 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002137/0.6978, allocations: 195 kB / 0.5998 GB, free: 3.02 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0116/0.7094, allocations: 5.806 MB / 0.6055 GB, free: 15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02193/0.7314, allocations: 7.789 MB / 0.6131 GB, free: 6.762 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000211/0.7317, allocations: 23.81 kB / 0.6131 GB, free: 6.738 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001715/0.7334, allocations: 16 kB / 0.6131 GB, free: 6.723 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001962/0.7354, allocations: 1.002 MB / 0.6141 GB, free: 5.723 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04884/0.7842, allocations: 28.48 MB / 0.6419 GB, free: 8.438 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004156/0.7885, allocations: 2.459 MB / 0.6443 GB, free: 5.867 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001564/0.7901, allocations: 0.8475 MB / 0.6451 GB, free: 5.023 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009191/0.7993, allocations: 4.849 MB / 0.6499 GB, free: 15.77 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.64e-05/0.7994, allocations: 47.81 kB / 0.6499 GB, free: 15.71 MB / 426.7 MB Notification: Performance of pre-optimization done (n=146): time 4.769e-06/0.7994, allocations: 4 kB / 0.6499 GB, free: 15.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=184): time 0.01266/0.8121, allocations: 4.722 MB / 0.6545 GB, free: 10.98 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.862e-05/0.8122, allocations: 64.72 kB / 0.6546 GB, free: 10.91 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003862/0.8161, allocations: 2.174 MB / 0.6567 GB, free: 8.703 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002107/0.8163, allocations: 25.7 kB / 0.6567 GB, free: 8.672 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001774/0.8181, allocations: 2.448 MB / 0.6591 GB, free: 6.188 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007656/0.8189, allocations: 0.6551 MB / 0.6598 GB, free: 5.523 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001867/0.819, allocations: 0 / 0.6598 GB, free: 5.523 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003896/0.8194, allocations: 0.5563 MB / 0.6603 GB, free: 4.957 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002208/0.8217, allocations: 1.404 MB / 0.6617 GB, free: 3.547 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004248/0.8259, allocations: 4.072 MB / 0.6657 GB, free: 14.13 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003831/0.8298, allocations: 2.422 MB / 0.668 GB, free: 11.71 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.486e-05/0.8299, allocations: 28 kB / 0.668 GB, free: 11.68 MB / 442.7 MB Notification: Performance of matching and sorting (n=637) (initialization): time 0.01016/0.84, allocations: 5.398 MB / 0.6733 GB, free: 6.27 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.086e-05/0.8401, allocations: 44 kB / 0.6734 GB, free: 6.227 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001331/0.8403, allocations: 96 kB / 0.6735 GB, free: 6.133 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001445/0.8417, allocations: 0.5571 MB / 0.674 GB, free: 5.566 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003644/0.8454, allocations: 1.045 MB / 0.675 GB, free: 4.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009743/0.8551, allocations: 8.07 MB / 0.6829 GB, free: 12.08 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003668/0.8589, allocations: 148 kB / 0.683 GB, free: 11.93 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008198/0.8597, allocations: 288 kB / 0.6833 GB, free: 11.65 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 (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.000745/0.8605, allocations: 357.5 kB / 0.6837 GB, free: 11.29 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00381/0.8643, allocations: 2.156 MB / 0.6858 GB, free: 9.125 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004077/0.8647, allocations: 225.1 kB / 0.686 GB, free: 8.902 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003956/0.8687, allocations: 2.344 MB / 0.6883 GB, free: 6.527 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001151/0.8688, allocations: 35.97 kB / 0.6883 GB, free: 6.492 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/0.8688, allocations: 4 kB / 0.6883 GB, free: 6.488 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.711e-05/0.8689, allocations: 7.969 kB / 0.6883 GB, free: 6.48 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01143/0.8803, allocations: 5.864 MB / 0.694 GB, free: 0.5039 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.07e-05/0.8803, allocations: 4 kB / 0.694 GB, free: 0.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008976/0.8813, allocations: 219.7 kB / 0.6942 GB, free: 292 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2701/1.151, allocations: 412.1 kB / 0.6946 GB, free: 118.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002887/1.152, allocations: 8.125 kB / 0.6947 GB, free: 118.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006288/1.158, allocations: 6.911 MB / 0.7014 GB, free: 115 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.474e-06/1.158, allocations: 11.45 kB / 0.7014 GB, free: 115 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006013/1.164, allocations: 3.699 MB / 0.705 GB, free: 114.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007956/1.165, allocations: 302.9 kB / 0.7053 GB, free: 114.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002645/1.165, allocations: 6.438 kB / 0.7053 GB, free: 114.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008877/1.166, allocations: 50.19 kB / 0.7054 GB, free: 114.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002625/1.166, allocations: 113.8 kB / 0.7055 GB, free: 114.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000121/1.166, allocations: 51.77 kB / 0.7055 GB, free: 114.4 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002594/1.169, allocations: 1.443 MB / 0.7069 GB, free: 114.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.169, allocations: 0 / 0.7069 GB, free: 114.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004985/1.174, allocations: 0.7092 MB / 0.7076 GB, free: 114.3 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 (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.006017/1.18, allocations: 4.901 MB / 0.7124 GB, free: 112.7 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005722/1.186, allocations: 3.74 MB / 0.7161 GB, free: 112.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.912e-06/1.186, allocations: 0 / 0.7161 GB, free: 112.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00166/1.188, allocations: 1.392 MB / 0.7174 GB, free: 112 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001583/1.189, allocations: 231.8 kB / 0.7176 GB, free: 112 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0137/1.203, allocations: 6.674 MB / 0.7242 GB, free: 110.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002636/1.206, allocations: 2.874 MB / 0.727 GB, free: 109.9 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003029/1.209, allocations: 1.309 MB / 0.7282 GB, free: 109.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001685/1.21, allocations: 1.491 MB / 0.7297 GB, free: 109.9 MB / 458.7 MB Notification: Performance of SimCode: time 1.042e-06/1.21, allocations: 0 / 0.7297 GB, free: 109.9 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08668/1.297, allocations: 54.55 MB / 0.783 GB, free: 79.12 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000145/1.297, allocations: 142.6 kB / 0.7831 GB, free: 78.91 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.629/4.926, allocations: 0 / 0.7831 GB, free: 78.91 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)