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.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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.001236/0.001236, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001109/0.001109, allocations: 195.3 kB / 16.14 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.262/1.262, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1456/0.1456, allocations: 9.089 MB / 299 MB, free: 1.871 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 60.12 kB / 361.3 MB, free: 13.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09045/0.09165, allocations: 51.45 MB / 412.8 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.1921/0.2838, allocations: 39.66 MB / 452.5 MB, free: 20.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01437/0.2982, allocations: 8.425 MB / 460.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007412/0.3056, allocations: 147.6 kB / 461 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009672/0.3066, allocations: 347.7 kB / 461.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002778/0.3094, allocations: 1.427 MB / 462.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004015/0.3098, allocations: 159.6 kB / 462.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002662/0.3125, allocations: 3.919 MB / 466.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009291/0.3135, allocations: 0.9795 MB / 467.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007511/0.3142, allocations: 0.8854 MB / 468.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001228/0.3155, allocations: 1.477 MB / 470.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000251/0.3157, allocations: 159.8 kB / 470.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001123/0.3168, allocations: 0.8022 MB / 471.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007882/0.3176, allocations: 1.265 MB / 472.4 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001152/0.3188, allocations: 1.674 MB / 474.1 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004729/0.3235, allocations: 5.045 MB / 479.1 MB, free: 7.121 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3236, allocations: 0 / 479.1 MB, free: 7.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3236, allocations: 1.219 kB / 479.1 MB, free: 7.121 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.761e-05/0.3237, allocations: 0 / 479.1 MB, free: 7.121 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.01191/0.3356, allocations: 5.175 MB / 484.3 MB, free: 4.852 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.3356, allocations: 10.38 kB / 484.3 MB, free: 4.852 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007335/0.3364, allocations: 0.6031 MB / 484.9 MB, free: 4.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006704/0.3431, allocations: 1.812 MB / 486.7 MB, free: 4.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002644/0.3458, allocations: 1.503 MB / 488.2 MB, free: 3.297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001145/0.3459, allocations: 173.5 kB / 488.4 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004034/0.3463, allocations: 235.2 kB / 488.6 MB, free: 3.125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01434/0.3606, allocations: 8.95 MB / 497.6 MB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.989e-05/0.3608, allocations: 31.38 kB / 497.6 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003479/0.3611, allocations: 107.5 kB / 497.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003158/0.3643, allocations: 2.011 MB / 499.7 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01592/0.3802, allocations: 7.972 MB / 0.4958 GB, free: 5.398 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0387/0.4189, allocations: 28.56 MB / 0.5237 GB, free: 8.238 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006949/0.4259, allocations: 2.82 MB / 0.5265 GB, free: 5.309 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00145/0.4274, allocations: 0.9863 MB / 0.5274 GB, free: 4.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008273/0.4357, allocations: 6.465 MB / 0.5337 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.098e-05/0.4357, allocations: 51.88 kB / 0.5338 GB, free: 13.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 3.517e-06/0.4358, allocations: 0 / 0.5338 GB, free: 13.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=197): time 0.02187/0.4576, allocations: 9.764 MB / 0.5433 GB, free: 3.293 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008136/0.4658, allocations: 6.465 MB / 0.5496 GB, free: 12.52 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004442/0.4703, allocations: 3.039 MB / 0.5526 GB, free: 9.473 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002438/0.4705, allocations: 53.7 kB / 0.5527 GB, free: 9.414 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001355/0.4719, allocations: 2.354 MB / 0.555 GB, free: 7.027 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005924/0.4725, allocations: 0.7247 MB / 0.5557 GB, free: 6.293 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001172/0.4737, allocations: 0.9368 MB / 0.5566 GB, free: 5.344 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.989e-05/0.4738, allocations: 301.1 kB / 0.5569 GB, free: 5.047 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00232/0.4761, allocations: 1.532 MB / 0.5584 GB, free: 3.508 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003814/0.4799, allocations: 4.114 MB / 0.5624 GB, free: 14.12 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006418/0.4863, allocations: 6.092 MB / 0.5683 GB, free: 6.77 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.904e-05/0.4864, allocations: 24 kB / 0.5684 GB, free: 6.746 MB / 446.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.009508/0.4959, allocations: 6.044 MB / 0.5743 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.448e-05/0.496, allocations: 44 kB / 0.5743 GB, free: 0.6445 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.053e-05/0.4961, allocations: 88 kB / 0.5744 GB, free: 0.5586 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1571/0.6532, allocations: 0.625 MB / 0.575 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003427/0.6566, allocations: 1.02 MB / 0.576 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007952/0.6646, allocations: 8.466 MB / 0.5843 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003305/0.6679, allocations: 246.2 kB / 0.5845 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003243/0.6683, allocations: 279 kB / 0.5848 GB, free: 120.2 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,21,88.9%), (1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.002382/0.6707, allocations: 1.732 MB / 0.5864 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003623/0.671, allocations: 269.8 kB / 0.5867 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004071/0.6751, allocations: 2.883 MB / 0.5895 GB, free: 118.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.621e-05/0.6752, allocations: 35.86 kB / 0.5896 GB, free: 118.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.837e-06/0.6752, allocations: 7.469 kB / 0.5896 GB, free: 118.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.396e-05/0.6753, allocations: 15.39 kB / 0.5896 GB, free: 118.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01184/0.6871, allocations: 9.279 MB / 0.5986 GB, free: 114.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-06/0.6871, allocations: 7 kB / 0.5986 GB, free: 114.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007233/0.6879, allocations: 212.3 kB / 0.5988 GB, free: 114.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001512/0.6894, allocations: 0.6346 MB / 0.5995 GB, free: 114.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.099e-05/0.6895, allocations: 40.36 kB / 0.5995 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007799/0.6973, allocations: 8.601 MB / 0.6079 GB, free: 109.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005173/0.7025, allocations: 5.704 MB / 0.6135 GB, free: 105.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005729/0.7082, allocations: 4.194 MB / 0.6176 GB, free: 103.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006024/0.7088, allocations: 341.4 kB / 0.6179 GB, free: 103.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003239/0.7092, allocations: 31.84 kB / 0.6179 GB, free: 103.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009254/0.7101, allocations: 83.05 kB / 0.618 GB, free: 103.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002869/0.7104, allocations: 139.6 kB / 0.6181 GB, free: 103.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001107/0.7105, allocations: 52.12 kB / 0.6182 GB, free: 103.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002683/0.7132, allocations: 1.948 MB / 0.6201 GB, free: 102.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.7132, allocations: 0 / 0.6201 GB, free: 102.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003485/0.7167, allocations: 0.8961 MB / 0.621 GB, free: 102.5 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,88.9%), (2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006034/0.7227, allocations: 4.841 MB / 0.6257 GB, free: 100.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005501/0.7283, allocations: 4.139 MB / 0.6297 GB, free: 98.61 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.7283, allocations: 1.219 kB / 0.6297 GB, free: 98.61 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001922/0.7302, allocations: 1.657 MB / 0.6314 GB, free: 97.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001984/0.7322, allocations: 414.6 kB / 0.6318 GB, free: 97.64 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03983/0.772, allocations: 38.83 MB / 0.6697 GB, free: 58.92 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002203/0.7743, allocations: 2.831 MB / 0.6724 GB, free: 56.06 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002733/0.777, allocations: 1.338 MB / 0.6737 GB, free: 54.72 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001377/0.7784, allocations: 1.468 MB / 0.6752 GB, free: 53.25 MB / 446.1 MB Notification: Performance of SimCode: time 6.31e-07/0.7784, allocations: 0 / 0.6752 GB, free: 53.25 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07035/0.8488, allocations: 60.37 MB / 0.7341 GB, free: 9.219 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001852/0.849, allocations: 261.3 kB / 0.7344 GB, free: 8.949 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.166/4.015, allocations: 0 / 0.7344 GB, free: 8.949 MB / 462.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/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)