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.0009313/0.0009313, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007983/0.0007983, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9079/0.9079, allocations: 173.4 MB / 200.4 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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 1.363e-06/1.363e-06, allocations: 0 / 318.5 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.046e-05/1.182e-05, allocations: 2.281 kB / 318.5 MB, free: 6.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.01073/0.01074, allocations: 16.79 MB / 335.3 MB, free: 5.473 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009433/0.02018, allocations: 5.786 MB / 341 MB, free: 15.67 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00229/0.02247, allocations: 186.9 kB / 341.2 MB, free: 15.48 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005143/0.02761, allocations: 6.008 MB / 347.2 MB, free: 9.457 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005088/0.0327, allocations: 3.55 MB / 350.8 MB, free: 5.891 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001912/0.03461, allocations: 1.786 MB / 352.6 MB, free: 4.102 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.009634/0.04424, allocations: 14.28 MB / 366.8 MB, free: 5.805 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006025/0.05027, allocations: 7.471 MB / 374.3 MB, free: 14.24 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005123/0.05539, allocations: 5.555 MB / 379.9 MB, free: 8.672 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004474/0.05987, allocations: 5.632 MB / 385.5 MB, free: 3.027 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007012/0.06057, allocations: 0.7461 MB / 386.2 MB, free: 2.281 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00162/0.06219, allocations: 1.666 MB / 387.9 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002278/0.06447, allocations: 4.625 MB / 392.5 MB, free: 11.98 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001853/0.06632, allocations: 3.074 MB / 395.6 MB, free: 8.895 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008116/0.07444, allocations: 14.76 MB / 410.4 MB, free: 10.09 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/0.07444, allocations: 7.984 kB / 410.4 MB, free: 10.08 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.07444, allocations: 0 / 410.4 MB, free: 10.08 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002006/0.07465, allocations: 0 / 410.4 MB, free: 10.08 MB / 378.7 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.01482/0.08946, allocations: 10.83 MB / 421.2 MB, free: 15.16 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.08951, allocations: 16.92 kB / 421.2 MB, free: 15.15 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001179/0.09069, allocations: 1.144 MB / 422.4 MB, free: 13.99 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1283/0.219, allocations: 25.5 MB / 447.9 MB, free: 4.453 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2608/0.4798, allocations: 8.052 MB / 455.9 MB, free: 113.9 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002178/0.48, allocations: 430.4 kB / 456.3 MB, free: 113.7 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001519/0.4815, allocations: 0.5827 MB / 456.9 MB, free: 113.6 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01687/0.4984, allocations: 16.44 MB / 473.4 MB, free: 100.7 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001898/0.4986, allocations: 97.47 kB / 473.5 MB, free: 100.7 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004418/0.499, allocations: 269.2 kB / 473.7 MB, free: 100.5 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002156/0.5012, allocations: 2.763 MB / 476.5 MB, free: 97.7 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01546/0.5166, allocations: 12.85 MB / 489.3 MB, free: 84.85 MB / 410.8 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.05021/0.5669, allocations: 62.86 MB / 0.5393 GB, free: 21.44 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01083/0.5777, allocations: 7.157 MB / 0.5462 GB, free: 14.29 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003182/0.5809, allocations: 3.94 MB / 0.5501 GB, free: 10.34 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0122/0.5931, allocations: 10.64 MB / 0.5605 GB, free: 15.81 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.09e-05/0.5931, allocations: 68.5 kB / 0.5605 GB, free: 15.73 MB / 426.8 MB Notification: Performance of pre-optimization done (n=280): time 5.791e-06/0.5931, allocations: 0 / 0.5605 GB, free: 15.73 MB / 426.8 MB Notification: Performance of matching and sorting (n=339): time 0.1026/0.6957, allocations: 49.79 MB / 0.6092 GB, free: 14.43 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001538/0.6959, allocations: 402.1 kB / 0.6096 GB, free: 13.95 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01035/0.7062, allocations: 8.508 MB / 0.6179 GB, free: 5.469 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008024/0.707, allocations: 77.7 kB / 0.6179 GB, free: 5.387 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003091/0.7101, allocations: 5.319 MB / 0.6231 GB, free: 24 kB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.1382/0.8484, allocations: 1.283 MB / 0.6244 GB, free: 163.9 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002281/0.8507, allocations: 1.63 MB / 0.626 GB, free: 163.9 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 2.425e-05/0.8507, allocations: 301.1 kB / 0.6263 GB, free: 163.6 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00311/0.8538, allocations: 3.96 MB / 0.6301 GB, free: 162.6 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00438/0.8582, allocations: 8.816 MB / 0.6387 GB, free: 154.7 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009129/0.8673, allocations: 13.48 MB / 0.6519 GB, free: 144.8 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001084/0.8674, allocations: 47.16 kB / 0.652 GB, free: 144.8 MB / 474.8 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.01989/0.8873, allocations: 17.13 MB / 0.6687 GB, free: 132.1 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.855e-05/0.8874, allocations: 76.78 kB / 0.6688 GB, free: 132 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001155/0.8875, allocations: 160 kB / 0.6689 GB, free: 131.9 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008954/0.8964, allocations: 5.753 MB / 0.6745 GB, free: 126.3 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003367/0.8998, allocations: 1.758 MB / 0.6762 GB, free: 124.5 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02301/0.9228, allocations: 31.1 MB / 0.7066 GB, free: 93.28 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005501/0.9283, allocations: 0.6309 MB / 0.7072 GB, free: 92.67 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009485/0.9293, allocations: 472 kB / 0.7077 GB, free: 92.21 MB / 474.8 MB 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.004023/0.9333, allocations: 3.461 MB / 0.7111 GB, free: 88.84 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001178/0.9345, allocations: 0.6838 MB / 0.7117 GB, free: 88.23 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01241/0.9469, allocations: 11.41 MB / 0.7229 GB, free: 76.75 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-05/0.9469, allocations: 39.72 kB / 0.7229 GB, free: 76.72 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.068e-05/0.9469, allocations: 16 kB / 0.7229 GB, free: 76.7 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.361e-05/0.947, allocations: 23.88 kB / 0.723 GB, free: 76.68 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02656/0.9736, allocations: 23.85 MB / 0.7462 GB, free: 52.45 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.89e-05/0.9736, allocations: 8 kB / 0.7463 GB, free: 52.44 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001156/0.9747, allocations: 423.3 kB / 0.7467 GB, free: 52.03 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008266/0.983, allocations: 5.359 MB / 0.7519 GB, free: 46.66 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005329/0.9835, allocations: 64 kB / 0.752 GB, free: 46.59 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02185/1.005, allocations: 29.83 MB / 0.7811 GB, free: 16.43 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/1.005, allocations: 13.91 kB / 0.7811 GB, free: 16.42 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1818/1.187, allocations: 16.43 MB / 0.7971 GB, free: 145 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002079/1.189, allocations: 0.7733 MB / 0.7979 GB, free: 145 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0012/1.19, allocations: 64.88 kB / 0.798 GB, free: 145 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002244/1.193, allocations: 365.8 kB / 0.7983 GB, free: 145 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000593/1.193, allocations: 251.3 kB / 0.7985 GB, free: 145 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001692/1.193, allocations: 94.67 kB / 0.7986 GB, free: 145 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.005326/1.199, allocations: 5.455 MB / 0.804 GB, free: 143.9 MB / 474.8 MB Notification: Performance of sort global known variables: time 3e-07/1.199, allocations: 3.75 kB / 0.804 GB, free: 143.9 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.007249/1.206, allocations: 2.289 MB / 0.8062 GB, free: 143.7 MB / 474.8 MB 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.01791/1.224, allocations: 17.17 MB / 0.823 GB, free: 137.3 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01139/1.235, allocations: 10.08 MB / 0.8328 GB, free: 129.8 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.269e-05/1.235, allocations: 4 kB / 0.8328 GB, free: 129.8 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004827/1.24, allocations: 4.36 MB / 0.8371 GB, free: 126.1 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005708/1.246, allocations: 1.095 MB / 0.8381 GB, free: 125.2 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1092/1.355, allocations: 95.35 MB / 0.9313 GB, free: 24.09 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004935/1.36, allocations: 5.06 MB / 0.9362 GB, free: 18.98 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.004416/1.364, allocations: 2.657 MB / 0.9388 GB, free: 16.32 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003872/1.368, allocations: 3.777 MB / 0.9425 GB, free: 12.54 MB / 474.8 MB Notification: Performance of SimCode: time 2.625e-06/1.368, allocations: 4 kB / 0.9425 GB, free: 12.54 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2882/1.657, allocations: 167.2 MB / 1.106 GB, free: 37.35 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.66/16.32, allocations: 0 / 1.106 GB, free: 37.35 MB / 490.8 MB " [Timeout remaining time 644] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","/var/lib/jenkins/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 19.202577210962772]