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.001708/0.001708, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 221.4 MB / 234.6 MB, free: 14.45 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009302/0.0009301, allocations: 93.81 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.0593/0.0593, allocations: 8.842 MB / 345.3 MB, free: 1.297 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.55e-05/2.552e-05, allocations: 4 kB / 405.7 MB, free: 61.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08795/0.08799, allocations: 52.4 MB / 458.1 MB, free: 8.945 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3538/0.4419, allocations: 87.47 MB / 0.5327 GB, free: 14.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001804/0.4421, allocations: 77.52 kB / 0.5328 GB, free: 14.23 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1807/0.6228, allocations: 70.2 MB / 0.6014 GB, free: 14.11 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.6228, allocations: 0 / 0.6014 GB, free: 14.11 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000158/0.623, allocations: 60 kB / 0.6014 GB, free: 14.05 MB / 426.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.01364/0.6367, allocations: 3.717 MB / 0.6051 GB, free: 10.27 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.6367, allocations: 8.031 kB / 0.6051 GB, free: 10.27 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002565/0.6393, allocations: 0.6477 MB / 0.6057 GB, free: 9.609 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009723/0.649, allocations: 1.977 MB / 0.6076 GB, free: 7.625 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007231/0.6563, allocations: 1.868 MB / 0.6095 GB, free: 5.707 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004018/0.6568, allocations: 250.4 kB / 0.6097 GB, free: 5.461 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002223/0.659, allocations: 331.8 kB / 0.61 GB, free: 5.137 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02222/0.6812, allocations: 8.461 MB / 0.6183 GB, free: 12.23 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002795/0.6816, allocations: 27.72 kB / 0.6183 GB, free: 12.2 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002061/0.6837, allocations: 151.8 kB / 0.6184 GB, free: 12.05 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001972/0.6857, allocations: 0.9981 MB / 0.6194 GB, free: 11.05 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01814/0.7039, allocations: 7.753 MB / 0.627 GB, free: 3.289 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3278/1.032, allocations: 28.5 MB / 0.6548 GB, free: 101.5 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01063/1.042, allocations: 2.78 MB / 0.6575 GB, free: 100.9 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002194/1.045, allocations: 0.9482 MB / 0.6585 GB, free: 100.9 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01084/1.055, allocations: 6.475 MB / 0.6648 GB, free: 97.51 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.675e-05/1.056, allocations: 47.58 kB / 0.6648 GB, free: 97.46 MB / 458.7 MB Notification: Performance of pre-optimization done (n=155): time 4.378e-06/1.056, allocations: 1.375 kB / 0.6648 GB, free: 97.46 MB / 458.7 MB Notification: Performance of matching and sorting (n=193): time 0.01486/1.07, allocations: 5.458 MB / 0.6702 GB, free: 96.71 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.812e-05/1.071, allocations: 75.36 kB / 0.6702 GB, free: 96.65 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004368/1.075, allocations: 2.627 MB / 0.6728 GB, free: 96.38 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001779/1.075, allocations: 53.06 kB / 0.6728 GB, free: 96.34 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001276/1.076, allocations: 2.354 MB / 0.6751 GB, free: 95.11 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006416/1.077, allocations: 0.7084 MB / 0.6758 GB, free: 94.69 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001814/1.077, allocations: 93.81 kB / 0.6759 GB, free: 94.69 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002168/1.077, allocations: 0.4974 MB / 0.6764 GB, free: 94.37 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001912/1.079, allocations: 1.417 MB / 0.6778 GB, free: 94.36 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003021/1.082, allocations: 3.971 MB / 0.6817 GB, free: 91.07 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003188/1.086, allocations: 2.402 MB / 0.684 GB, free: 91.05 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.373e-05/1.086, allocations: 26.41 kB / 0.684 GB, free: 91.05 MB / 458.7 MB Notification: Performance of matching and sorting (n=613) (initialization): time 0.009406/1.095, allocations: 5.786 MB / 0.6897 GB, free: 90.66 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.753e-05/1.095, allocations: 42.34 kB / 0.6897 GB, free: 90.66 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.815e-05/1.095, allocations: 93.25 kB / 0.6898 GB, free: 90.66 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001257/1.097, allocations: 0.5646 MB / 0.6904 GB, free: 90.63 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003008/1.1, allocations: 1.001 MB / 0.6914 GB, free: 90.54 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007989/1.108, allocations: 8.345 MB / 0.6995 GB, free: 85.77 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004189/1.112, allocations: 235.8 kB / 0.6997 GB, free: 85.69 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009308/1.113, allocations: 276.1 kB / 0.7 GB, free: 85.65 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 410 * 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 (546): * Single equations (assignments): 539 * 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.0008654/1.114, allocations: 450.1 kB / 0.7004 GB, free: 85.28 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007346/1.114, allocations: 269.9 kB / 0.7007 GB, free: 85.13 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004024/1.118, allocations: 2.576 MB / 0.7032 GB, free: 84.18 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001098/1.119, allocations: 35.75 kB / 0.7032 GB, free: 84.18 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.729e-06/1.119, allocations: 3.281 kB / 0.7032 GB, free: 84.18 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.788e-05/1.119, allocations: 7.219 kB / 0.7032 GB, free: 84.18 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01211/1.131, allocations: 7.249 MB / 0.7103 GB, free: 81.37 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.196e-05/1.131, allocations: 7.531 kB / 0.7103 GB, free: 81.37 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008448/1.132, allocations: 234.2 kB / 0.7105 GB, free: 81.35 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001009/1.133, allocations: 419.7 kB / 0.7109 GB, free: 81.25 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001092/1.133, allocations: 36.06 kB / 0.711 GB, free: 81.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006523/1.139, allocations: 7.201 MB / 0.718 GB, free: 76 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.533e-06/1.139, allocations: 7.891 kB / 0.718 GB, free: 76 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005313/1.145, allocations: 4.237 MB / 0.7222 GB, free: 73.91 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001167/1.146, allocations: 355.7 kB / 0.7225 GB, free: 73.63 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003243/1.146, allocations: 31.38 kB / 0.7225 GB, free: 73.61 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009856/1.147, allocations: 90.61 kB / 0.7226 GB, free: 73.59 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002642/1.148, allocations: 119.6 kB / 0.7227 GB, free: 73.56 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001089/1.148, allocations: 59.95 kB / 0.7228 GB, free: 73.55 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002651/1.15, allocations: 1.848 MB / 0.7246 GB, free: 72.84 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.15, allocations: 4 kB / 0.7246 GB, free: 72.84 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004118/1.154, allocations: 0.8281 MB / 0.7254 GB, free: 72.73 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (134): * Single equations (assignments): 127 * 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.006091/1.161, allocations: 5.99 MB / 0.7313 GB, free: 68.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006391/1.167, allocations: 3.929 MB / 0.7351 GB, free: 64.96 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.999e-06/1.167, allocations: 8.188 kB / 0.7351 GB, free: 64.96 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001828/1.169, allocations: 1.492 MB / 0.7366 GB, free: 63.55 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002169/1.171, allocations: 389.7 kB / 0.7369 GB, free: 63.24 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0154/1.186, allocations: 6.995 MB / 0.7438 GB, free: 57.05 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002442/1.189, allocations: 2.876 MB / 0.7466 GB, free: 54.81 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003036/1.192, allocations: 1.323 MB / 0.7479 GB, free: 53.97 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001932/1.194, allocations: 1.493 MB / 0.7493 GB, free: 52.59 MB / 458.7 MB Notification: Performance of SimCode: time 2.224e-06/1.194, allocations: 0 / 0.7493 GB, free: 52.59 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08944/1.283, allocations: 62.54 MB / 0.8104 GB, free: 11.29 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000176/1.284, allocations: 176.1 kB / 0.8106 GB, free: 11.07 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.926/5.209, allocations: 0 / 0.8106 GB, free: 11.07 MB / 474.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)