Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.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.001788/0.001788, allocations: 123 kB / 17.79 MB, free: 5.266 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.001876/0.001876, allocations: 189.2 kB / 20.73 MB, free: 2.328 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.417/1.417, allocations: 225.6 MB / 249.1 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] 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(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002105/0.002105, allocations: 55.91 kB / 365.7 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1059, allocations: 52.15 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.02072/0.1266, allocations: 19.5 MB / 437.3 MB, free: 9.012 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01323/0.1399, allocations: 6.004 MB / 443.3 MB, free: 2.988 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003583/0.1435, allocations: 190.9 kB / 443.5 MB, free: 2.801 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2022/0.3456, allocations: 5.913 MB / 449.4 MB, free: 7.312 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007788/0.3534, allocations: 3.434 MB / 452.9 MB, free: 7.164 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003252/0.3567, allocations: 1.574 MB / 454.4 MB, free: 7.137 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01641/0.3731, allocations: 12.35 MB / 466.8 MB, free: 6.988 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008206/0.3813, allocations: 6.41 MB / 473.2 MB, free: 3.828 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007147/0.3884, allocations: 3.637 MB / 476.8 MB, free: 2 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00769/0.3961, allocations: 5.131 MB / 482 MB, free: 15.14 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002319/0.3985, allocations: 0.7141 MB / 482.7 MB, free: 15.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004561/0.403, allocations: 1.725 MB / 484.4 MB, free: 14.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006042/0.4091, allocations: 4.376 MB / 488.8 MB, free: 10.67 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008079/0.4171, allocations: 4.761 MB / 493.5 MB, free: 5.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01928/0.4364, allocations: 14.41 MB / 0.496 GB, free: 7.789 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.195e-06/0.4364, allocations: 0 / 0.496 GB, free: 7.789 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.4364, allocations: 0 / 0.496 GB, free: 7.789 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005119/0.4369, allocations: 0 / 0.496 GB, free: 7.789 MB / 398.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.03206/0.469, allocations: 10.58 MB / 0.5064 GB, free: 13.25 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.251e-05/0.4691, allocations: 12.03 kB / 0.5064 GB, free: 13.24 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003485/0.4725, allocations: 1.142 MB / 0.5075 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.289/0.7615, allocations: 24.3 MB / 0.5312 GB, free: 3.809 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02305/0.7846, allocations: 9.81 MB / 0.5408 GB, free: 10.08 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000458/0.785, allocations: 437.2 kB / 0.5412 GB, free: 9.699 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002155/0.7872, allocations: 0.5843 MB / 0.5418 GB, free: 9.164 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03579/0.823, allocations: 16.18 MB / 0.5576 GB, free: 8.086 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004987/0.8235, allocations: 91.36 kB / 0.5577 GB, free: 7.996 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002006/0.8255, allocations: 268.1 kB / 0.5579 GB, free: 7.785 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005155/0.8306, allocations: 2.766 MB / 0.5606 GB, free: 5.027 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03014/0.8608, allocations: 12.86 MB / 0.5732 GB, free: 8.168 MB / 478.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.09757/0.9583, allocations: 66.25 MB / 0.6379 GB, free: 4.215 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.39/1.348, allocations: 7.341 MB / 0.6451 GB, free: 175.4 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005505/1.354, allocations: 3.926 MB / 0.6489 GB, free: 175.3 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01928/1.373, allocations: 11.69 MB / 0.6603 GB, free: 169.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.237e-05/1.373, allocations: 67.53 kB / 0.6604 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=280): time 5.59e-06/1.373, allocations: 3.656 kB / 0.6604 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=339): time 0.1739/1.547, allocations: 47.75 MB / 0.707 GB, free: 144.1 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/1.547, allocations: 398.1 kB / 0.7074 GB, free: 143.6 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01162/1.559, allocations: 7.171 MB / 0.7144 GB, free: 136.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000862/1.56, allocations: 77.7 kB / 0.7145 GB, free: 136.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003115/1.563, allocations: 5.354 MB / 0.7197 GB, free: 131.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001521/1.564, allocations: 1.306 MB / 0.721 GB, free: 130.4 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004301/1.569, allocations: 1.652 MB / 0.7226 GB, free: 128.8 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.121e-05/1.569, allocations: 305.1 kB / 0.7229 GB, free: 128.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005118/1.574, allocations: 3.959 MB / 0.7267 GB, free: 124.5 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006948/1.581, allocations: 8.591 MB / 0.7351 GB, free: 113.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0125/1.593, allocations: 13.49 MB / 0.7483 GB, free: 97.88 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001298/1.593, allocations: 44 kB / 0.7483 GB, free: 97.84 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.0343/1.628, allocations: 17.14 MB / 0.7651 GB, free: 80.66 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002143/1.628, allocations: 80.25 kB / 0.7651 GB, free: 80.58 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000279/1.628, allocations: 167.9 kB / 0.7653 GB, free: 80.41 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01696/1.645, allocations: 5.76 MB / 0.7709 GB, free: 74.64 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005408/1.651, allocations: 1.751 MB / 0.7726 GB, free: 72.88 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03844/1.689, allocations: 31.67 MB / 0.8036 GB, free: 40.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007784/1.697, allocations: 0.5228 MB / 0.8041 GB, free: 40.28 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001564/1.698, allocations: 472.1 kB / 0.8045 GB, free: 39.82 MB / 0.5294 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.006966/1.705, allocations: 3.464 MB / 0.8079 GB, free: 36.35 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00192/1.707, allocations: 0.6869 MB / 0.8086 GB, free: 35.66 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02588/1.733, allocations: 11.4 MB / 0.8197 GB, free: 24.18 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.958e-05/1.733, allocations: 39.98 kB / 0.8198 GB, free: 24.14 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-05/1.733, allocations: 23.94 kB / 0.8198 GB, free: 24.12 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.009e-05/1.733, allocations: 11.95 kB / 0.8198 GB, free: 24.11 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.262/1.995, allocations: 24.66 MB / 0.8439 GB, free: 154.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.835e-05/1.995, allocations: 9.344 kB / 0.8439 GB, free: 154.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002313/1.998, allocations: 418.6 kB / 0.8443 GB, free: 154.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01798/2.016, allocations: 5.375 MB / 0.8495 GB, free: 154.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007694/2.016, allocations: 64.3 kB / 0.8496 GB, free: 154.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03797/2.054, allocations: 30.35 MB / 0.8792 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.235e-06/2.054, allocations: 12.16 kB / 0.8792 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02781/2.082, allocations: 16.45 MB / 0.8953 GB, free: 135.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002026/2.084, allocations: 0.7195 MB / 0.896 GB, free: 135.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002079/2.086, allocations: 62.86 kB / 0.8961 GB, free: 135.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004398/2.091, allocations: 269.8 kB / 0.8963 GB, free: 135.1 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001252/2.092, allocations: 241.1 kB / 0.8966 GB, free: 135 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005605/2.092, allocations: 93.86 kB / 0.8966 GB, free: 135 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.008267/2.101, allocations: 4.622 MB / 0.9012 GB, free: 132.7 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/2.101, allocations: 0 / 0.9012 GB, free: 132.7 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009903/2.111, allocations: 1.972 MB / 0.9031 GB, free: 132.2 MB / 0.5294 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.02982/2.14, allocations: 17.15 MB / 0.9198 GB, free: 115.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01552/2.156, allocations: 10.1 MB / 0.9297 GB, free: 105.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.204e-05/2.156, allocations: 4 kB / 0.9297 GB, free: 105.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007649/2.164, allocations: 4.372 MB / 0.934 GB, free: 100.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00837/2.172, allocations: 1.079 MB / 0.935 GB, free: 99.83 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1513/2.323, allocations: 91.51 MB / 1.024 GB, free: 1.066 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01102/2.334, allocations: 5.535 MB / 1.03 GB, free: 11.51 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007994/2.342, allocations: 2.618 MB / 1.032 GB, free: 8.887 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007199/2.349, allocations: 3.741 MB / 1.036 GB, free: 5.145 MB / 0.545 GB Notification: Performance of SimCode: time 1.533e-06/2.349, allocations: 0 / 1.036 GB, free: 5.145 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4246/2.774, allocations: 158.6 MB / 1.191 GB, free: 52.35 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 40.37/43.15, allocations: 11.44 kB / 1.191 GB, free: 52.34 MB / 0.545 GB " [Timeout remaining time 617] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 45.861963821109384]