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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 107.8 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 225.6 MB / 247.8 MB, free: 3.723 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04586/0.04586, allocations: 9.237 MB / 311.9 MB, free: 1.852 MB / 238.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 68.03 kB / 434 MB, free: 11.22 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2659, allocations: 54.25 MB / 488.3 MB, free: 25.1 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.008874/0.2748, allocations: 9.769 MB / 498.1 MB, free: 18.15 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005989/0.2808, allocations: 2.86 MB / 0.4892 GB, free: 16.21 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001685/0.2825, allocations: 42.84 kB / 0.4892 GB, free: 16.2 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001176/0.2837, allocations: 436.4 kB / 0.4896 GB, free: 16.02 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004222/0.2879, allocations: 1.582 MB / 0.4912 GB, free: 14.92 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007501/0.2886, allocations: 191.7 kB / 0.4914 GB, free: 14.76 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004018/0.2926, allocations: 2.856 MB / 0.4941 GB, free: 13.11 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001637/0.2943, allocations: 0.9056 MB / 0.495 GB, free: 12.44 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002108/0.2964, allocations: 1.029 MB / 0.496 GB, free: 11.83 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002598/0.299, allocations: 1.598 MB / 0.4976 GB, free: 10.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008753/0.2999, allocations: 259.1 kB / 0.4978 GB, free: 10.82 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002055/0.3019, allocations: 0.8975 MB / 0.4987 GB, free: 10.46 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0014/0.3033, allocations: 1.384 MB / 0.5001 GB, free: 9.629 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002297/0.3056, allocations: 1.758 MB / 0.5018 GB, free: 8.262 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006818/0.3124, allocations: 5.505 MB / 0.5072 GB, free: 4.457 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3124, allocations: 0 / 0.5072 GB, free: 4.457 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3124, allocations: 0 / 0.5072 GB, free: 4.457 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001997/0.3126, allocations: 1.312 kB / 0.5072 GB, free: 4.457 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.01323/0.3259, allocations: 5.275 MB / 0.5123 GB, free: 15.54 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.3259, allocations: 8.031 kB / 0.5123 GB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00153/0.3274, allocations: 0.5971 MB / 0.5129 GB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00719/0.3346, allocations: 1.835 MB / 0.5147 GB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004457/0.3391, allocations: 1.526 MB / 0.5162 GB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002587/0.3393, allocations: 180.3 kB / 0.5164 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001119/0.3405, allocations: 235.8 kB / 0.5166 GB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01669/0.3572, allocations: 8.944 MB / 0.5253 GB, free: 1.695 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.545e-05/0.3572, allocations: 23.81 kB / 0.5253 GB, free: 1.672 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003705/0.3576, allocations: 111.9 kB / 0.5255 GB, free: 1.562 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003401/0.361, allocations: 2.013 MB / 0.5274 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01997/0.381, allocations: 7.971 MB / 0.5352 GB, free: 7.566 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05443/0.4354, allocations: 28.53 MB / 0.5631 GB, free: 10.43 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008135/0.4436, allocations: 2.728 MB / 0.5657 GB, free: 7.586 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001852/0.4454, allocations: 0.9173 MB / 0.5666 GB, free: 6.668 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01169/0.4571, allocations: 6.483 MB / 0.573 GB, free: 15.56 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.707e-05/0.4571, allocations: 47.88 kB / 0.573 GB, free: 15.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=155): time 4.829e-06/0.4571, allocations: 0 / 0.573 GB, free: 15.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.02591/0.4831, allocations: 9.818 MB / 0.5826 GB, free: 5.586 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009486/0.4925, allocations: 6.783 MB / 0.5892 GB, free: 14.48 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0062/0.4987, allocations: 3.04 MB / 0.5922 GB, free: 11.43 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003282/0.4991, allocations: 53.7 kB / 0.5922 GB, free: 11.38 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002194/0.5013, allocations: 2.45 MB / 0.5946 GB, free: 8.902 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001094/0.5024, allocations: 0.7595 MB / 0.5954 GB, free: 8.137 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002463/0.5048, allocations: 0.9453 MB / 0.5963 GB, free: 7.18 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.505, allocations: 305.1 kB / 0.5966 GB, free: 6.879 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003079/0.508, allocations: 1.532 MB / 0.5981 GB, free: 5.34 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005357/0.5134, allocations: 4.11 MB / 0.6021 GB, free: 15.95 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008772/0.5222, allocations: 6.084 MB / 0.608 GB, free: 8.609 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.701e-05/0.5223, allocations: 24 kB / 0.6081 GB, free: 8.586 MB / 478.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01304/0.5353, allocations: 6.042 MB / 0.614 GB, free: 2.531 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001359/0.5354, allocations: 44 kB / 0.614 GB, free: 2.488 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001908/0.5356, allocations: 92 kB / 0.6141 GB, free: 2.398 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001812/0.5374, allocations: 0.6195 MB / 0.6147 GB, free: 1.77 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003482/0.5409, allocations: 1.025 MB / 0.6157 GB, free: 0.7422 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2322/0.7731, allocations: 9.251 MB / 0.6247 GB, free: 110 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003867/0.777, allocations: 255.9 kB / 0.625 GB, free: 109.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001219/0.7782, allocations: 276.1 kB / 0.6252 GB, free: 109.9 MB / 478.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.003475/0.7817, allocations: 1.732 MB / 0.6269 GB, free: 109.2 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005325/0.7822, allocations: 277.9 kB / 0.6272 GB, free: 109.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005263/0.7875, allocations: 2.856 MB / 0.63 GB, free: 108.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001104/0.7876, allocations: 34.67 kB / 0.63 GB, free: 108.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.198e-05/0.7876, allocations: 6.406 kB / 0.63 GB, free: 108.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-05/0.7876, allocations: 11.86 kB / 0.63 GB, free: 108.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01655/0.8041, allocations: 9.188 MB / 0.639 GB, free: 104.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-05/0.8042, allocations: 10.72 kB / 0.639 GB, free: 104.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007725/0.8049, allocations: 211.2 kB / 0.6392 GB, free: 104.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001584/0.8065, allocations: 0.6366 MB / 0.6398 GB, free: 104.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001336/0.8067, allocations: 43.55 kB / 0.6399 GB, free: 104.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009247/0.8159, allocations: 9.366 MB / 0.649 GB, free: 98.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005531/0.8214, allocations: 5.934 MB / 0.6548 GB, free: 94.21 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005436/0.8269, allocations: 4.19 MB / 0.6589 GB, free: 92.43 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009428/0.8278, allocations: 353.4 kB / 0.6592 GB, free: 92.14 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003854/0.8282, allocations: 31.66 kB / 0.6593 GB, free: 92.12 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001/0.8292, allocations: 88.39 kB / 0.6594 GB, free: 92.07 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002686/0.8295, allocations: 137.7 kB / 0.6595 GB, free: 92 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001016/0.8296, allocations: 53.7 kB / 0.6595 GB, free: 91.99 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002831/0.8324, allocations: 1.944 MB / 0.6614 GB, free: 90.97 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.8324, allocations: 0 / 0.6614 GB, free: 90.97 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00453/0.8369, allocations: 0.8978 MB / 0.6623 GB, free: 90.85 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.005549/0.8425, allocations: 4.842 MB / 0.667 GB, free: 86.74 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005863/0.8483, allocations: 4.018 MB / 0.671 GB, free: 82.71 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/0.8483, allocations: 1.562 kB / 0.671 GB, free: 82.71 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002031/0.8504, allocations: 1.586 MB / 0.6725 GB, free: 81.09 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002384/0.8528, allocations: 449.5 kB / 0.673 GB, free: 80.66 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04295/0.8957, allocations: 33.52 MB / 0.7057 GB, free: 43.54 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002668/0.8984, allocations: 2.826 MB / 0.7084 GB, free: 40.69 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002722/0.9011, allocations: 1.318 MB / 0.7097 GB, free: 39.37 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001705/0.9028, allocations: 1.472 MB / 0.7112 GB, free: 37.89 MB / 478.1 MB Notification: Performance of SimCode: time 1.292e-06/0.9028, allocations: 0 / 0.7112 GB, free: 37.89 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1135/1.016, allocations: 59.44 MB / 0.7692 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 43.92/44.94, allocations: 15.8 kB / 0.7692 GB, free: 10.69 MB / 0.4981 GB " [Timeout remaining time 615] (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 --stepSize=0.004 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PistonEngine_DynamicStateSelection.fmu > PlanarMechanics_PlanarMechanics.Examples.PistonEngine_DynamicStateSelection.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 47.45388100715354] Failed to read output from testmodel.py, exit status != 0: 45.06864447472617 45.083597964 44.767910719 Calling exit ...