Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.001321/0.001321, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.001503/0.001503, allocations: 210.4 kB / 23.73 MB, free: 4.41 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.463/1.463, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001755/0.001755, allocations: 51.92 kB / 377.7 MB, free: 2.938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2445/0.2463, allocations: 53.37 MB / 431.1 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.0215/0.2678, allocations: 17.63 MB / 448.7 MB, free: 4.926 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0136/0.2814, allocations: 6.012 MB / 454.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00353/0.2849, allocations: 202.8 kB / 455 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01197/0.2969, allocations: 6.157 MB / 461.1 MB, free: 8.52 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008737/0.3056, allocations: 3.521 MB / 464.6 MB, free: 4.984 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003739/0.3093, allocations: 1.666 MB / 466.3 MB, free: 3.316 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01718/0.3265, allocations: 12.98 MB / 479.3 MB, free: 6.316 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009761/0.3363, allocations: 6.271 MB / 485.5 MB, free: 15.96 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006901/0.3432, allocations: 3.809 MB / 489.4 MB, free: 12.14 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008387/0.3516, allocations: 5.047 MB / 494.4 MB, free: 7.074 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002404/0.354, allocations: 0.7461 MB / 495.2 MB, free: 6.328 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004177/0.3582, allocations: 1.6 MB / 496.8 MB, free: 4.727 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005741/0.3639, allocations: 4.542 MB / 0.4895 GB, free: 176 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008083/0.372, allocations: 3.824 MB / 0.4933 GB, free: 12.32 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02118/0.3932, allocations: 14.95 MB / 0.5079 GB, free: 13.32 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.516e-05/0.3932, allocations: 0 / 0.5079 GB, free: 13.32 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.969e-06/0.3932, allocations: 0 / 0.5079 GB, free: 13.32 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0009055/0.3941, allocations: 0 / 0.5079 GB, free: 13.32 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.03732/0.4314, allocations: 10.86 MB / 0.5185 GB, free: 2.375 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.036e-05/0.4315, allocations: 8.031 kB / 0.5185 GB, free: 2.367 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004054/0.4355, allocations: 1.197 MB / 0.5197 GB, free: 1.16 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6868/1.122, allocations: 24.33 MB / 0.5434 GB, free: 95.46 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01829/1.141, allocations: 9.239 MB / 0.5524 GB, free: 89.46 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002727/1.141, allocations: 450.1 kB / 0.5529 GB, free: 89.07 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001813/1.143, allocations: 0.6158 MB / 0.5535 GB, free: 88.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02642/1.169, allocations: 17.04 MB / 0.5701 GB, free: 70.49 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000272/1.169, allocations: 99.3 kB / 0.5702 GB, free: 70.39 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007962/1.17, allocations: 279.1 kB / 0.5705 GB, free: 70.17 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003374/1.174, allocations: 2.861 MB / 0.5733 GB, free: 67.33 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02248/1.196, allocations: 13.23 MB / 0.5862 GB, free: 54.1 MB / 446.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07065/1.267, allocations: 63.15 MB / 0.6479 GB, free: 5.859 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02052/1.287, allocations: 7.195 MB / 0.6549 GB, free: 14.62 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005763/1.293, allocations: 4.052 MB / 0.6588 GB, free: 10.57 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02006/1.313, allocations: 10.48 MB / 0.6691 GB, free: 212 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.794e-05/1.313, allocations: 68.56 kB / 0.6691 GB, free: 136 kB / 478.1 MB Notification: Performance of pre-optimization done (n=293): time 6.602e-06/1.313, allocations: 0 / 0.6691 GB, free: 136 kB / 478.1 MB Notification: Performance of matching and sorting (n=359): time 0.196/1.509, allocations: 50.23 MB / 0.7182 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003065/1.509, allocations: 402.2 kB / 0.7186 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01523/1.525, allocations: 7.583 MB / 0.726 GB, free: 6.094 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008902/1.526, allocations: 85.64 kB / 0.7261 GB, free: 6.004 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00517/1.531, allocations: 5.515 MB / 0.7315 GB, free: 456 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002026/1.533, allocations: 1.38 MB / 0.7328 GB, free: 15.05 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002995/1.536, allocations: 1.703 MB / 0.7345 GB, free: 13.33 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001334/1.536, allocations: 301.1 kB / 0.7348 GB, free: 13.04 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006728/1.543, allocations: 4.128 MB / 0.7388 GB, free: 8.898 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.241/1.784, allocations: 9.092 MB / 0.7477 GB, free: 181.7 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0175/1.801, allocations: 13.94 MB / 0.7613 GB, free: 172.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002516/1.801, allocations: 50.31 kB / 0.7613 GB, free: 172.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=1106) (initialization): time 0.03618/1.838, allocations: 17.82 MB / 0.7787 GB, free: 167.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001406/1.838, allocations: 74.81 kB / 0.7788 GB, free: 167.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002227/1.838, allocations: 167.9 kB / 0.779 GB, free: 167.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0287/1.867, allocations: 6.042 MB / 0.7849 GB, free: 164.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009113/1.876, allocations: 1.823 MB / 0.7866 GB, free: 162.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05455/1.93, allocations: 32.29 MB / 0.8182 GB, free: 130.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01118/1.941, allocations: 0.5437 MB / 0.8187 GB, free: 130.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001998/1.943, allocations: 488 kB / 0.8192 GB, free: 129.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 743 * Number of states: 0 () * Number of discrete variables: 72 (rod3.color[3],rod3.color[2],rod3.color[1],rod1.color[3],rod1.color[2],rod1.color[1],cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[1],crank2.color[3],crank2.color[2],crank2.color[1],crank2.body.sphereColor[3],crank2.body.sphereColor[2],crank2.body.sphereColor[1],crank1.color[3],crank1.color[2],crank1.color[1],crank1.body.sphereColor[3],crank1.body.sphereColor[2],crank1.body.sphereColor[1],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (967): * Single equations (assignments): 961 * Array equations: 3 * 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 {(7,97,55.1%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.007919/1.951, allocations: 3.577 MB / 0.8227 GB, free: 126.2 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002054/1.953, allocations: 0.7052 MB / 0.8234 GB, free: 125.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0242/1.978, allocations: 12.01 MB / 0.8351 GB, free: 113.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.165e-05/1.978, allocations: 39.05 kB / 0.8351 GB, free: 113.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-05/1.978, allocations: 20 kB / 0.8351 GB, free: 113.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.361e-05/1.978, allocations: 15.94 kB / 0.8352 GB, free: 113.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04302/2.021, allocations: 24.76 MB / 0.8593 GB, free: 88.77 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.105e-05/2.021, allocations: 12.12 kB / 0.8594 GB, free: 88.75 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00221/2.023, allocations: 463.3 kB / 0.8598 GB, free: 88.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01619/2.039, allocations: 5.694 MB / 0.8654 GB, free: 82.59 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006459/2.04, allocations: 68.25 kB / 0.8654 GB, free: 82.53 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03501/2.075, allocations: 31.11 MB / 0.8958 GB, free: 51.29 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/2.075, allocations: 7.938 kB / 0.8958 GB, free: 51.28 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02797/2.103, allocations: 17.35 MB / 0.9127 GB, free: 33.88 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00214/2.105, allocations: 0.6602 MB / 0.9134 GB, free: 33.23 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00194/2.107, allocations: 67.98 kB / 0.9135 GB, free: 33.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004247/2.111, allocations: 287.6 kB / 0.9137 GB, free: 32.88 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001224/2.112, allocations: 262.6 kB / 0.914 GB, free: 32.62 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002908/2.113, allocations: 92 kB / 0.9141 GB, free: 32.53 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007209/2.12, allocations: 4.71 MB / 0.9187 GB, free: 27.86 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.31e-07/2.12, allocations: 0 / 0.9187 GB, free: 27.86 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009088/2.129, allocations: 2.035 MB / 0.9207 GB, free: 25.84 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 2 (inertia.phi,inertia.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 (231): * Single equations (assignments): 225 * Array equations: 3 * 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 {(7,90,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02936/2.158, allocations: 18.08 MB / 0.9383 GB, free: 7.582 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01764/2.176, allocations: 10.5 MB / 0.9486 GB, free: 13.04 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.271e-05/2.176, allocations: 3.938 kB / 0.9486 GB, free: 13.03 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.224/2.4, allocations: 4.598 MB / 0.9531 GB, free: 199.9 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007501/2.407, allocations: 1.109 MB / 0.9541 GB, free: 199.8 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1404/2.548, allocations: 95.07 MB / 1.047 GB, free: 116.7 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007146/2.555, allocations: 5.265 MB / 1.052 GB, free: 111.4 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.00656/2.562, allocations: 2.717 MB / 1.055 GB, free: 108.8 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006268/2.568, allocations: 3.877 MB / 1.059 GB, free: 104.9 MB / 0.5607 GB Notification: Performance of SimCode: time 1.182e-06/2.568, allocations: 0 / 1.059 GB, free: 104.9 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4689/3.037, allocations: 169.2 MB / 1.224 GB, free: 143.1 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.02/28.06, allocations: 6.406 kB / 1.224 GB, free: 143.1 MB / 0.5607 GB " [Timeout remaining time 632] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 9.94431e-05 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 30.89625777862966]