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.00112/0.00112, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001158/0.001159, allocations: 191.9 kB / 16.25 MB, free: 6.629 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.305/1.305, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1636/0.1636, allocations: 9.089 MB / 299.2 MB, free: 1.859 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 67.88 kB / 361.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1032, allocations: 51.43 MB / 413 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.2098/0.3131, allocations: 39.68 MB / 452.6 MB, free: 20.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01707/0.3302, allocations: 8.388 MB / 461 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008101/0.3384, allocations: 151.2 kB / 461.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001149/0.3395, allocations: 344.8 kB / 461.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003656/0.3433, allocations: 1.421 MB / 462.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004654/0.3437, allocations: 154.5 kB / 463.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002633/0.3464, allocations: 2.868 MB / 466 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001303/0.3477, allocations: 1.104 MB / 467.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001506/0.3492, allocations: 1.028 MB / 468.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001802/0.351, allocations: 1.583 MB / 469.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000376/0.3514, allocations: 258.9 kB / 469.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001292/0.3527, allocations: 0.8688 MB / 470.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009614/0.3537, allocations: 1.365 MB / 472.2 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001212/0.3549, allocations: 1.779 MB / 473.9 MB, free: 8.656 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004944/0.3599, allocations: 5.231 MB / 479.2 MB, free: 6.574 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3599, allocations: 1.969 kB / 479.2 MB, free: 6.574 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3599, allocations: 0 / 479.2 MB, free: 6.574 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001578/0.3601, allocations: 0 / 479.2 MB, free: 6.574 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.0143/0.3744, allocations: 5.172 MB / 484.3 MB, free: 4.305 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.3744, allocations: 13.62 kB / 484.4 MB, free: 4.301 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001271/0.3757, allocations: 0.6 MB / 485 MB, free: 4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007386/0.3831, allocations: 1.815 MB / 486.8 MB, free: 3.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003558/0.3867, allocations: 1.507 MB / 488.3 MB, free: 2.742 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001717/0.3869, allocations: 177.6 kB / 488.5 MB, free: 2.652 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006101/0.3875, allocations: 221.1 kB / 488.7 MB, free: 2.578 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01562/0.4032, allocations: 8.951 MB / 497.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.322e-05/0.4033, allocations: 36 kB / 497.7 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003535/0.4037, allocations: 111.4 kB / 497.8 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003082/0.4068, allocations: 2.011 MB / 499.8 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01671/0.4235, allocations: 7.967 MB / 0.4958 GB, free: 5.375 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04518/0.4687, allocations: 28.56 MB / 0.5237 GB, free: 8.223 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007693/0.4764, allocations: 2.805 MB / 0.5265 GB, free: 5.309 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001779/0.4783, allocations: 0.9863 MB / 0.5274 GB, free: 4.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009836/0.4881, allocations: 6.477 MB / 0.5338 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.91e-05/0.4882, allocations: 47.88 kB / 0.5338 GB, free: 13.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 4.799e-06/0.4882, allocations: 0 / 0.5338 GB, free: 13.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=197): time 0.0238/0.512, allocations: 9.769 MB / 0.5433 GB, free: 3.281 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007961/0.52, allocations: 6.789 MB / 0.55 GB, free: 12.18 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005302/0.5253, allocations: 3.039 MB / 0.5529 GB, free: 9.129 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003018/0.5257, allocations: 61.62 kB / 0.553 GB, free: 9.062 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001629/0.5273, allocations: 2.354 MB / 0.5553 GB, free: 6.676 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000865/0.5282, allocations: 0.7209 MB / 0.556 GB, free: 5.945 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001922/0.5301, allocations: 0.9368 MB / 0.5569 GB, free: 4.996 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.565e-05/0.5302, allocations: 313.1 kB / 0.5572 GB, free: 4.688 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002616/0.5329, allocations: 1.524 MB / 0.5587 GB, free: 3.156 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004337/0.5372, allocations: 4.118 MB / 0.5627 GB, free: 13.76 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007575/0.5448, allocations: 6.094 MB / 0.5687 GB, free: 6.41 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001001/0.545, allocations: 32 kB / 0.5687 GB, free: 6.379 MB / 446.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01233/0.5573, allocations: 6.038 MB / 0.5746 GB, free: 336 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001155/0.5575, allocations: 44 kB / 0.5746 GB, free: 292 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001636/0.5576, allocations: 92 kB / 0.5747 GB, free: 200 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2106/0.7683, allocations: 0.6197 MB / 0.5753 GB, free: 124.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003461/0.7718, allocations: 1.018 MB / 0.5763 GB, free: 124.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008492/0.7803, allocations: 9.246 MB / 0.5854 GB, free: 119.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003749/0.7841, allocations: 252 kB / 0.5856 GB, free: 119.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006223/0.7847, allocations: 282.4 kB / 0.5859 GB, free: 119.8 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.002661/0.7874, allocations: 1.724 MB / 0.5876 GB, free: 119 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004647/0.7878, allocations: 275.2 kB / 0.5878 GB, free: 119 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004208/0.7921, allocations: 2.881 MB / 0.5906 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.65e-05/0.7922, allocations: 30.52 kB / 0.5907 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-05/0.7922, allocations: 10.31 kB / 0.5907 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.453e-05/0.7922, allocations: 6.891 kB / 0.5907 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01352/0.8057, allocations: 9.282 MB / 0.5997 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-05/0.8058, allocations: 6.656 kB / 0.5997 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007272/0.8065, allocations: 215 kB / 0.6 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0015/0.808, allocations: 0.6387 MB / 0.6006 GB, free: 114.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001013/0.8082, allocations: 36.25 kB / 0.6006 GB, free: 114.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008565/0.8167, allocations: 9.37 MB / 0.6098 GB, free: 108.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005831/0.8226, allocations: 5.942 MB / 0.6156 GB, free: 104 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006814/0.8294, allocations: 4.19 MB / 0.6197 GB, free: 102.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009433/0.8304, allocations: 345.2 kB / 0.62 GB, free: 102.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003274/0.8308, allocations: 33.66 kB / 0.62 GB, free: 102.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009761/0.8317, allocations: 86.44 kB / 0.6201 GB, free: 102.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003509/0.8321, allocations: 135.6 kB / 0.6202 GB, free: 102.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001149/0.8322, allocations: 63.11 kB / 0.6203 GB, free: 102.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003201/0.8354, allocations: 1.945 MB / 0.6222 GB, free: 101.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.8354, allocations: 0 / 0.6222 GB, free: 101.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004456/0.8399, allocations: 0.8922 MB / 0.6231 GB, free: 101.3 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.006911/0.8468, allocations: 4.838 MB / 0.6278 GB, free: 98.98 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009496/0.8564, allocations: 5.694 MB / 0.6333 GB, free: 97.32 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.32e-05/0.8564, allocations: 0 / 0.6333 GB, free: 97.32 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002422/0.8589, allocations: 1.665 MB / 0.635 GB, free: 96.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002652/0.8615, allocations: 448.1 kB / 0.6354 GB, free: 96.33 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05166/0.9132, allocations: 38.83 MB / 0.6733 GB, free: 55.12 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002567/0.9158, allocations: 2.828 MB / 0.6761 GB, free: 52.28 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00299/0.9188, allocations: 1.318 MB / 0.6774 GB, free: 50.96 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001697/0.9205, allocations: 1.468 MB / 0.6788 GB, free: 49.49 MB / 446.1 MB Notification: Performance of SimCode: time 1.573e-06/0.9206, allocations: 0 / 0.6788 GB, free: 49.49 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09296/1.014, allocations: 61.72 MB / 0.7391 GB, free: 4.09 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002013/1.014, allocations: 256.9 kB / 0.7393 GB, free: 3.828 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.411/4.424, allocations: 3.828 kB / 0.7393 GB, free: 3.828 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)