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.001054/0.001054, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001096/0.001096, allocations: 177.3 kB / 15.94 MB, free: 228 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.467/1.467, allocations: 223.2 MB / 239.9 MB, free: 5.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1624/0.1624, allocations: 9.098 MB / 300.1 MB, free: 2.746 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003046/0.0003047, allocations: 12 kB / 363.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1155, allocations: 52.42 MB / 415.5 MB, free: 8.465 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.2255/0.3411, allocations: 33.79 MB / 449.3 MB, free: 23.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01566/0.3568, allocations: 8.457 MB / 457.8 MB, free: 17.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008141/0.365, allocations: 146.8 kB / 457.9 MB, free: 17.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006339/0.3713, allocations: 1.691 MB / 459.6 MB, free: 17.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01708/0.3885, allocations: 5.034 MB / 464.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002071/0.3906, allocations: 176.5 kB / 464.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003294/0.3939, allocations: 1.625 MB / 466.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001629/0.3955, allocations: 0.9363 MB / 467.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001397/0.397, allocations: 0.7766 MB / 468.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001746/0.3987, allocations: 1.093 MB / 469.2 MB, free: 13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006673/0.3994, allocations: 150.9 kB / 469.4 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001583/0.401, allocations: 0.6764 MB / 470.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001355/0.4024, allocations: 1.148 MB / 471.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001009/0.4034, allocations: 0.7121 MB / 471.9 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004255/0.4077, allocations: 3.996 MB / 475.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.4077, allocations: 0 / 475.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.4077, allocations: 0 / 475.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.799e-05/0.4078, allocations: 5.156 kB / 475.9 MB, free: 11.01 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.01224/0.4201, allocations: 4.597 MB / 480.5 MB, free: 9.145 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.4201, allocations: 9.312 kB / 480.5 MB, free: 9.145 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001051/0.4212, allocations: 0.5999 MB / 481.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00884/0.43, allocations: 2.215 MB / 483.3 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003421/0.4335, allocations: 1.477 MB / 484.8 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001713/0.4337, allocations: 171.2 kB / 485 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005931/0.4343, allocations: 237.5 kB / 485.2 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01732/0.4516, allocations: 8.984 MB / 494.2 MB, free: 2.641 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001034/0.4517, allocations: 27.56 kB / 494.2 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003975/0.4522, allocations: 113.4 kB / 494.3 MB, free: 2.543 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003285/0.4554, allocations: 2.013 MB / 496.4 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01746/0.4729, allocations: 7.999 MB / 0.4925 GB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04307/0.516, allocations: 28.5 MB / 0.5204 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007676/0.5237, allocations: 2.807 MB / 0.5231 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002773/0.5266, allocations: 2.395 MB / 0.5254 GB, free: 7.672 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.295e-05/0.5266, allocations: 47.81 kB / 0.5255 GB, free: 7.613 MB / 398.1 MB Notification: Performance of pre-optimization done (n=183): time 4.668e-06/0.5267, allocations: 4 kB / 0.5255 GB, free: 7.609 MB / 398.1 MB Notification: Performance of matching and sorting (n=225): time 0.0283/0.555, allocations: 11.27 MB / 0.5365 GB, free: 12.16 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01369/0.5687, allocations: 9.015 MB / 0.5453 GB, free: 2.672 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005566/0.5743, allocations: 2.906 MB / 0.5481 GB, free: 15.75 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004627/0.5748, allocations: 57.7 kB / 0.5482 GB, free: 15.68 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002037/0.5769, allocations: 2.273 MB / 0.5504 GB, free: 13.38 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001048/0.5779, allocations: 0.8092 MB / 0.5512 GB, free: 12.56 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001956/0.5781, allocations: 92 kB / 0.5513 GB, free: 12.47 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0003861/0.5785, allocations: 0.5162 MB / 0.5518 GB, free: 11.95 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002907/0.5815, allocations: 1.54 MB / 0.5533 GB, free: 10.4 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004947/0.5864, allocations: 4.094 MB / 0.5573 GB, free: 5.035 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003912/0.5904, allocations: 2.533 MB / 0.5598 GB, free: 2.504 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.631e-05/0.5904, allocations: 24 kB / 0.5598 GB, free: 2.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.0115/0.6019, allocations: 6.059 MB / 0.5657 GB, free: 12.41 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.813e-05/0.602, allocations: 47.98 kB / 0.5658 GB, free: 12.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001161/0.6022, allocations: 92 kB / 0.5658 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001712/0.6039, allocations: 0.6271 MB / 0.5665 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00393/0.6078, allocations: 1.029 MB / 0.5675 GB, free: 10.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01138/0.6192, allocations: 8.649 MB / 0.5759 GB, free: 1.535 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004405/0.6237, allocations: 247.8 kB / 0.5761 GB, free: 1.293 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009728/0.6247, allocations: 284 kB / 0.5764 GB, free: 1.016 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 409 * 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 (560): * Single equations (assignments): 553 * 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.2935/0.9182, allocations: 1.727 MB / 0.5781 GB, free: 92.98 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006423/0.9188, allocations: 269.6 kB / 0.5784 GB, free: 92.98 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005228/0.9241, allocations: 3.334 MB / 0.5816 GB, free: 92.81 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001187/0.9242, allocations: 33.53 kB / 0.5816 GB, free: 92.81 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.278e-05/0.9242, allocations: 5.844 kB / 0.5817 GB, free: 92.81 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.897e-05/0.9243, allocations: 14.09 kB / 0.5817 GB, free: 92.81 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01599/0.9403, allocations: 10.09 MB / 0.5915 GB, free: 91.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.718e-05/0.9403, allocations: 8.375 kB / 0.5915 GB, free: 91.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009038/0.9412, allocations: 252.7 kB / 0.5918 GB, free: 91.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001621/0.9429, allocations: 0.6475 MB / 0.5924 GB, free: 91.74 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001102/0.943, allocations: 43.5 kB / 0.5924 GB, free: 91.74 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008767/0.9518, allocations: 8.832 MB / 0.6011 GB, free: 87.87 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006938/0.9587, allocations: 5.82 MB / 0.6068 GB, free: 85.03 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008597/0.9674, allocations: 5.306 MB / 0.6119 GB, free: 83.66 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001061/0.9685, allocations: 366.5 kB / 0.6123 GB, free: 83.43 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003317/0.9688, allocations: 47.16 kB / 0.6123 GB, free: 83.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00111/0.9699, allocations: 92.45 kB / 0.6124 GB, free: 83.43 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004207/0.9704, allocations: 167.6 kB / 0.6126 GB, free: 83.42 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001402/0.9705, allocations: 66.41 kB / 0.6126 GB, free: 83.42 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003223/0.9737, allocations: 1.871 MB / 0.6145 GB, free: 83.28 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.9737, allocations: 2.156 kB / 0.6145 GB, free: 83.28 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004336/0.9781, allocations: 0.8972 MB / 0.6153 GB, free: 83.28 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (150): * Single equations (assignments): 143 * 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.007906/0.986, allocations: 7.976 MB / 0.6231 GB, free: 79.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007066/0.9931, allocations: 4.237 MB / 0.6273 GB, free: 78.86 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.989e-06/0.9931, allocations: 7.438 kB / 0.6273 GB, free: 78.85 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002505/0.9956, allocations: 1.778 MB / 0.629 GB, free: 78.44 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002353/0.998, allocations: 407.1 kB / 0.6294 GB, free: 78.42 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05401/1.052, allocations: 86.84 MB / 0.7142 GB, free: 11.69 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004438/1.057, allocations: 2.914 MB / 0.7171 GB, free: 8.754 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003906/1.06, allocations: 1.384 MB / 0.7184 GB, free: 7.367 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002203/1.063, allocations: 1.487 MB / 0.7199 GB, free: 5.883 MB / 462.1 MB Notification: Performance of SimCode: time 1.252e-06/1.063, allocations: 0 / 0.7199 GB, free: 5.883 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3688/1.431, allocations: 65.57 MB / 0.7839 GB, free: 156.6 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002207/1.432, allocations: 225.7 kB / 0.7841 GB, free: 156.3 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.528/4.96, allocations: 0 / 0.7841 GB, free: 156.3 MB / 494.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: