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.001941/0.001941, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002106/0.002106, allocations: 195.8 kB / 16.53 MB, free: 6.391 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.418/1.418, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1897/0.1897, allocations: 9.1 MB / 299.5 MB, free: 1.781 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 63.91 kB / 362 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1158, allocations: 51.43 MB / 413.5 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.2145/0.3303, allocations: 9.724 MB / 423.2 MB, free: 36.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005962/0.3363, allocations: 2.842 MB / 426 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00117/0.3375, allocations: 41.75 kB / 426.1 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008529/0.3384, allocations: 416.9 kB / 426.5 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002749/0.3412, allocations: 1.531 MB / 428 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004451/0.3417, allocations: 183.2 kB / 428.2 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002357/0.344, allocations: 2.844 MB / 431 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001162/0.3452, allocations: 1.072 MB / 432.1 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001042/0.3463, allocations: 1.022 MB / 433.1 MB, free: 34.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001328/0.3476, allocations: 1.464 MB / 434.6 MB, free: 34.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003957/0.348, allocations: 261.8 kB / 434.9 MB, free: 34.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00135/0.3494, allocations: 0.8626 MB / 435.7 MB, free: 33.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008098/0.3502, allocations: 1.358 MB / 437.1 MB, free: 33.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001069/0.3513, allocations: 1.761 MB / 438.8 MB, free: 32.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003744/0.355, allocations: 5.209 MB / 444.1 MB, free: 30.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.355, allocations: 3.125 kB / 444.1 MB, free: 30.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.355, allocations: 0 / 444.1 MB, free: 30.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.37e-05/0.3551, allocations: 0 / 444.1 MB, free: 30.22 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.01115/0.3663, allocations: 5.168 MB / 449.2 MB, free: 28.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.3664, allocations: 9.625 kB / 449.2 MB, free: 28.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008079/0.3672, allocations: 0.6042 MB / 449.8 MB, free: 27.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006791/0.374, allocations: 1.812 MB / 451.6 MB, free: 27.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004186/0.3782, allocations: 1.509 MB / 453.2 MB, free: 26.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001742/0.3784, allocations: 175.2 kB / 453.3 MB, free: 26.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007651/0.3792, allocations: 232.4 kB / 453.6 MB, free: 26.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01375/0.3929, allocations: 8.942 MB / 462.5 MB, free: 22.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.421e-05/0.3931, allocations: 34.06 kB / 462.5 MB, free: 22.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003246/0.3934, allocations: 113.4 kB / 462.6 MB, free: 22.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003318/0.3967, allocations: 2.013 MB / 464.7 MB, free: 22.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01784/0.4146, allocations: 7.964 MB / 472.6 MB, free: 19.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0373/0.4519, allocations: 28.56 MB / 0.4894 GB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007147/0.4591, allocations: 2.807 MB / 0.4922 GB, free: 7.828 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001568/0.4608, allocations: 0.9863 MB / 0.4931 GB, free: 6.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008863/0.4696, allocations: 6.483 MB / 0.4995 GB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/0.4697, allocations: 43.88 kB / 0.4995 GB, free: 15.72 MB / 382.1 MB Notification: Performance of pre-optimization done (n=155): time 4.008e-06/0.4697, allocations: 0 / 0.4995 GB, free: 15.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=197): time 0.0226/0.4923, allocations: 9.768 MB / 0.509 GB, free: 5.859 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008207/0.5006, allocations: 6.79 MB / 0.5157 GB, free: 14.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004738/0.5054, allocations: 3.035 MB / 0.5186 GB, free: 11.72 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003132/0.5057, allocations: 51.81 kB / 0.5187 GB, free: 11.67 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001533/0.5072, allocations: 2.358 MB / 0.521 GB, free: 9.309 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007926/0.508, allocations: 0.7256 MB / 0.5217 GB, free: 8.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001209/0.5093, allocations: 0.9407 MB / 0.5226 GB, free: 7.637 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.5094, allocations: 309.2 kB / 0.5229 GB, free: 7.332 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002334/0.5117, allocations: 1.532 MB / 0.5244 GB, free: 5.793 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003737/0.5155, allocations: 4.11 MB / 0.5284 GB, free: 416 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0072/0.5227, allocations: 6.083 MB / 0.5344 GB, free: 9.07 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.336e-05/0.5228, allocations: 31.94 kB / 0.5344 GB, free: 9.039 MB / 414.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.009671/0.5325, allocations: 6.037 MB / 0.5403 GB, free: 2.988 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.817e-05/0.5325, allocations: 42.19 kB / 0.5403 GB, free: 2.949 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001015/0.5327, allocations: 96 kB / 0.5404 GB, free: 2.855 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001548/0.5342, allocations: 0.6243 MB / 0.541 GB, free: 2.227 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00293/0.5371, allocations: 1.025 MB / 0.542 GB, free: 1.199 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01022/0.5474, allocations: 9.259 MB / 0.5511 GB, free: 7.516 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003779/0.5512, allocations: 243.9 kB / 0.5513 GB, free: 7.277 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005555/0.5518, allocations: 280 kB / 0.5516 GB, free: 7.004 MB / 430.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.003046/0.5548, allocations: 1.732 MB / 0.5533 GB, free: 5.262 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000412/0.5552, allocations: 268.5 kB / 0.5535 GB, free: 4.996 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004822/0.5601, allocations: 2.885 MB / 0.5563 GB, free: 2.086 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001112/0.5602, allocations: 39.97 kB / 0.5564 GB, free: 2.047 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.808e-06/0.5602, allocations: 4 kB / 0.5564 GB, free: 2.043 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.68e-05/0.5602, allocations: 7.969 kB / 0.5564 GB, free: 2.035 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01523/0.5755, allocations: 9.294 MB / 0.5655 GB, free: 8.613 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-05/0.5755, allocations: 4.281 kB / 0.5655 GB, free: 8.609 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007825/0.5763, allocations: 212.1 kB / 0.5657 GB, free: 8.402 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001699/0.578, allocations: 0.6378 MB / 0.5663 GB, free: 7.758 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001087/0.5782, allocations: 35.94 kB / 0.5663 GB, free: 7.723 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01095/0.5891, allocations: 9.367 MB / 0.5755 GB, free: 13.95 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006513/0.5957, allocations: 5.941 MB / 0.5813 GB, free: 7.715 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006293/0.602, allocations: 4.191 MB / 0.5854 GB, free: 3.453 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008703/0.6029, allocations: 349.6 kB / 0.5857 GB, free: 3.09 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003261/0.6032, allocations: 38.75 kB / 0.5857 GB, free: 3.055 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009677/0.6042, allocations: 87.89 kB / 0.5858 GB, free: 2.969 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002889/0.6045, allocations: 129.1 kB / 0.586 GB, free: 2.844 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.6046, allocations: 55.98 kB / 0.586 GB, free: 2.789 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00272/0.6073, allocations: 1.94 MB / 0.5879 GB, free: 0.8438 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6073, allocations: 3.938 kB / 0.5879 GB, free: 0.8398 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.2301/0.8374, allocations: 0.8952 MB / 0.5888 GB, free: 134 MB / 462.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.01215/0.8496, allocations: 4.831 MB / 0.5935 GB, free: 133.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01692/0.8666, allocations: 5.678 MB / 0.599 GB, free: 132.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.306e-05/0.8667, allocations: 3.969 kB / 0.599 GB, free: 132.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004343/0.871, allocations: 1.668 MB / 0.6007 GB, free: 132.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004347/0.8754, allocations: 441.6 kB / 0.6011 GB, free: 132.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06651/0.942, allocations: 37.17 MB / 0.6374 GB, free: 106 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003046/0.945, allocations: 2.831 MB / 0.6402 GB, free: 104.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00395/0.949, allocations: 1.318 MB / 0.6414 GB, free: 104.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002262/0.9513, allocations: 1.473 MB / 0.6429 GB, free: 103.5 MB / 462.1 MB Notification: Performance of SimCode: time 1.042e-06/0.9513, allocations: 0 / 0.6429 GB, free: 103.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1191/1.07, allocations: 61.79 MB / 0.7032 GB, free: 53.75 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.9/13.97, allocations: 7.188 kB / 0.7032 GB, free: 53.75 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)