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.001212/0.001212, 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.001552/0.001552, allocations: 220.3 kB / 23.05 MB, free: 5.074 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.474/1.474, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.07014/0.07014, allocations: 9.24 MB / 322.5 MB, free: 10.06 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PistonEngine,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PistonEngine",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.002026/0.002026, allocations: 60.14 kB / 448.5 MB, free: 15.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1245, allocations: 55.47 MB / 0.4922 GB, free: 7.504 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.01207/0.1365, allocations: 9.8 MB / 0.5017 GB, free: 13.66 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006291/0.1428, allocations: 2.901 MB / 0.5046 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001216/0.1441, allocations: 43.88 kB / 0.5046 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001146/0.1452, allocations: 429 kB / 0.505 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00454/0.1497, allocations: 1.587 MB / 0.5066 GB, free: 8.691 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009586/0.1507, allocations: 183.8 kB / 0.5068 GB, free: 8.512 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004932/0.1556, allocations: 2.832 MB / 0.5095 GB, free: 5.676 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001713/0.1573, allocations: 0.8958 MB / 0.5104 GB, free: 4.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002036/0.1594, allocations: 1.051 MB / 0.5114 GB, free: 3.695 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002638/0.162, allocations: 1.588 MB / 0.513 GB, free: 2.102 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006703/0.1627, allocations: 260 kB / 0.5132 GB, free: 1.848 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001963/0.1647, allocations: 0.9205 MB / 0.5141 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2269/0.3915, allocations: 1.358 MB / 0.5154 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001949/0.3935, allocations: 1.744 MB / 0.5171 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008604/0.4021, allocations: 5.469 MB / 0.5225 GB, free: 9.266 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.4021, allocations: 0.6562 kB / 0.5225 GB, free: 9.266 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.4021, allocations: 0 / 0.5225 GB, free: 9.266 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002613/0.4023, allocations: 2.719 kB / 0.5225 GB, free: 9.266 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.0181/0.4204, allocations: 5.237 MB / 0.5276 GB, free: 7.711 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/0.4205, allocations: 8.969 kB / 0.5276 GB, free: 7.711 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002029/0.4207, allocations: 82.95 kB / 0.5277 GB, free: 7.703 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001494/0.4222, allocations: 0.599 MB / 0.5283 GB, free: 7.637 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006931/0.4291, allocations: 1.842 MB / 0.5301 GB, free: 7.387 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003627/0.4328, allocations: 1.454 MB / 0.5315 GB, free: 7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002305/0.433, allocations: 173.9 kB / 0.5317 GB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001213/0.4342, allocations: 228.3 kB / 0.5319 GB, free: 6.984 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01581/0.45, allocations: 8.953 MB / 0.5406 GB, free: 3.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001065/0.4501, allocations: 29.14 kB / 0.5407 GB, free: 3.477 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003671/0.4505, allocations: 106.5 kB / 0.5408 GB, free: 3.438 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003232/0.4537, allocations: 2.019 MB / 0.5427 GB, free: 2.934 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01601/0.4697, allocations: 7.962 MB / 0.5505 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04808/0.5178, allocations: 28.48 MB / 0.5783 GB, free: 3.82 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007511/0.5253, allocations: 2.271 MB / 0.5805 GB, free: 1.551 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001659/0.527, allocations: 0.9193 MB / 0.5814 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009305/0.5363, allocations: 4.087 MB / 0.5854 GB, free: 12.57 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.966e-05/0.5363, allocations: 47.62 kB / 0.5855 GB, free: 12.52 MB / 430.1 MB Notification: Performance of pre-optimization done (n=155): time 4.108e-06/0.5363, allocations: 0 / 0.5855 GB, free: 12.52 MB / 430.1 MB Notification: Performance of matching and sorting (n=193): time 0.01769/0.554, allocations: 6.455 MB / 0.5918 GB, free: 6.121 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.482e-05/0.5541, allocations: 69.41 kB / 0.5918 GB, free: 6.043 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005036/0.5591, allocations: 3.04 MB / 0.5948 GB, free: 2.992 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002795/0.5594, allocations: 49.7 kB / 0.5949 GB, free: 2.938 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001936/0.5613, allocations: 2.45 MB / 0.5972 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008985/0.5622, allocations: 0.7502 MB / 0.598 GB, free: 15.76 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001486/0.5637, allocations: 0.9372 MB / 0.5989 GB, free: 14.81 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.5639, allocations: 301.1 kB / 0.5992 GB, free: 14.52 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002647/0.5665, allocations: 1.5 MB / 0.6006 GB, free: 13.01 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004968/0.5715, allocations: 4.082 MB / 0.6046 GB, free: 7.688 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008619/0.5801, allocations: 6.037 MB / 0.6105 GB, free: 0.7656 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.49e-05/0.5802, allocations: 24.88 kB / 0.6106 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01272/0.5929, allocations: 5.969 MB / 0.6164 GB, free: 10.96 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.775e-05/0.593, allocations: 48.88 kB / 0.6164 GB, free: 10.91 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001214/0.5931, allocations: 92 kB / 0.6165 GB, free: 10.82 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001694/0.5948, allocations: 0.6087 MB / 0.6171 GB, free: 10.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003514/0.5983, allocations: 1.008 MB / 0.6181 GB, free: 9.195 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01148/0.6098, allocations: 8.957 MB / 0.6268 GB, free: 15.91 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003431/0.6132, allocations: 239.8 kB / 0.6271 GB, free: 15.68 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000698/0.6139, allocations: 276 kB / 0.6273 GB, free: 15.41 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.003311/0.6173, allocations: 1.726 MB / 0.629 GB, free: 13.68 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005536/0.6178, allocations: 282.1 kB / 0.6293 GB, free: 13.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00484/0.6226, allocations: 2.656 MB / 0.6319 GB, free: 10.72 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001071/0.6228, allocations: 27.98 kB / 0.6319 GB, free: 10.69 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.531e-05/0.6228, allocations: 7.938 kB / 0.6319 GB, free: 10.68 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.637e-05/0.6228, allocations: 11.97 kB / 0.6319 GB, free: 10.67 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01344/0.6362, allocations: 7.192 MB / 0.639 GB, free: 3.379 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/0.6362, allocations: 4 kB / 0.639 GB, free: 3.375 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009276/0.6372, allocations: 248.1 kB / 0.6392 GB, free: 3.133 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001353/0.6385, allocations: 485 kB / 0.6397 GB, free: 2.652 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001243/0.6386, allocations: 46.48 kB / 0.6397 GB, free: 2.609 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009169/0.6478, allocations: 7.658 MB / 0.6472 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.6478, allocations: 8 kB / 0.6472 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006758/0.6546, allocations: 3.998 MB / 0.6511 GB, free: 6.535 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008836/0.6555, allocations: 280.4 kB / 0.6514 GB, free: 6.262 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003565/0.6558, allocations: 32 kB / 0.6514 GB, free: 6.23 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009748/0.6568, allocations: 79.91 kB / 0.6515 GB, free: 6.152 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003014/0.6571, allocations: 133 kB / 0.6516 GB, free: 6.02 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001285/0.6572, allocations: 63.27 kB / 0.6517 GB, free: 5.961 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00359/0.6608, allocations: 1.94 MB / 0.6535 GB, free: 4.016 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6608, allocations: 0 / 0.6535 GB, free: 4.016 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004339/0.6652, allocations: 0.8202 MB / 0.6543 GB, free: 3.195 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.006992/0.6721, allocations: 4.655 MB / 0.6589 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008067/0.6802, allocations: 3.96 MB / 0.6628 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/0.6802, allocations: 0 / 0.6628 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002462/0.6827, allocations: 1.474 MB / 0.6642 GB, free: 8.98 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002498/0.6852, allocations: 447.5 kB / 0.6646 GB, free: 8.555 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06092/0.7461, allocations: 33.12 MB / 0.697 GB, free: 3.855 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003582/0.7497, allocations: 2.809 MB / 0.6997 GB, free: 1.023 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003208/0.7529, allocations: 1.325 MB / 0.701 GB, free: 15.69 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002096/0.755, allocations: 1.491 MB / 0.7025 GB, free: 14.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.293e-06/0.755, allocations: 0 / 0.7025 GB, free: 14.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3307/1.086, allocations: 60.39 MB / 0.7614 GB, free: 162.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.41/25.49, allocations: 21.53 kB / 0.7615 GB, free: 162.4 MB / 0.545 GB " [Timeout remaining time 634] (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.402910477947444] Failed to read output from testmodel.py, exit status != 0: 25.712363054975867 25.731848153 25.325658803 Calling exit ...