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.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.001563/0.001563, allocations: 108.8 kB / 16.45 MB, free: 6.504 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.001527/0.001527, allocations: 195.8 kB / 19.41 MB, free: 3.668 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.376/1.376, allocations: 225.6 MB / 247.8 MB, free: 13.95 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.04821/0.04821, allocations: 9.242 MB / 311.9 MB, free: 0.7305 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,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: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 63.91 kB / 434 MB, free: 14.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09396/0.09584, allocations: 54.26 MB / 488.3 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PistonEngine): time 0.01111/0.107, allocations: 9.76 MB / 498.1 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005721/0.1127, allocations: 2.864 MB / 0.4892 GB, free: 11.01 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001047/0.1137, allocations: 39.94 kB / 0.4892 GB, free: 10.97 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009543/0.1147, allocations: 437 kB / 0.4896 GB, free: 10.54 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003777/0.1185, allocations: 1.583 MB / 0.4912 GB, free: 8.949 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006075/0.1191, allocations: 191.7 kB / 0.4914 GB, free: 8.762 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003792/0.1229, allocations: 2.849 MB / 0.4941 GB, free: 5.902 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001449/0.1243, allocations: 0.9032 MB / 0.495 GB, free: 4.969 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001942/0.1262, allocations: 1.027 MB / 0.496 GB, free: 3.938 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002614/0.1289, allocations: 1.6 MB / 0.4976 GB, free: 2.332 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007812/0.1296, allocations: 263.9 kB / 0.4978 GB, free: 2.074 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001934/0.1316, allocations: 0.905 MB / 0.4987 GB, free: 1.168 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001612/0.1332, allocations: 1.375 MB / 0.5001 GB, free: 15.79 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002303/0.1355, allocations: 1.767 MB / 0.5018 GB, free: 14.01 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007764/0.1433, allocations: 5.501 MB / 0.5072 GB, free: 8.488 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.886e-06/0.1433, allocations: 3.984 kB / 0.5072 GB, free: 8.484 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1433, allocations: 0 / 0.5072 GB, free: 8.484 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001886/0.1435, allocations: 0 / 0.5072 GB, free: 8.484 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.01441/0.1579, allocations: 5.273 MB / 0.5123 GB, free: 3.137 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.808e-05/0.1579, allocations: 8.031 kB / 0.5123 GB, free: 3.129 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001469/0.1594, allocations: 0.601 MB / 0.5129 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006957/0.1664, allocations: 1.839 MB / 0.5147 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2032/0.3696, allocations: 1.514 MB / 0.5162 GB, free: 32.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002055/0.3698, allocations: 174.5 kB / 0.5164 GB, free: 32.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008005/0.3706, allocations: 224.6 kB / 0.5166 GB, free: 32.64 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01415/0.3847, allocations: 8.952 MB / 0.5253 GB, free: 29 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.069e-05/0.3848, allocations: 34.27 kB / 0.5253 GB, free: 28.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003008/0.3851, allocations: 109.8 kB / 0.5255 GB, free: 28.95 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003018/0.3881, allocations: 2.012 MB / 0.5274 GB, free: 28.55 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01618/0.4043, allocations: 7.971 MB / 0.5352 GB, free: 25.89 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03372/0.438, allocations: 28.54 MB / 0.5631 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00725/0.4453, allocations: 2.717 MB / 0.5657 GB, free: 12.49 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001605/0.4469, allocations: 0.9288 MB / 0.5666 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01037/0.4572, allocations: 6.471 MB / 0.5729 GB, free: 4.562 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.264e-05/0.4573, allocations: 44.75 kB / 0.573 GB, free: 4.512 MB / 398.1 MB Notification: Performance of pre-optimization done (n=155): time 4.098e-06/0.4573, allocations: 0 / 0.573 GB, free: 4.512 MB / 398.1 MB Notification: Performance of matching and sorting (n=193): time 0.01625/0.4735, allocations: 6.533 MB / 0.5794 GB, free: 14.04 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.006e-05/0.4736, allocations: 69.41 kB / 0.5794 GB, free: 13.96 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004402/0.478, allocations: 3.047 MB / 0.5824 GB, free: 10.9 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001732/0.4782, allocations: 49.7 kB / 0.5825 GB, free: 10.85 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001878/0.4801, allocations: 2.446 MB / 0.5848 GB, free: 8.379 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007671/0.4808, allocations: 0.7441 MB / 0.5856 GB, free: 7.629 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001254/0.4821, allocations: 0.9412 MB / 0.5865 GB, free: 6.676 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.4822, allocations: 309.1 kB / 0.5868 GB, free: 6.371 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002472/0.4847, allocations: 1.504 MB / 0.5883 GB, free: 4.859 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004762/0.4894, allocations: 4.082 MB / 0.5922 GB, free: 15.5 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008321/0.4978, allocations: 6.033 MB / 0.5981 GB, free: 8.215 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.728e-05/0.4978, allocations: 24 kB / 0.5982 GB, free: 8.191 MB / 430.1 MB Notification: Performance of matching and sorting (n=615) (initialization): time 0.01205/0.5099, allocations: 5.966 MB / 0.604 GB, free: 2.207 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.789e-05/0.5099, allocations: 44 kB / 0.604 GB, free: 2.164 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000121/0.5101, allocations: 94.78 kB / 0.6041 GB, free: 2.074 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001613/0.5117, allocations: 0.6188 MB / 0.6047 GB, free: 1.449 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003177/0.5149, allocations: 0.9982 MB / 0.6057 GB, free: 460 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01154/0.5264, allocations: 9.267 MB / 0.6147 GB, free: 6.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003328/0.5297, allocations: 239.8 kB / 0.615 GB, free: 6.516 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000642/0.5304, allocations: 279.9 kB / 0.6152 GB, free: 6.242 MB / 446.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.003328/0.5337, allocations: 1.732 MB / 0.6169 GB, free: 4.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005854/0.5343, allocations: 278.1 kB / 0.6172 GB, free: 4.227 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004883/0.5392, allocations: 2.645 MB / 0.6198 GB, free: 1.559 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001081/0.5393, allocations: 31.98 kB / 0.6198 GB, free: 1.527 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.903e-05/0.5393, allocations: 8 kB / 0.6198 GB, free: 1.52 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.631e-05/0.5393, allocations: 7.969 kB / 0.6198 GB, free: 1.512 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01516/0.5545, allocations: 7.248 MB / 0.6269 GB, free: 10.12 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.225e-05/0.5545, allocations: 4 kB / 0.6269 GB, free: 10.12 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009042/0.5554, allocations: 236.5 kB / 0.6271 GB, free: 9.891 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001339/0.5567, allocations: 0.4893 MB / 0.6276 GB, free: 9.395 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001348/0.5569, allocations: 36 kB / 0.6276 GB, free: 9.359 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01021/0.5671, allocations: 7.964 MB / 0.6354 GB, free: 0.9688 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.007e-06/0.5671, allocations: 7.938 kB / 0.6354 GB, free: 0.9609 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006819/0.5739, allocations: 3.998 MB / 0.6393 GB, free: 12.88 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009876/0.5749, allocations: 363.1 kB / 0.6397 GB, free: 12.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005709/0.5755, allocations: 32 kB / 0.6397 GB, free: 12.47 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001225/0.5767, allocations: 83.91 kB / 0.6398 GB, free: 12.39 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002971/0.577, allocations: 129.1 kB / 0.6399 GB, free: 12.27 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001336/0.5771, allocations: 48 kB / 0.64 GB, free: 12.22 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003708/0.5808, allocations: 1.951 MB / 0.6419 GB, free: 10.26 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5808, allocations: 0 / 0.6419 GB, free: 10.26 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004369/0.5852, allocations: 0.8358 MB / 0.6427 GB, free: 9.426 MB / 478.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.007549/0.5927, allocations: 4.649 MB / 0.6472 GB, free: 4.688 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00753/0.6003, allocations: 3.96 MB / 0.6511 GB, free: 0.7109 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/0.6003, allocations: 8.188 kB / 0.6511 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002538/0.6028, allocations: 1.475 MB / 0.6525 GB, free: 15.19 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003016/0.6058, allocations: 447.8 kB / 0.653 GB, free: 14.76 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05632/0.6621, allocations: 33.05 MB / 0.6852 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003442/0.6656, allocations: 2.805 MB / 0.688 GB, free: 7.258 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003208/0.6688, allocations: 1.333 MB / 0.6893 GB, free: 5.918 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002125/0.6709, allocations: 1.483 MB / 0.6907 GB, free: 4.434 MB / 0.5137 GB Notification: Performance of SimCode: time 8.42e-07/0.6709, allocations: 0 / 0.6907 GB, free: 4.434 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3338/1.005, allocations: 56.55 MB / 0.7459 GB, free: 184.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.92/22.92, allocations: 14.27 kB / 0.746 GB, free: 184.5 MB / 0.545 GB " [Timeout remaining time 637] (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: 25.483382335398346] Failed to read output from testmodel.py, exit status != 0: 23.059720100834966 23.079836102 22.932347255 Calling exit ...