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.0009093/0.0009093, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005847/0.005847, allocations: 169.5 kB / 16.26 MB, free: 6.352 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.221/1.221, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1692/0.1692, allocations: 9.106 MB / 300.5 MB, free: 2.648 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002929/0.0002929, allocations: 8 kB / 363.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0843/0.08461, allocations: 52.42 MB / 416.2 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.1825/0.2672, allocations: 38.6 MB / 454.8 MB, free: 19.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01461/0.2818, allocations: 8.381 MB / 463.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006677/0.2885, allocations: 150.4 kB / 463.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001191/0.2897, allocations: 347.3 kB / 463.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003544/0.2933, allocations: 1.428 MB / 465.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006473/0.294, allocations: 165.4 kB / 465.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004032/0.298, allocations: 3.912 MB / 469.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001864/0.2999, allocations: 0.9646 MB / 470.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001712/0.3016, allocations: 0.8663 MB / 471 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002018/0.3037, allocations: 1.452 MB / 472.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007584/0.3045, allocations: 149.3 kB / 472.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001734/0.3062, allocations: 0.7807 MB / 473.4 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001298/0.3075, allocations: 1.279 MB / 474.7 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001906/0.3094, allocations: 1.675 MB / 476.4 MB, free: 8.852 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004113/0.3136, allocations: 4.927 MB / 481.3 MB, free: 7.324 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3136, allocations: 0.9375 kB / 481.3 MB, free: 7.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3136, allocations: 0 / 481.3 MB, free: 7.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.766e-05/0.3137, allocations: 0 / 481.3 MB, free: 7.324 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.01104/0.3247, allocations: 4.449 MB / 485.7 MB, free: 5.473 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.3248, allocations: 12.03 kB / 485.8 MB, free: 5.473 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000946/0.3258, allocations: 0.5991 MB / 486.3 MB, free: 5.172 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006971/0.3327, allocations: 1.858 MB / 488.2 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002703/0.3355, allocations: 1.506 MB / 489.7 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001077/0.3356, allocations: 177.4 kB / 489.9 MB, free: 3.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004487/0.336, allocations: 226.4 kB / 490.1 MB, free: 3.742 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01234/0.3484, allocations: 8.957 MB / 499.1 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.242e-05/0.3485, allocations: 27.84 kB / 499.1 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003249/0.3488, allocations: 111 kB / 499.2 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003116/0.3519, allocations: 2.02 MB / 0.4895 GB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01503/0.367, allocations: 7.958 MB / 0.4972 GB, free: 6.047 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0365/0.4035, allocations: 28.58 MB / 0.5252 GB, free: 8.871 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006589/0.4101, allocations: 2.824 MB / 0.5279 GB, free: 5.938 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001394/0.4115, allocations: 0.9863 MB / 0.5289 GB, free: 4.949 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007729/0.4193, allocations: 6.469 MB / 0.5352 GB, free: 13.85 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.069e-05/0.4193, allocations: 47.88 kB / 0.5352 GB, free: 13.79 MB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 3.136e-06/0.4194, allocations: 3.938 kB / 0.5352 GB, free: 13.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=197): time 0.02065/0.44, allocations: 9.771 MB / 0.5448 GB, free: 3.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007662/0.4477, allocations: 6.467 MB / 0.5511 GB, free: 13.14 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004325/0.4521, allocations: 3.035 MB / 0.5541 GB, free: 10.1 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002459/0.4523, allocations: 57.7 kB / 0.5541 GB, free: 10.04 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001454/0.4538, allocations: 2.361 MB / 0.5564 GB, free: 7.641 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006891/0.4545, allocations: 0.7208 MB / 0.5571 GB, free: 6.91 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004607/0.455, allocations: 396.3 kB / 0.5575 GB, free: 6.516 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.27e-05/0.455, allocations: 305.2 kB / 0.5578 GB, free: 6.215 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002327/0.4574, allocations: 1.532 MB / 0.5593 GB, free: 4.676 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003855/0.4612, allocations: 4.11 MB / 0.5633 GB, free: 15.29 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006676/0.4679, allocations: 6.092 MB / 0.5693 GB, free: 7.941 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.934e-05/0.468, allocations: 24 kB / 0.5693 GB, free: 7.918 MB / 446.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.009616/0.4776, allocations: 6.045 MB / 0.5752 GB, free: 1.855 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.022e-05/0.4777, allocations: 47.25 kB / 0.5752 GB, free: 1.812 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-05/0.4778, allocations: 88 kB / 0.5753 GB, free: 1.727 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00151/0.4793, allocations: 0.6375 MB / 0.5759 GB, free: 1.082 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002867/0.4822, allocations: 1.014 MB / 0.5769 GB, free: 68 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.191/0.6732, allocations: 8.457 MB / 0.5852 GB, free: 87.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003524/0.6768, allocations: 247.7 kB / 0.5854 GB, free: 87.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007009/0.6775, allocations: 283.3 kB / 0.5857 GB, free: 87.75 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.002935/0.6804, allocations: 1.733 MB / 0.5874 GB, free: 87.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003788/0.6808, allocations: 263.7 kB / 0.5876 GB, free: 87.62 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004428/0.6853, allocations: 2.879 MB / 0.5904 GB, free: 87.45 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.981e-05/0.6854, allocations: 37.34 kB / 0.5905 GB, free: 87.45 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.6854, allocations: 5.375 kB / 0.5905 GB, free: 87.45 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.509e-05/0.6854, allocations: 9.359 kB / 0.5905 GB, free: 87.45 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01468/0.7001, allocations: 9.291 MB / 0.5996 GB, free: 85.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.549e-05/0.7001, allocations: 2.781 kB / 0.5996 GB, free: 85.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001128/0.7013, allocations: 210.5 kB / 0.5998 GB, free: 85.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00197/0.7033, allocations: 0.6442 MB / 0.6004 GB, free: 85.02 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.961e-05/0.7034, allocations: 32.12 kB / 0.6004 GB, free: 85 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01128/0.7147, allocations: 8.61 MB / 0.6088 GB, free: 79.47 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.008509/0.7232, allocations: 5.695 MB / 0.6144 GB, free: 75.66 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006974/0.7302, allocations: 4.194 MB / 0.6185 GB, free: 74.08 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008585/0.7311, allocations: 360.1 kB / 0.6188 GB, free: 73.81 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002716/0.7314, allocations: 30.34 kB / 0.6189 GB, free: 73.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009237/0.7323, allocations: 88.64 kB / 0.619 GB, free: 73.77 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002965/0.7326, allocations: 137.9 kB / 0.6191 GB, free: 73.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001094/0.7328, allocations: 55.83 kB / 0.6191 GB, free: 73.74 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002722/0.7355, allocations: 1.946 MB / 0.621 GB, free: 73.04 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.7355, allocations: 1.312 kB / 0.621 GB, free: 73.04 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003639/0.7391, allocations: 0.889 MB / 0.6219 GB, free: 72.93 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.005422/0.7446, allocations: 4.851 MB / 0.6266 GB, free: 70.68 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005114/0.7497, allocations: 4.132 MB / 0.6307 GB, free: 69.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.7497, allocations: 3.688 kB / 0.6307 GB, free: 69.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001814/0.7515, allocations: 1.67 MB / 0.6323 GB, free: 68.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002928/0.7545, allocations: 420 kB / 0.6327 GB, free: 68.34 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04012/0.7946, allocations: 38.85 MB / 0.6706 GB, free: 28.23 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002191/0.7968, allocations: 2.829 MB / 0.6734 GB, free: 25.39 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0027/0.7995, allocations: 1.327 MB / 0.6747 GB, free: 24.05 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001355/0.8009, allocations: 1.472 MB / 0.6761 GB, free: 22.58 MB / 446.1 MB Notification: Performance of SimCode: time 6.51e-07/0.8009, allocations: 0 / 0.6761 GB, free: 22.58 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07451/0.8754, allocations: 59.7 MB / 0.7344 GB, free: 11.29 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002079/0.8757, allocations: 250.6 kB / 0.7347 GB, free: 11.04 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.999/3.875, allocations: 4 kB / 0.7347 GB, free: 11.03 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/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)