Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PistonEngine.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.001596/0.001596, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001651/0.001651, allocations: 215 kB / 22.25 MB, free: 5.125 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.528/1.528, allocations: 230.6 MB / 256 MB, free: 7.973 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.05311/0.05311, allocations: 9.239 MB / 321.7 MB, free: 10.01 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,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PistonEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine",fmuType="me",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.002132/0.002132, allocations: 67.91 kB / 447.7 MB, free: 15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1309, allocations: 55.46 MB / 0.4914 GB, free: 7.449 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.01325/0.1441, allocations: 9.797 MB / 0.501 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007042/0.1512, allocations: 2.901 MB / 0.5038 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001414/0.1526, allocations: 47.81 kB / 0.5039 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001412/0.154, allocations: 429 kB / 0.5043 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005122/0.1591, allocations: 1.583 MB / 0.5058 GB, free: 8.641 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009013/0.16, allocations: 187.7 kB / 0.506 GB, free: 8.457 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004835/0.1649, allocations: 2.833 MB / 0.5088 GB, free: 5.617 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001798/0.1667, allocations: 0.8919 MB / 0.5096 GB, free: 4.695 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002028/0.1687, allocations: 1.051 MB / 0.5107 GB, free: 3.641 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002821/0.1715, allocations: 1.596 MB / 0.5122 GB, free: 2.039 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006508/0.1722, allocations: 260 kB / 0.5125 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002175/0.1743, allocations: 0.9089 MB / 0.5134 GB, free: 0.875 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2479/0.4222, allocations: 1.359 MB / 0.5147 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002167/0.4244, allocations: 1.743 MB / 0.5164 GB, free: 9.641 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008223/0.4326, allocations: 5.468 MB / 0.5217 GB, free: 8.727 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.4326, allocations: 0.8438 kB / 0.5217 GB, free: 8.727 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.4326, allocations: 3.938 kB / 0.5217 GB, free: 8.723 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001605/0.4328, allocations: 0 / 0.5217 GB, free: 8.723 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.01566/0.4484, allocations: 5.241 MB / 0.5268 GB, free: 7.164 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.862e-05/0.4485, allocations: 10.28 kB / 0.5269 GB, free: 7.164 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001306/0.4498, allocations: 0.6033 MB / 0.5274 GB, free: 7.098 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007492/0.4573, allocations: 1.834 MB / 0.5292 GB, free: 6.848 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003792/0.4611, allocations: 1.452 MB / 0.5307 GB, free: 6.465 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001559/0.4613, allocations: 176.4 kB / 0.5308 GB, free: 6.453 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005559/0.4618, allocations: 238.4 kB / 0.531 GB, free: 6.445 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0172/0.479, allocations: 8.946 MB / 0.5398 GB, free: 3.289 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001222/0.4791, allocations: 25.92 kB / 0.5398 GB, free: 3.285 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004007/0.4795, allocations: 114 kB / 0.5399 GB, free: 3.242 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003857/0.4834, allocations: 2.013 MB / 0.5419 GB, free: 2.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01527/0.4987, allocations: 7.965 MB / 0.5497 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05037/0.549, allocations: 28.48 MB / 0.5775 GB, free: 3.711 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007605/0.5567, allocations: 2.272 MB / 0.5797 GB, free: 1.438 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001922/0.5586, allocations: 0.9203 MB / 0.5806 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01041/0.569, allocations: 4.073 MB / 0.5846 GB, free: 12.47 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.814e-05/0.569, allocations: 54.67 kB / 0.5846 GB, free: 12.41 MB / 430.1 MB Notification: Performance of pre-optimization done (n=155): time 4.018e-06/0.569, allocations: 0 / 0.5846 GB, free: 12.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=193): time 0.01888/0.5879, allocations: 6.45 MB / 0.5909 GB, free: 6.02 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.542e-05/0.588, allocations: 69.41 kB / 0.591 GB, free: 5.941 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008578/0.5966, allocations: 3.044 MB / 0.594 GB, free: 2.887 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002233/0.5968, allocations: 59.39 kB / 0.594 GB, free: 2.824 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002612/0.5994, allocations: 2.455 MB / 0.5964 GB, free: 392 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008984/0.6003, allocations: 0.7398 MB / 0.5971 GB, free: 15.65 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002118/0.6024, allocations: 0.9362 MB / 0.598 GB, free: 14.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.6025, allocations: 301.1 kB / 0.5983 GB, free: 14.41 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002943/0.6055, allocations: 1.5 MB / 0.5998 GB, free: 12.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005675/0.6111, allocations: 4.086 MB / 0.6038 GB, free: 7.574 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008319/0.6195, allocations: 6.034 MB / 0.6097 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.373e-05/0.6195, allocations: 28 kB / 0.6097 GB, free: 0.6211 MB / 446.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.0115/0.631, allocations: 5.962 MB / 0.6155 GB, free: 10.84 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001073/0.6311, allocations: 47.94 kB / 0.6156 GB, free: 10.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001557/0.6313, allocations: 89.69 kB / 0.6157 GB, free: 10.71 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002044/0.6333, allocations: 0.6248 MB / 0.6163 GB, free: 10.08 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003442/0.6368, allocations: 1.002 MB / 0.6172 GB, free: 9.078 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01362/0.6504, allocations: 8.952 MB / 0.626 GB, free: 15.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004469/0.6549, allocations: 239.4 kB / 0.6262 GB, free: 15.57 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009009/0.6558, allocations: 280 kB / 0.6265 GB, free: 15.3 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 (548): * Single equations (assignments): 541 * 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.005369/0.6611, allocations: 1.73 MB / 0.6282 GB, free: 13.56 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008479/0.662, allocations: 282.1 kB / 0.6284 GB, free: 13.28 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006674/0.6687, allocations: 2.655 MB / 0.631 GB, free: 10.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001197/0.6688, allocations: 31.98 kB / 0.6311 GB, free: 10.57 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.431e-05/0.6688, allocations: 7.938 kB / 0.6311 GB, free: 10.56 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.131e-05/0.6688, allocations: 7.969 kB / 0.6311 GB, free: 10.55 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01924/0.6881, allocations: 7.196 MB / 0.6381 GB, free: 3.258 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-05/0.6881, allocations: 4 kB / 0.6381 GB, free: 3.254 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/0.6892, allocations: 239.6 kB / 0.6383 GB, free: 3.02 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001609/0.6908, allocations: 497.4 kB / 0.6388 GB, free: 2.527 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002767/0.691, allocations: 36 kB / 0.6389 GB, free: 2.492 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01108/0.7021, allocations: 7.657 MB / 0.6463 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.478e-06/0.7021, allocations: 7.938 kB / 0.6463 GB, free: 10.49 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00786/0.71, allocations: 3.993 MB / 0.6502 GB, free: 6.426 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001203/0.7112, allocations: 278.1 kB / 0.6505 GB, free: 6.152 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006423/0.7118, allocations: 38.33 kB / 0.6505 GB, free: 6.117 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001387/0.7132, allocations: 87.91 kB / 0.6506 GB, free: 6.031 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000263/0.7135, allocations: 132.9 kB / 0.6507 GB, free: 5.898 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003602/0.7139, allocations: 54.97 kB / 0.6508 GB, free: 5.848 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004796/0.7187, allocations: 1.955 MB / 0.6527 GB, free: 3.887 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7187, allocations: 4 kB / 0.6527 GB, free: 3.883 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004379/0.723, allocations: 0.8163 MB / 0.6535 GB, free: 3.066 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (revoluteDrive.phi,revoluteDrive.w) * 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 (135): * Single equations (assignments): 128 * 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%), (1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007697/0.7307, allocations: 4.654 MB / 0.6581 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007936/0.7387, allocations: 3.949 MB / 0.6619 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.7387, allocations: 0 / 0.6619 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002585/0.7413, allocations: 1.48 MB / 0.6634 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003024/0.7443, allocations: 452.9 kB / 0.6638 GB, free: 8.426 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06645/0.8107, allocations: 33.11 MB / 0.6961 GB, free: 3.734 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004579/0.8153, allocations: 2.814 MB / 0.6989 GB, free: 0.8984 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00371/0.819, allocations: 1.325 MB / 0.7002 GB, free: 15.57 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00265/0.8217, allocations: 1.479 MB / 0.7016 GB, free: 14.09 MB / 0.545 GB Notification: Performance of SimCode: time 6.01e-07/0.8217, allocations: 0 / 0.7016 GB, free: 14.09 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3776/1.199, allocations: 60.37 MB / 0.7606 GB, free: 162.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.13/25.33, allocations: 10.41 kB / 0.7606 GB, free: 162.2 MB / 0.545 GB " [Timeout remaining time 635] (rm -f PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PistonEngine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PistonEngine_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PistonEngine.fmu > PlanarMechanics_PlanarMechanics.Examples.PistonEngine.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 28.17994874995202] Failed to read output from testmodel.py, exit status != 0: 25.48412007186562 25.500217673 25.06452571 Calling exit ...