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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 113.5 kB / 19.73 MB, free: 2.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 218.9 kB / 23.04 MB, free: 5.078 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.471/1.471, allocations: 230.6 MB / 256.8 MB, free: 8.004 MB / 206.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.0484/0.0484, allocations: 9.242 MB / 322.5 MB, free: 10.08 MB / 254.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine_DynamicStateSelection",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine_DynamicStateSelection",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PlanarMechanics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00234/0.00234, allocations: 71.84 kB / 448.5 MB, free: 15.08 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1193, allocations: 55.46 MB / 0.4922 GB, free: 7.523 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine_DynamicStateSelection): time 0.01251/0.1318, allocations: 9.789 MB / 0.5017 GB, free: 13.69 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006325/0.1382, allocations: 2.901 MB / 0.5046 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001167/0.1393, allocations: 47.81 kB / 0.5046 GB, free: 10.73 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001003/0.1403, allocations: 437 kB / 0.505 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004238/0.1446, allocations: 1.582 MB / 0.5066 GB, free: 8.719 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007177/0.1453, allocations: 191.6 kB / 0.5068 GB, free: 8.531 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004102/0.1494, allocations: 2.825 MB / 0.5095 GB, free: 5.699 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001466/0.1509, allocations: 0.8919 MB / 0.5104 GB, free: 4.777 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001637/0.1525, allocations: 1.054 MB / 0.5114 GB, free: 3.719 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002515/0.155, allocations: 1.588 MB / 0.513 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007122/0.1557, allocations: 259.9 kB / 0.5132 GB, free: 1.871 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001852/0.1576, allocations: 0.9089 MB / 0.5141 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2257/0.3833, allocations: 1.369 MB / 0.5154 GB, free: 10 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001937/0.3853, allocations: 1.739 MB / 0.5171 GB, free: 9.645 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006194/0.3914, allocations: 5.471 MB / 0.5225 GB, free: 8.727 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.3914, allocations: 0.8125 kB / 0.5225 GB, free: 8.727 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3915, allocations: 0 / 0.5225 GB, free: 8.727 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001648/0.3916, allocations: 0 / 0.5225 GB, free: 8.727 MB / 382.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.0163/0.4079, allocations: 5.242 MB / 0.5276 GB, free: 7.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.266e-05/0.408, allocations: 9.75 kB / 0.5276 GB, free: 7.16 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001718/0.4081, allocations: 80.48 kB / 0.5277 GB, free: 7.152 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001193/0.4093, allocations: 0.6069 MB / 0.5283 GB, free: 7.082 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007262/0.4166, allocations: 1.833 MB / 0.5301 GB, free: 6.836 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003899/0.4205, allocations: 1.452 MB / 0.5315 GB, free: 6.449 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002128/0.4207, allocations: 179.3 kB / 0.5317 GB, free: 6.438 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001215/0.4219, allocations: 230 kB / 0.5319 GB, free: 6.434 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0159/0.4378, allocations: 8.951 MB / 0.5406 GB, free: 3.301 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001064/0.4379, allocations: 30.8 kB / 0.5407 GB, free: 3.297 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004123/0.4383, allocations: 108.7 kB / 0.5408 GB, free: 3.258 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003279/0.4416, allocations: 2.016 MB / 0.5427 GB, free: 2.809 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0169/0.4585, allocations: 7.966 MB / 0.5505 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04819/0.5067, allocations: 28.48 MB / 0.5783 GB, free: 3.715 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007353/0.5141, allocations: 2.273 MB / 0.5805 GB, free: 1.441 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001707/0.5158, allocations: 0.9154 MB / 0.5814 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009824/0.5256, allocations: 4.084 MB / 0.5854 GB, free: 12.48 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.825e-05/0.5257, allocations: 45.94 kB / 0.5855 GB, free: 12.42 MB / 430.1 MB Notification: Performance of pre-optimization done (n=155): time 4.097e-06/0.5257, allocations: 0 / 0.5855 GB, free: 12.42 MB / 430.1 MB Notification: Performance of matching and sorting (n=197): time 0.025/0.5507, allocations: 9.594 MB / 0.5948 GB, free: 2.852 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.009384/0.56, allocations: 6.565 MB / 0.6012 GB, free: 12.07 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006654/0.5667, allocations: 3.047 MB / 0.6042 GB, free: 9.016 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003369/0.567, allocations: 61.02 kB / 0.6043 GB, free: 8.953 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002182/0.5692, allocations: 2.447 MB / 0.6067 GB, free: 6.516 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001218/0.5704, allocations: 0.7607 MB / 0.6074 GB, free: 5.766 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002147/0.5726, allocations: 0.9444 MB / 0.6083 GB, free: 4.812 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.5727, allocations: 305.1 kB / 0.6086 GB, free: 4.512 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00294/0.5757, allocations: 1.532 MB / 0.6101 GB, free: 2.973 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005137/0.5808, allocations: 4.112 MB / 0.6141 GB, free: 13.62 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008174/0.589, allocations: 6.095 MB / 0.6201 GB, free: 6.637 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.677e-05/0.589, allocations: 32 kB / 0.6201 GB, free: 6.605 MB / 462.1 MB Notification: Performance of matching and sorting (n=621) (initialization): time 0.01238/0.6014, allocations: 6.036 MB / 0.626 GB, free: 0.7266 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.883e-05/0.6015, allocations: 40 kB / 0.626 GB, free: 0.6875 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001469/0.6017, allocations: 92 kB / 0.6261 GB, free: 0.5977 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001734/0.6034, allocations: 0.6213 MB / 0.6267 GB, free: 15.97 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00335/0.6067, allocations: 1.021 MB / 0.6277 GB, free: 14.95 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01233/0.6191, allocations: 8.964 MB / 0.6365 GB, free: 5.652 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003835/0.6229, allocations: 251.9 kB / 0.6367 GB, free: 5.406 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008857/0.6238, allocations: 282.2 kB / 0.637 GB, free: 5.133 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.003833/0.6276, allocations: 1.72 MB / 0.6387 GB, free: 3.402 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006697/0.6283, allocations: 282.1 kB / 0.639 GB, free: 3.125 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005955/0.6342, allocations: 2.866 MB / 0.6417 GB, free: 240 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001246/0.6344, allocations: 35.97 kB / 0.6418 GB, free: 204 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.402e-05/0.6344, allocations: 4 kB / 0.6418 GB, free: 200 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.462e-05/0.6344, allocations: 10.31 kB / 0.6418 GB, free: 192 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0234/0.6578, allocations: 9.038 MB / 0.6506 GB, free: 7.016 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.303e-05/0.6578, allocations: 4 kB / 0.6506 GB, free: 7.012 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001064/0.6589, allocations: 211.7 kB / 0.6508 GB, free: 6.805 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001975/0.6609, allocations: 0.6378 MB / 0.6515 GB, free: 6.164 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002392/0.6611, allocations: 38.41 kB / 0.6515 GB, free: 6.129 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01257/0.6737, allocations: 9.055 MB / 0.6603 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007621/0.6813, allocations: 5.719 MB / 0.6659 GB, free: 6.777 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007447/0.6888, allocations: 4.194 MB / 0.67 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009834/0.6898, allocations: 282 kB / 0.6703 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006558/0.6904, allocations: 28 kB / 0.6703 GB, free: 2.219 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001308/0.6917, allocations: 87.89 kB / 0.6704 GB, free: 2.133 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003494/0.6921, allocations: 145 kB / 0.6705 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001285/0.6922, allocations: 51.98 kB / 0.6706 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003959/0.6962, allocations: 1.948 MB / 0.6725 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6962, allocations: 0 / 0.6725 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004825/0.701, allocations: 0.871 MB / 0.6733 GB, free: 15.12 MB / 0.5137 GB 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.007862/0.7088, allocations: 4.842 MB / 0.6781 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007688/0.7165, allocations: 4.024 MB / 0.682 GB, free: 6.156 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/0.7165, allocations: 0 / 0.682 GB, free: 6.156 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003099/0.7196, allocations: 1.587 MB / 0.6835 GB, free: 4.527 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003009/0.7226, allocations: 445.2 kB / 0.684 GB, free: 4.102 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0689/0.7915, allocations: 33.6 MB / 0.7168 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005448/0.797, allocations: 2.826 MB / 0.7195 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003639/0.8006, allocations: 1.325 MB / 0.7208 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003564/0.8042, allocations: 1.46 MB / 0.7223 GB, free: 9.246 MB / 0.5606 GB Notification: Performance of SimCode: time 2.936e-06/0.8042, allocations: 3.938 kB / 0.7223 GB, free: 9.242 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3678/1.172, allocations: 63.34 MB / 0.7841 GB, free: 170.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 45.08/46.25, allocations: 9.344 kB / 0.7841 GB, free: 170.1 MB / 0.5606 GB " [Timeout remaining time 614] (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: 49.12583410809748] Failed to read output from testmodel.py, exit status != 0: 46.46440909197554 46.480086362 46.084571687 Calling exit ...