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.006784/0.006784, allocations: 101 kB / 15.73 MB, free: 6.059 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.001745/0.001745, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04902/0.04902, allocations: 9.125 MB / 299.7 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001839/0.001839, allocations: 59.91 kB / 414.1 MB, free: 21.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08333/0.08518, allocations: 51.44 MB / 465.6 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.01077/0.09598, allocations: 9.732 MB / 475.3 MB, free: 8.383 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005596/0.1016, allocations: 2.831 MB / 478.1 MB, free: 5.543 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001074/0.1027, allocations: 43.88 kB / 478.2 MB, free: 5.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009405/0.1037, allocations: 413.1 kB / 478.6 MB, free: 5.094 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003352/0.1071, allocations: 1.54 MB / 480.1 MB, free: 3.547 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005066/0.1076, allocations: 187.7 kB / 480.3 MB, free: 3.363 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00328/0.1109, allocations: 2.851 MB / 483.2 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001315/0.1122, allocations: 1.075 MB / 484.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001165/0.1134, allocations: 1.027 MB / 485.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001809/0.1152, allocations: 1.467 MB / 486.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004606/0.1157, allocations: 260 kB / 487 MB, free: 12.64 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001517/0.1172, allocations: 0.862 MB / 487.8 MB, free: 11.78 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001228/0.1185, allocations: 1.356 MB / 489.2 MB, free: 10.42 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001672/0.1201, allocations: 1.763 MB / 491 MB, free: 8.645 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005824/0.126, allocations: 5.489 MB / 496.5 MB, free: 3.133 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.126, allocations: 0 / 496.5 MB, free: 3.133 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.126, allocations: 0 / 496.5 MB, free: 3.133 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.02e-05/0.1261, allocations: 4 kB / 496.5 MB, free: 3.129 MB / 366.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.01144/0.1375, allocations: 5.273 MB / 0.49 GB, free: 13.78 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1376, allocations: 8.031 kB / 0.49 GB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00075/0.1383, allocations: 0.6049 MB / 0.4906 GB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006827/0.1452, allocations: 1.835 MB / 0.4924 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002501/0.1477, allocations: 1.514 MB / 0.4938 GB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001422/0.1478, allocations: 176.3 kB / 0.494 GB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004382/0.1483, allocations: 235.8 kB / 0.4942 GB, free: 9.355 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1908/0.3391, allocations: 8.947 MB / 0.503 GB, free: 40.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001481/0.3393, allocations: 25.98 kB / 0.503 GB, free: 40.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007911/0.3401, allocations: 112.9 kB / 0.5031 GB, free: 40.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003292/0.3434, allocations: 2.007 MB / 0.5051 GB, free: 40.65 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.015/0.3584, allocations: 7.968 MB / 0.5128 GB, free: 38.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03185/0.3903, allocations: 28.54 MB / 0.5407 GB, free: 16.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005976/0.3963, allocations: 2.819 MB / 0.5435 GB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001236/0.3975, allocations: 0.9894 MB / 0.5444 GB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006772/0.4043, allocations: 6.469 MB / 0.5508 GB, free: 5.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.939e-05/0.4044, allocations: 51.81 kB / 0.5508 GB, free: 5.871 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 4.839e-06/0.4044, allocations: 0 / 0.5508 GB, free: 5.871 MB / 382.1 MB Notification: Performance of matching and sorting (n=197): time 0.02148/0.4259, allocations: 9.836 MB / 0.5604 GB, free: 12.11 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009112/0.435, allocations: 6.783 MB / 0.567 GB, free: 5.039 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005817/0.4409, allocations: 3.044 MB / 0.57 GB, free: 1.984 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003112/0.4413, allocations: 53.77 kB / 0.5701 GB, free: 1.926 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002042/0.4433, allocations: 2.451 MB / 0.5725 GB, free: 15.48 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009604/0.4443, allocations: 0.7518 MB / 0.5732 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002004/0.4463, allocations: 0.9528 MB / 0.5741 GB, free: 13.78 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.4464, allocations: 301.1 kB / 0.5744 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002735/0.4492, allocations: 1.528 MB / 0.5759 GB, free: 11.95 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005075/0.4543, allocations: 4.112 MB / 0.5799 GB, free: 6.559 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008457/0.4627, allocations: 6.099 MB / 0.5859 GB, free: 15.21 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.751e-05/0.4629, allocations: 31.75 kB / 0.5859 GB, free: 15.18 MB / 430.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01224/0.4751, allocations: 6.047 MB / 0.5918 GB, free: 9.121 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.801e-05/0.4752, allocations: 44 kB / 0.5918 GB, free: 9.078 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001513/0.4754, allocations: 92 kB / 0.5919 GB, free: 8.988 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001759/0.4772, allocations: 0.6156 MB / 0.5925 GB, free: 8.367 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00345/0.4806, allocations: 1.022 MB / 0.5935 GB, free: 7.344 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01185/0.4925, allocations: 9.272 MB / 0.6026 GB, free: 13.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003478/0.496, allocations: 243.9 kB / 0.6028 GB, free: 13.42 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008097/0.4968, allocations: 287.9 kB / 0.6031 GB, free: 13.14 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.003392/0.5003, allocations: 1.725 MB / 0.6048 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006053/0.5009, allocations: 278.1 kB / 0.605 GB, free: 11.13 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005616/0.5065, allocations: 2.885 MB / 0.6079 GB, free: 8.219 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001213/0.5066, allocations: 35.97 kB / 0.6079 GB, free: 8.184 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-05/0.5067, allocations: 8 kB / 0.6079 GB, free: 8.176 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.095e-05/0.5067, allocations: 11.95 kB / 0.6079 GB, free: 8.164 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01668/0.5234, allocations: 9.204 MB / 0.6169 GB, free: 14.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.238e-05/0.5234, allocations: 4 kB / 0.6169 GB, free: 14.79 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008321/0.5243, allocations: 211.7 kB / 0.6171 GB, free: 14.59 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001792/0.5261, allocations: 0.6415 MB / 0.6177 GB, free: 13.94 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001241/0.5262, allocations: 32 kB / 0.6178 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01187/0.5381, allocations: 9.363 MB / 0.6269 GB, free: 4.117 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007288/0.5454, allocations: 5.949 MB / 0.6327 GB, free: 13.86 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006951/0.5524, allocations: 4.203 MB / 0.6368 GB, free: 9.59 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009124/0.5533, allocations: 355.2 kB / 0.6372 GB, free: 9.223 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006232/0.554, allocations: 39.92 kB / 0.6372 GB, free: 9.184 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001256/0.5552, allocations: 80.08 kB / 0.6373 GB, free: 9.105 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003309/0.5556, allocations: 144.9 kB / 0.6374 GB, free: 8.965 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/0.5557, allocations: 51.98 kB / 0.6375 GB, free: 8.914 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003545/0.5593, allocations: 1.948 MB / 0.6394 GB, free: 6.961 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5593, allocations: 0 / 0.6394 GB, free: 6.961 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004175/0.5635, allocations: 0.8867 MB / 0.6402 GB, free: 6.074 MB / 478.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.007613/0.5711, allocations: 4.863 MB / 0.645 GB, free: 1.129 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007244/0.5783, allocations: 4.158 MB / 0.649 GB, free: 12.95 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.5784, allocations: 0 / 0.649 GB, free: 12.95 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002653/0.581, allocations: 1.673 MB / 0.6507 GB, free: 11.24 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00256/0.5836, allocations: 452.3 kB / 0.6511 GB, free: 10.81 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05461/0.6382, allocations: 33.55 MB / 0.6839 GB, free: 5.621 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00398/0.6423, allocations: 2.83 MB / 0.6866 GB, free: 2.766 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003093/0.6454, allocations: 1.318 MB / 0.6879 GB, free: 1.441 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00227/0.6477, allocations: 1.472 MB / 0.6894 GB, free: 15.97 MB / 0.5294 GB Notification: Performance of SimCode: time 8.31e-07/0.6477, allocations: 0 / 0.6894 GB, free: 15.97 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.289/0.9367, allocations: 59 MB / 0.747 GB, free: 163.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 42.08/43.01, allocations: 10.34 kB / 0.747 GB, free: 163.6 MB / 0.5294 GB (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)