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.001589/0.001589, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001979/0.001979, allocations: 214.2 kB / 22.25 MB, free: 5.258 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.579/1.579, allocations: 230.6 MB / 256 MB, free: 7.781 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.05062/0.05062, allocations: 9.243 MB / 321.7 MB, free: 9.852 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.002084/0.002084, allocations: 65.47 kB / 447.7 MB, free: 14.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1112, allocations: 55.47 MB / 0.4913 GB, free: 7.027 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.01063/0.1218, allocations: 8.502 MB / 0.4996 GB, free: 14.48 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006294/0.1281, allocations: 2.751 MB / 0.5023 GB, free: 11.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001392/0.1295, allocations: 47.81 kB / 0.5024 GB, free: 11.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001311/0.1308, allocations: 437 kB / 0.5028 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004586/0.1354, allocations: 1.58 MB / 0.5043 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007683/0.1362, allocations: 187.7 kB / 0.5045 GB, free: 9.48 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004164/0.1403, allocations: 2.821 MB / 0.5073 GB, free: 6.652 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001779/0.1421, allocations: 0.8841 MB / 0.5081 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002057/0.1442, allocations: 1.051 MB / 0.5092 GB, free: 4.688 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002972/0.1472, allocations: 1.521 MB / 0.5107 GB, free: 3.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001019/0.1482, allocations: 263.9 kB / 0.5109 GB, free: 2.902 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002359/0.1505, allocations: 0.788 MB / 0.5117 GB, free: 2.113 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00205/0.1526, allocations: 1.363 MB / 0.513 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2661/0.4187, allocations: 1.236 MB / 0.5142 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006258/0.4249, allocations: 5.474 MB / 0.5196 GB, free: 9.754 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.4249, allocations: 0 / 0.5196 GB, free: 9.754 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4249, allocations: 4.188 kB / 0.5196 GB, free: 9.754 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002309/0.4252, allocations: 1.75 kB / 0.5196 GB, free: 9.754 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.01652/0.4417, allocations: 5.239 MB / 0.5247 GB, free: 8.195 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.172e-05/0.4417, allocations: 8.562 kB / 0.5247 GB, free: 8.195 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002167/0.4439, allocations: 0.6053 MB / 0.5253 GB, free: 8.129 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00758/0.4515, allocations: 1.845 MB / 0.5271 GB, free: 7.875 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004352/0.4558, allocations: 1.456 MB / 0.5285 GB, free: 7.496 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002949/0.4561, allocations: 173.9 kB / 0.5287 GB, free: 7.488 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001353/0.4575, allocations: 241.1 kB / 0.5289 GB, free: 7.477 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01922/0.4767, allocations: 8.95 MB / 0.5376 GB, free: 4.914 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002395/0.477, allocations: 31.58 kB / 0.5377 GB, free: 4.906 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001226/0.4782, allocations: 108.7 kB / 0.5378 GB, free: 4.867 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003645/0.4818, allocations: 2.013 MB / 0.5397 GB, free: 4.488 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01799/0.4998, allocations: 7.947 MB / 0.5475 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05181/0.5516, allocations: 27.01 MB / 0.5739 GB, free: 7.504 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007487/0.5591, allocations: 2.266 MB / 0.5761 GB, free: 5.238 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001832/0.5609, allocations: 0.9283 MB / 0.577 GB, free: 4.316 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01002/0.571, allocations: 3.802 MB / 0.5807 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.685e-05/0.571, allocations: 47.88 kB / 0.5808 GB, free: 492 kB / 414.1 MB Notification: Performance of pre-optimization done (n=155): time 6.602e-06/0.571, allocations: 0.6094 kB / 0.5808 GB, free: 492 kB / 414.1 MB Notification: Performance of matching and sorting (n=193): time 0.01916/0.5902, allocations: 6.457 MB / 0.5871 GB, free: 10.07 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001477/0.5903, allocations: 73.41 kB / 0.5871 GB, free: 9.992 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00756/0.5979, allocations: 3.201 MB / 0.5903 GB, free: 6.781 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000309/0.5982, allocations: 49.7 kB / 0.5903 GB, free: 6.727 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002542/0.6007, allocations: 2.452 MB / 0.5927 GB, free: 4.285 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001153/0.6019, allocations: 0.7426 MB / 0.5934 GB, free: 3.551 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002308/0.6042, allocations: 0.9321 MB / 0.5943 GB, free: 2.609 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.6043, allocations: 301.1 kB / 0.5946 GB, free: 2.312 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003103/0.6074, allocations: 1.504 MB / 0.5961 GB, free: 0.8008 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006076/0.6135, allocations: 4.081 MB / 0.6001 GB, free: 11.48 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009686/0.6232, allocations: 6.029 MB / 0.606 GB, free: 4.562 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001427/0.6233, allocations: 28 kB / 0.606 GB, free: 4.535 MB / 446.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.0146/0.6379, allocations: 5.967 MB / 0.6118 GB, free: 14.69 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001474/0.6381, allocations: 44 kB / 0.6119 GB, free: 14.64 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002191/0.6383, allocations: 98.28 kB / 0.612 GB, free: 14.55 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002016/0.6403, allocations: 0.6117 MB / 0.6125 GB, free: 13.93 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003912/0.6442, allocations: 1.01 MB / 0.6135 GB, free: 12.92 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01263/0.6569, allocations: 8.879 MB / 0.6222 GB, free: 3.719 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003688/0.6606, allocations: 243.8 kB / 0.6224 GB, free: 3.48 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000922/0.6615, allocations: 279.3 kB / 0.6227 GB, free: 3.211 MB / 462.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.003926/0.6654, allocations: 1.722 MB / 0.6244 GB, free: 1.48 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000746/0.6661, allocations: 282.5 kB / 0.6247 GB, free: 1.203 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00565/0.6718, allocations: 2.642 MB / 0.6272 GB, free: 14.54 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001105/0.6719, allocations: 31.98 kB / 0.6273 GB, free: 14.5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.809e-05/0.6719, allocations: 4 kB / 0.6273 GB, free: 14.5 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.28e-05/0.6719, allocations: 15.84 kB / 0.6273 GB, free: 14.48 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01743/0.6894, allocations: 6.858 MB / 0.634 GB, free: 7.539 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.51e-05/0.6894, allocations: 8.562 kB / 0.634 GB, free: 7.531 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009754/0.6904, allocations: 243.6 kB / 0.6342 GB, free: 7.293 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001502/0.6919, allocations: 490 kB / 0.6347 GB, free: 6.805 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002318/0.6921, allocations: 33.12 kB / 0.6347 GB, free: 6.773 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01021/0.7023, allocations: 7.606 MB / 0.6421 GB, free: 14.83 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.774e-06/0.7023, allocations: 8 kB / 0.6422 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007569/0.7099, allocations: 3.993 MB / 0.6461 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001211/0.7111, allocations: 278.1 kB / 0.6463 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007674/0.7119, allocations: 36 kB / 0.6464 GB, free: 10.45 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001413/0.7133, allocations: 80.19 kB / 0.6464 GB, free: 10.37 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003118/0.7136, allocations: 132.9 kB / 0.6466 GB, free: 10.24 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001313/0.7137, allocations: 55.91 kB / 0.6466 GB, free: 10.19 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00446/0.7182, allocations: 1.951 MB / 0.6485 GB, free: 8.23 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.7182, allocations: 0 / 0.6485 GB, free: 8.23 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005209/0.7234, allocations: 0.8203 MB / 0.6493 GB, free: 7.41 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.008485/0.7319, allocations: 4.643 MB / 0.6539 GB, free: 2.676 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009411/0.7413, allocations: 3.961 MB / 0.6577 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-05/0.7413, allocations: 0 / 0.6577 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003399/0.7447, allocations: 1.479 MB / 0.6592 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004096/0.7488, allocations: 439.5 kB / 0.6596 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07116/0.82, allocations: 33.11 MB / 0.6919 GB, free: 8.094 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00539/0.8253, allocations: 2.25 MB / 0.6941 GB, free: 5.812 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004112/0.8295, allocations: 1.333 MB / 0.6954 GB, free: 4.473 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00301/0.8325, allocations: 1.479 MB / 0.6969 GB, free: 2.992 MB / 0.5294 GB Notification: Performance of SimCode: time 2.044e-06/0.8325, allocations: 4 kB / 0.6969 GB, free: 2.988 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3629/1.195, allocations: 56.76 MB / 0.7523 GB, free: 171.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.41/17.6, allocations: 4 kB / 0.7523 GB, free: 171.4 MB / 0.545 GB " [Timeout remaining time 642] (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: 20.471944809891284] Failed to read output from testmodel.py, exit status != 0: 17.762679156381637 17.774851537 17.347316727 Calling exit ...