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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004763/0.004763, allocations: 171.8 kB / 15.12 MB, free: 5.973 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.196/1.196, allocations: 223.2 MB / 239 MB, free: 1.781 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.0008697/0.0008697, allocations: 97.08 kB / 290.2 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04092/0.04092, allocations: 8.947 MB / 350.3 MB, free: 2.055 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002779/0.0002779, allocations: 8.781 kB / 413.2 MB, free: 88.5 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06981/0.0701, allocations: 52.4 MB / 465.6 MB, free: 41.58 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2505/0.3206, allocations: 87.53 MB / 0.5402 GB, free: 16.19 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001856/0.3209, allocations: 75.05 kB / 0.5402 GB, free: 16.19 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1521/0.473, allocations: 70.13 MB / 0.6087 GB, free: 7.793 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.473, allocations: 0 / 0.6087 GB, free: 7.793 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001229/0.4731, allocations: 60 kB / 0.6088 GB, free: 7.734 MB / 378.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.01369/0.4868, allocations: 3.818 MB / 0.6125 GB, free: 4.168 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.4869, allocations: 8.031 kB / 0.6125 GB, free: 4.16 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002378/0.4893, allocations: 0.6478 MB / 0.6132 GB, free: 3.773 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00906/0.4984, allocations: 1.977 MB / 0.6151 GB, free: 1.789 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004513/0.5029, allocations: 1.864 MB / 0.6169 GB, free: 384 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002378/0.5032, allocations: 254.2 kB / 0.6172 GB, free: 220 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001654/0.5048, allocations: 328.8 kB / 0.6175 GB, free: 15.97 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01811/0.5229, allocations: 8.542 MB / 0.6258 GB, free: 8.207 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001419/0.5231, allocations: 35.66 kB / 0.6258 GB, free: 8.172 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001033/0.5242, allocations: 147.9 kB / 0.626 GB, free: 8.027 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001566/0.5257, allocations: 0.998 MB / 0.627 GB, free: 7.027 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01548/0.5412, allocations: 7.873 MB / 0.6346 GB, free: 15.14 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03849/0.5798, allocations: 28.52 MB / 0.6625 GB, free: 2.02 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007052/0.5869, allocations: 2.808 MB / 0.6652 GB, free: 15.1 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01001/0.5969, allocations: 6.478 MB / 0.6716 GB, free: 7.996 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.355e-05/0.597, allocations: 47.81 kB / 0.6716 GB, free: 7.941 MB / 442.7 MB Notification: Performance of pre-optimization done (n=155): time 3.586e-06/0.597, allocations: 0 / 0.6716 GB, free: 7.941 MB / 442.7 MB Notification: Performance of matching and sorting (n=197): time 0.02181/0.6188, allocations: 10.16 MB / 0.6815 GB, free: 13.57 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01279/0.6316, allocations: 11.28 MB / 0.6926 GB, free: 1.645 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1765/0.8082, allocations: 2.666 MB / 0.6952 GB, free: 112.8 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000285/0.8085, allocations: 52.95 kB / 0.6952 GB, free: 112.7 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001472/0.81, allocations: 2.355 MB / 0.6975 GB, free: 112.1 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007048/0.8107, allocations: 0.7178 MB / 0.6982 GB, free: 111.8 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000399/0.8112, allocations: 91.84 kB / 0.6983 GB, free: 111.8 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000312/0.8115, allocations: 0.5061 MB / 0.6988 GB, free: 111.4 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002369/0.8139, allocations: 1.49 MB / 0.7002 GB, free: 111.4 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002908/0.8168, allocations: 4.049 MB / 0.7042 GB, free: 108.2 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002807/0.8196, allocations: 2.451 MB / 0.7066 GB, free: 108.1 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.954e-05/0.8196, allocations: 23.84 kB / 0.7066 GB, free: 108.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=619) (initialization): time 0.007892/0.8275, allocations: 5.948 MB / 0.7124 GB, free: 107.7 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.055e-05/0.8276, allocations: 43.41 kB / 0.7125 GB, free: 107.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001205/0.8278, allocations: 90.53 kB / 0.7125 GB, free: 107.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001364/0.8291, allocations: 0.563 MB / 0.7131 GB, free: 107.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002918/0.8321, allocations: 1.019 MB / 0.7141 GB, free: 107.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007845/0.8399, allocations: 8.602 MB / 0.7225 GB, free: 103.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003477/0.8434, allocations: 243.8 kB / 0.7227 GB, free: 103.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005122/0.844, allocations: 275.1 kB / 0.723 GB, free: 103.3 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (552): * Single equations (assignments): 545 * 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.002631/0.8466, allocations: 1.736 MB / 0.7247 GB, free: 103.1 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003845/0.847, allocations: 269 kB / 0.7249 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004317/0.8513, allocations: 2.837 MB / 0.7277 GB, free: 102.8 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001069/0.8514, allocations: 30.75 kB / 0.7277 GB, free: 102.8 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-05/0.8515, allocations: 6.344 kB / 0.7277 GB, free: 102.8 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.549e-05/0.8515, allocations: 11.36 kB / 0.7278 GB, free: 102.8 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01357/0.8651, allocations: 9.234 MB / 0.7368 GB, free: 100.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.814e-06/0.8651, allocations: 7.406 kB / 0.7368 GB, free: 100.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007167/0.8658, allocations: 217.6 kB / 0.737 GB, free: 100.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001261/0.8671, allocations: 0.5614 MB / 0.7375 GB, free: 100.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.552e-05/0.8672, allocations: 43.78 kB / 0.7376 GB, free: 100.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007704/0.8749, allocations: 8.785 MB / 0.7462 GB, free: 94.68 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005045/0.88, allocations: 5.769 MB / 0.7518 GB, free: 90.75 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005741/0.8857, allocations: 4.416 MB / 0.7561 GB, free: 88.67 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008696/0.8866, allocations: 361 kB / 0.7564 GB, free: 88.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002711/0.8869, allocations: 33.09 kB / 0.7565 GB, free: 88.38 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009206/0.8878, allocations: 89.41 kB / 0.7566 GB, free: 88.36 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002464/0.8881, allocations: 131.5 kB / 0.7567 GB, free: 88.33 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001028/0.8882, allocations: 58.75 kB / 0.7567 GB, free: 88.32 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002449/0.8907, allocations: 1.882 MB / 0.7586 GB, free: 87.63 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.8907, allocations: 3.875 kB / 0.7586 GB, free: 87.63 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003448/0.8941, allocations: 0.8958 MB / 0.7595 GB, free: 87.52 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 ($STATESET2.x,$STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (124): * Single equations (assignments): 117 * 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,(2,100.0%) 11} * Non-linear torn systems: 1 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.005241/0.8994, allocations: 5.917 MB / 0.7652 GB, free: 84.09 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005075/0.9045, allocations: 4.088 MB / 0.7692 GB, free: 81.93 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.9045, allocations: 0 / 0.7692 GB, free: 81.93 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001777/0.9063, allocations: 1.652 MB / 0.7708 GB, free: 80.42 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001635/0.9079, allocations: 375.1 kB / 0.7712 GB, free: 80.12 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04547/0.9534, allocations: 86.5 MB / 0.8557 GB, free: 9.156 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003039/0.9565, allocations: 2.901 MB / 0.8585 GB, free: 6.887 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.003439/0.9599, allocations: 1.322 MB / 0.8598 GB, free: 6.055 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002111/0.9621, allocations: 1.472 MB / 0.8612 GB, free: 4.699 MB / 474.7 MB Notification: Performance of SimCode: time 8.72e-07/0.9621, allocations: 0 / 0.8612 GB, free: 4.699 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2723/1.234, allocations: 65.06 MB / 0.9248 GB, free: 110.9 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001646/1.235, allocations: 227.6 kB / 0.925 GB, free: 110.7 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.38/4.615, allocations: 0 / 0.925 GB, free: 110.7 MB / 474.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)