Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.001934/0.001934, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002416/0.002416, allocations: 211.1 kB / 23.73 MB, free: 4.387 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.493/1.493, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.Engine1a,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00178/0.00178, allocations: 51.92 kB / 377.7 MB, free: 2.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2588, allocations: 53.36 MB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.02031/0.2791, allocations: 16.73 MB / 447.8 MB, free: 5.855 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01305/0.2922, allocations: 5.802 MB / 453.6 MB, free: 36 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004585/0.2967, allocations: 190.9 kB / 453.8 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01213/0.3089, allocations: 5.673 MB / 459.5 MB, free: 10.16 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00906/0.3179, allocations: 3.416 MB / 462.9 MB, free: 6.727 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00403/0.322, allocations: 1.576 MB / 464.5 MB, free: 5.148 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0187/0.3407, allocations: 12.71 MB / 477.2 MB, free: 8.422 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009229/0.3499, allocations: 5.919 MB / 483.1 MB, free: 2.414 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007425/0.3573, allocations: 3.626 MB / 486.7 MB, free: 14.78 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008422/0.3657, allocations: 4.84 MB / 491.6 MB, free: 9.922 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002542/0.3683, allocations: 0.7148 MB / 492.3 MB, free: 9.207 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004671/0.373, allocations: 1.561 MB / 493.9 MB, free: 7.645 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006883/0.3798, allocations: 4.348 MB / 498.2 MB, free: 3.285 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008581/0.3884, allocations: 3.68 MB / 0.4901 GB, free: 15.58 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01959/0.408, allocations: 14.43 MB / 0.5042 GB, free: 1.098 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.649e-06/0.408, allocations: 4 kB / 0.5042 GB, free: 1.094 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.408, allocations: 0 / 0.5042 GB, free: 1.094 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004664/0.4085, allocations: 0 / 0.5042 GB, free: 1.094 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.03377/0.4423, allocations: 10.48 MB / 0.5145 GB, free: 6.527 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.4423, allocations: 8.031 kB / 0.5145 GB, free: 6.52 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003975/0.4463, allocations: 1.152 MB / 0.5156 GB, free: 5.355 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6655/1.112, allocations: 24.3 MB / 0.5393 GB, free: 95.38 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02018/1.132, allocations: 9.06 MB / 0.5482 GB, free: 92.82 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003243/1.132, allocations: 426.3 kB / 0.5486 GB, free: 92.68 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002237/1.134, allocations: 0.5828 MB / 0.5491 GB, free: 92.51 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02612/1.161, allocations: 16.43 MB / 0.5652 GB, free: 75.98 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003082/1.161, allocations: 99.3 kB / 0.5653 GB, free: 75.89 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009805/1.162, allocations: 271.8 kB / 0.5655 GB, free: 75.67 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00341/1.165, allocations: 2.764 MB / 0.5682 GB, free: 72.91 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02347/1.189, allocations: 12.82 MB / 0.5808 GB, free: 60.09 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.07148/1.26, allocations: 61.36 MB / 0.6407 GB, free: 13.66 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02062/1.281, allocations: 6.904 MB / 0.6474 GB, free: 6.758 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005929/1.287, allocations: 3.93 MB / 0.6513 GB, free: 2.824 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.022/1.309, allocations: 10.15 MB / 0.6612 GB, free: 8.789 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.945e-05/1.309, allocations: 64.5 kB / 0.6612 GB, free: 8.719 MB / 478.1 MB Notification: Performance of pre-optimization done (n=280): time 6.573e-06/1.309, allocations: 0 / 0.6612 GB, free: 8.719 MB / 478.1 MB Notification: Performance of matching and sorting (n=339): time 0.1859/1.495, allocations: 47.79 MB / 0.7079 GB, free: 9.254 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002443/1.495, allocations: 398 kB / 0.7083 GB, free: 8.777 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01292/1.508, allocations: 7.43 MB / 0.7155 GB, free: 1.375 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007488/1.509, allocations: 77.7 kB / 0.7156 GB, free: 1.293 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.004809/1.513, allocations: 5.347 MB / 0.7208 GB, free: 11.91 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001885/1.515, allocations: 1.302 MB / 0.7221 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004267/1.52, allocations: 1.659 MB / 0.7237 GB, free: 8.922 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001322/1.52, allocations: 305.1 kB / 0.724 GB, free: 8.621 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006783/1.527, allocations: 3.963 MB / 0.7279 GB, free: 4.648 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01116/1.538, allocations: 8.813 MB / 0.7365 GB, free: 9.496 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2217/1.759, allocations: 13.48 MB / 0.7497 GB, free: 179.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001255/1.759, allocations: 45.81 kB / 0.7497 GB, free: 179.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03196/1.791, allocations: 17.14 MB / 0.7664 GB, free: 174.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.832e-05/1.792, allocations: 80.75 kB / 0.7665 GB, free: 174.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001505/1.792, allocations: 160.9 kB / 0.7667 GB, free: 174.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01575/1.807, allocations: 5.753 MB / 0.7723 GB, free: 173.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005/1.812, allocations: 1.753 MB / 0.774 GB, free: 173.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03444/1.847, allocations: 31.07 MB / 0.8043 GB, free: 144.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007415/1.854, allocations: 0.525 MB / 0.8048 GB, free: 143.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001537/1.856, allocations: 475.2 kB / 0.8053 GB, free: 143.2 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 727 * Number of states: 0 () * Number of discrete variables: 66 (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 (934): * Single equations (assignments): 928 * 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 {(8,93,51.6%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.005273/1.861, allocations: 3.465 MB / 0.8087 GB, free: 139.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001328/1.862, allocations: 0.6872 MB / 0.8094 GB, free: 139.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02141/1.884, allocations: 11.4 MB / 0.8205 GB, free: 128.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.09e-05/1.884, allocations: 40 kB / 0.8205 GB, free: 128 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-05/1.884, allocations: 16 kB / 0.8205 GB, free: 128 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.439e-05/1.884, allocations: 23.92 kB / 0.8206 GB, free: 128 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04025/1.924, allocations: 23.57 MB / 0.8436 GB, free: 104.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.247e-05/1.924, allocations: 8 kB / 0.8436 GB, free: 104.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001859/1.926, allocations: 424.1 kB / 0.844 GB, free: 103.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01502/1.941, allocations: 5.361 MB / 0.8492 GB, free: 98.36 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006373/1.942, allocations: 60 kB / 0.8493 GB, free: 98.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03299/1.975, allocations: 29.77 MB / 0.8784 GB, free: 68.39 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/1.975, allocations: 15.94 kB / 0.8784 GB, free: 68.38 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02658/2.001, allocations: 16.44 MB / 0.8944 GB, free: 51.86 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002433/2.004, allocations: 0.6469 MB / 0.8951 GB, free: 51.21 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001976/2.006, allocations: 64 kB / 0.8951 GB, free: 51.15 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003921/2.01, allocations: 267.2 kB / 0.8954 GB, free: 50.89 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001001/2.011, allocations: 254.5 kB / 0.8956 GB, free: 50.64 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002602/2.011, allocations: 84 kB / 0.8957 GB, free: 50.56 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006886/2.018, allocations: 4.616 MB / 0.9002 GB, free: 45.98 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/2.018, allocations: 0 / 0.9002 GB, free: 45.98 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00925/2.027, allocations: 1.954 MB / 0.9021 GB, free: 44.03 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (214): * Single equations (assignments): 208 * 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,87,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.02738/2.055, allocations: 17.15 MB / 0.9189 GB, free: 26.69 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01604/2.071, allocations: 10.1 MB / 0.9287 GB, free: 16.54 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.675e-05/2.071, allocations: 8 kB / 0.9287 GB, free: 16.54 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007684/2.078, allocations: 4.364 MB / 0.933 GB, free: 12.12 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0062/2.084, allocations: 1.078 MB / 0.934 GB, free: 11.05 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3437/2.428, allocations: 91.59 MB / 1.023 GB, free: 138 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007782/2.436, allocations: 5.05 MB / 1.028 GB, free: 132.9 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006702/2.443, allocations: 2.629 MB / 1.031 GB, free: 130.4 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005334/2.448, allocations: 3.737 MB / 1.035 GB, free: 126.7 MB / 0.5607 GB Notification: Performance of SimCode: time 1.563e-06/2.448, allocations: 0 / 1.035 GB, free: 126.7 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4511/2.899, allocations: 162 MB / 1.193 GB, free: 176.1 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.97/27.87, allocations: 0.75 kB / 1.193 GB, free: 176.1 MB / 0.5607 GB " [Timeout remaining time 632] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.695606783032417]