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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/PlanarMechanics 1.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001103, allocations: 86.95 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1752/0.1752, allocations: 9.112 MB / 300.2 MB, free: 2.793 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003126/0.0003127, allocations: 16 kB / 363.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09848/0.09881, allocations: 52.43 MB / 415.6 MB, free: 8.438 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.2057/0.3045, allocations: 35.94 MB / 451.6 MB, free: 22.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01529/0.3199, allocations: 8.068 MB / 459.6 MB, free: 16.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006152/0.3261, allocations: 149.2 kB / 459.8 MB, free: 16.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004226/0.3303, allocations: 1.776 MB / 461.6 MB, free: 16.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01397/0.3443, allocations: 6.209 MB / 467.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001262/0.3456, allocations: 171 kB / 467.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002623/0.3482, allocations: 3.143 MB / 471.1 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008614/0.3491, allocations: 0.9447 MB / 472 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007108/0.3498, allocations: 0.9112 MB / 472.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001409/0.3512, allocations: 1.441 MB / 474.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002767/0.3515, allocations: 147.7 kB / 474.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001176/0.3527, allocations: 0.6838 MB / 475.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008828/0.3536, allocations: 1.225 MB / 476.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000519/0.3541, allocations: 0.7096 MB / 477.1 MB, free: 9.871 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004266/0.3584, allocations: 4.003 MB / 481.1 MB, free: 8.941 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.3584, allocations: 1.188 kB / 481.1 MB, free: 8.941 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3584, allocations: 0 / 481.1 MB, free: 8.941 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.65e-05/0.3585, allocations: 0 / 481.1 MB, free: 8.941 MB / 350.1 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.01055/0.3691, allocations: 4.485 MB / 485.6 MB, free: 7.094 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.3691, allocations: 12.94 kB / 485.6 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008591/0.37, allocations: 0.6031 MB / 486.2 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006277/0.3763, allocations: 1.857 MB / 488.1 MB, free: 5.863 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002752/0.3791, allocations: 1.479 MB / 489.6 MB, free: 4.805 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001267/0.3792, allocations: 178.3 kB / 489.8 MB, free: 4.715 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004711/0.3797, allocations: 228.3 kB / 490 MB, free: 4.633 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01441/0.3941, allocations: 8.941 MB / 498.9 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.432e-05/0.3942, allocations: 26.19 kB / 498.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003258/0.3945, allocations: 111.4 kB / 499.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003146/0.3977, allocations: 2.018 MB / 0.4893 GB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01574/0.4135, allocations: 7.929 MB / 0.4971 GB, free: 6.008 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0395/0.453, allocations: 28.56 MB / 0.525 GB, free: 8.852 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00657/0.4596, allocations: 2.813 MB / 0.5277 GB, free: 5.938 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001418/0.461, allocations: 0.9743 MB / 0.5287 GB, free: 4.961 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008236/0.4693, allocations: 6.461 MB / 0.535 GB, free: 13.87 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.784e-05/0.4694, allocations: 51.81 kB / 0.535 GB, free: 13.81 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 6.462e-06/0.4694, allocations: 3.984 kB / 0.535 GB, free: 13.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=197): time 0.02097/0.4903, allocations: 9.751 MB / 0.5445 GB, free: 3.949 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007459/0.4978, allocations: 6.449 MB / 0.5508 GB, free: 13.2 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00444/0.5023, allocations: 3.015 MB / 0.5538 GB, free: 10.18 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002066/0.5025, allocations: 53.7 kB / 0.5538 GB, free: 10.12 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001473/0.504, allocations: 2.358 MB / 0.5561 GB, free: 7.727 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006139/0.5046, allocations: 0.7208 MB / 0.5568 GB, free: 6.996 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000192/0.5048, allocations: 92 kB / 0.5569 GB, free: 6.906 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002696/0.5051, allocations: 0.5046 MB / 0.5574 GB, free: 6.395 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002279/0.5074, allocations: 1.512 MB / 0.5589 GB, free: 4.875 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003878/0.5113, allocations: 4.094 MB / 0.5629 GB, free: 15.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003283/0.5146, allocations: 2.485 MB / 0.5653 GB, free: 13.01 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.251e-05/0.5146, allocations: 27.94 kB / 0.5654 GB, free: 12.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.008964/0.5236, allocations: 6.001 MB / 0.5712 GB, free: 6.969 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.669e-05/0.5237, allocations: 44 kB / 0.5713 GB, free: 6.926 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.137e-05/0.5237, allocations: 88 kB / 0.5713 GB, free: 6.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001467/0.5252, allocations: 0.6285 MB / 0.572 GB, free: 6.203 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002722/0.528, allocations: 1.025 MB / 0.573 GB, free: 5.176 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2126/0.7406, allocations: 8.446 MB / 0.5812 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003854/0.7445, allocations: 251.9 kB / 0.5814 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005291/0.745, allocations: 279.2 kB / 0.5817 GB, free: 117.4 MB / 446.1 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 (554): * Single equations (assignments): 547 * 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.002901/0.748, allocations: 1.729 MB / 0.5834 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003767/0.7483, allocations: 266.6 kB / 0.5837 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004344/0.7527, allocations: 2.871 MB / 0.5865 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.096e-05/0.7528, allocations: 30.78 kB / 0.5865 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.7528, allocations: 7.547 kB / 0.5865 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.724e-05/0.7528, allocations: 7.859 kB / 0.5865 GB, free: 117.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01329/0.7661, allocations: 9.281 MB / 0.5956 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.065e-05/0.7662, allocations: 3.219 kB / 0.5956 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007271/0.7669, allocations: 215.6 kB / 0.5958 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001435/0.7684, allocations: 0.6318 MB / 0.5964 GB, free: 114 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-05/0.7685, allocations: 39.45 kB / 0.5964 GB, free: 114 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00814/0.7766, allocations: 8.595 MB / 0.6048 GB, free: 108.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005165/0.7818, allocations: 5.674 MB / 0.6104 GB, free: 104.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005733/0.7876, allocations: 4.171 MB / 0.6144 GB, free: 103 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009834/0.7886, allocations: 362.9 kB / 0.6148 GB, free: 102.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002898/0.7889, allocations: 37.48 kB / 0.6148 GB, free: 102.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008772/0.7898, allocations: 81.8 kB / 0.6149 GB, free: 102.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002914/0.7901, allocations: 136 kB / 0.615 GB, free: 102.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001194/0.7902, allocations: 57.73 kB / 0.6151 GB, free: 102.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003396/0.7936, allocations: 1.923 MB / 0.617 GB, free: 102 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.393e-06/0.7936, allocations: 0 / 0.617 GB, free: 102 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004784/0.7984, allocations: 0.9017 MB / 0.6178 GB, free: 101.9 MB / 446.1 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 (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 {(3,88.9%) 17,(2,100.0%) 11} * Non-linear torn systems: 1 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.006532/0.8049, allocations: 4.816 MB / 0.6225 GB, free: 99.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007341/0.8123, allocations: 4.119 MB / 0.6266 GB, free: 97.97 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/0.8123, allocations: 1.312 kB / 0.6266 GB, free: 97.97 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002472/0.8148, allocations: 1.659 MB / 0.6282 GB, free: 97.16 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002451/0.8173, allocations: 426.2 kB / 0.6286 GB, free: 96.99 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04032/0.8576, allocations: 25.01 MB / 0.653 GB, free: 77.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002408/0.8601, allocations: 2.831 MB / 0.6558 GB, free: 75.53 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002951/0.863, allocations: 1.332 MB / 0.6571 GB, free: 74.68 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001533/0.8646, allocations: 1.465 MB / 0.6585 GB, free: 73.34 MB / 446.1 MB Notification: Performance of SimCode: time 9.52e-07/0.8646, allocations: 0 / 0.6585 GB, free: 73.34 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07833/0.9429, allocations: 65.04 MB / 0.722 GB, free: 9.141 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001205/0.9431, allocations: 233.1 kB / 0.7222 GB, free: 8.898 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.011/3.954, allocations: 8 kB / 0.7223 GB, free: 8.891 MB / 446.1 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) Environment - environmentSimulation: