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.001039/0.001039, allocations: 174.6 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.399/1.399, 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.000934/0.000934, allocations: 99.02 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.03994/0.03994, allocations: 8.833 MB / 345.3 MB, free: 1.301 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.613e-05/2.617e-05, allocations: 4 kB / 405.7 MB, free: 61.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08531/0.08535, allocations: 52.39 MB / 458.1 MB, free: 8.949 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.348/0.4334, allocations: 87.47 MB / 0.5327 GB, free: 14.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002295/0.4337, allocations: 71.03 kB / 0.5328 GB, free: 14.3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1776/0.6113, allocations: 70.2 MB / 0.6014 GB, free: 14.12 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.6114, allocations: 4 kB / 0.6014 GB, free: 14.12 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001367/0.6115, allocations: 60 kB / 0.6014 GB, free: 14.06 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.01437/0.6259, allocations: 3.715 MB / 0.605 GB, free: 10.29 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.6259, allocations: 8.031 kB / 0.6051 GB, free: 10.28 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002466/0.6284, allocations: 0.6477 MB / 0.6057 GB, free: 9.625 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008884/0.6373, allocations: 1.985 MB / 0.6076 GB, free: 7.633 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004634/0.642, allocations: 1.864 MB / 0.6094 GB, free: 5.719 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002591/0.6423, allocations: 250.4 kB / 0.6097 GB, free: 5.473 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00176/0.644, allocations: 331.8 kB / 0.61 GB, free: 5.148 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01889/0.663, allocations: 8.465 MB / 0.6183 GB, free: 12.23 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001583/0.6631, allocations: 31.66 kB / 0.6183 GB, free: 12.2 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009898/0.6641, allocations: 147.9 kB / 0.6184 GB, free: 12.06 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001454/0.6656, allocations: 0.9942 MB / 0.6194 GB, free: 11.06 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01672/0.6823, allocations: 7.753 MB / 0.627 GB, free: 3.301 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2918/0.9742, allocations: 28.49 MB / 0.6548 GB, free: 100.7 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006921/0.9812, allocations: 2.785 MB / 0.6575 GB, free: 100.1 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001512/0.9828, allocations: 0.9484 MB / 0.6585 GB, free: 100.1 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009282/0.9921, allocations: 6.472 MB / 0.6648 GB, free: 96.7 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.385e-05/0.9921, allocations: 43.84 kB / 0.6648 GB, free: 96.65 MB / 458.7 MB Notification: Performance of pre-optimization done (n=155): time 5.099e-06/0.9922, allocations: 2.531 kB / 0.6648 GB, free: 96.65 MB / 458.7 MB Notification: Performance of matching and sorting (n=197): time 0.0198/1.012, allocations: 8.57 MB / 0.6732 GB, free: 95.33 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01002/1.022, allocations: 10.74 MB / 0.6837 GB, free: 89.48 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003655/1.026, allocations: 2.631 MB / 0.6862 GB, free: 89.2 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003067/1.026, allocations: 52.7 kB / 0.6863 GB, free: 89.17 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001167/1.027, allocations: 2.356 MB / 0.6886 GB, free: 87.91 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006822/1.028, allocations: 0.7222 MB / 0.6893 GB, free: 87.49 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002005/1.028, allocations: 93.5 kB / 0.6894 GB, free: 87.49 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002085/1.028, allocations: 0.5045 MB / 0.6899 GB, free: 87.17 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001993/1.03, allocations: 1.437 MB / 0.6913 GB, free: 87.16 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002954/1.033, allocations: 4.009 MB / 0.6952 GB, free: 83.87 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003106/1.036, allocations: 2.425 MB / 0.6976 GB, free: 83.73 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.657e-05/1.037, allocations: 26.81 kB / 0.6976 GB, free: 83.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=619) (initialization): time 0.01011/1.047, allocations: 5.848 MB / 0.7033 GB, free: 81.94 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.412e-05/1.047, allocations: 46.28 kB / 0.7034 GB, free: 81.94 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001128/1.047, allocations: 90.06 kB / 0.7034 GB, free: 81.94 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00122/1.048, allocations: 0.5595 MB / 0.704 GB, free: 81.82 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003399/1.052, allocations: 1.014 MB / 0.705 GB, free: 81.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008101/1.06, allocations: 8.417 MB / 0.7132 GB, free: 75.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003841/1.064, allocations: 239.1 kB / 0.7134 GB, free: 75.81 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006917/1.064, allocations: 281.7 kB / 0.7137 GB, free: 75.78 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 (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.0007547/1.065, allocations: 456 kB / 0.7141 GB, free: 75.4 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004611/1.066, allocations: 268 kB / 0.7144 GB, free: 75.25 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004394/1.07, allocations: 2.797 MB / 0.7171 GB, free: 74.23 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001032/1.07, allocations: 35.91 kB / 0.7171 GB, free: 74.23 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/1.07, allocations: 6.25 kB / 0.7172 GB, free: 74.23 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.605e-05/1.07, allocations: 10.45 kB / 0.7172 GB, free: 74.23 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01396/1.084, allocations: 9.193 MB / 0.7261 GB, free: 70.54 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.086e-05/1.084, allocations: 4.188 kB / 0.7261 GB, free: 70.54 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007278/1.085, allocations: 213.8 kB / 0.7263 GB, free: 70.51 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001276/1.086, allocations: 0.5645 MB / 0.7269 GB, free: 70.37 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.297e-05/1.086, allocations: 38.11 kB / 0.7269 GB, free: 70.35 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008097/1.094, allocations: 8.517 MB / 0.7353 GB, free: 64.45 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005343/1.1, allocations: 5.618 MB / 0.7407 GB, free: 59.09 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005558/1.105, allocations: 4.353 MB / 0.745 GB, free: 55.07 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00104/1.106, allocations: 357.9 kB / 0.7453 GB, free: 54.71 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002976/1.107, allocations: 35.05 kB / 0.7454 GB, free: 54.68 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/1.108, allocations: 80.09 kB / 0.7454 GB, free: 54.63 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002806/1.108, allocations: 138.1 kB / 0.7456 GB, free: 54.54 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/1.108, allocations: 55.8 kB / 0.7456 GB, free: 54.49 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002532/1.111, allocations: 1.847 MB / 0.7474 GB, free: 52.83 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.111, allocations: 0 / 0.7474 GB, free: 52.83 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004076/1.115, allocations: 0.8931 MB / 0.7483 GB, free: 51.94 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 () * 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.005398/1.12, allocations: 5.858 MB / 0.754 GB, free: 46.44 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005974/1.126, allocations: 4.001 MB / 0.7579 GB, free: 42.75 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.029e-05/1.126, allocations: 4 kB / 0.7579 GB, free: 42.75 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001985/1.128, allocations: 1.613 MB / 0.7595 GB, free: 41.23 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002174/1.13, allocations: 390.6 kB / 0.7599 GB, free: 40.93 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01473/1.145, allocations: 7.233 MB / 0.7669 GB, free: 34.5 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002623/1.148, allocations: 2.905 MB / 0.7698 GB, free: 32.24 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00346/1.151, allocations: 1.32 MB / 0.7711 GB, free: 31.41 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001963/1.153, allocations: 1.467 MB / 0.7725 GB, free: 30.05 MB / 458.7 MB Notification: Performance of SimCode: time 1.693e-06/1.153, allocations: 11.75 kB / 0.7725 GB, free: 30.05 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.327/1.48, allocations: 65.21 MB / 0.8362 GB, free: 120.2 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001545/1.481, allocations: 198.8 kB / 0.8364 GB, free: 120 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.238/5.719, allocations: 2.812 kB / 0.8364 GB, free: 120 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)