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.001855/0.001855, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.003062/0.003062, allocations: 189.9 kB / 23.72 MB, free: 4.684 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.381/1.381, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.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.001611/0.001611, allocations: 47.92 kB / 370.5 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2237/0.2253, allocations: 52.19 MB / 422.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.02151/0.2468, allocations: 19.54 MB / 442.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0127/0.2595, allocations: 6.013 MB / 448.2 MB, free: 4.941 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003332/0.2629, allocations: 194.9 kB / 448.4 MB, free: 4.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01185/0.2747, allocations: 5.946 MB / 454.3 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008538/0.2833, allocations: 3.451 MB / 457.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003427/0.2867, allocations: 1.568 MB / 459.4 MB, free: 9.754 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0169/0.3036, allocations: 12.4 MB / 471.8 MB, free: 13.33 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008293/0.3119, allocations: 5.958 MB / 477.7 MB, free: 7.285 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006004/0.3179, allocations: 3.634 MB / 481.4 MB, free: 3.641 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007734/0.3256, allocations: 5.126 MB / 486.5 MB, free: 14.5 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001801/0.3274, allocations: 0.7187 MB / 487.2 MB, free: 13.78 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003463/0.3309, allocations: 1.729 MB / 488.9 MB, free: 12.05 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004619/0.3355, allocations: 4.379 MB / 493.3 MB, free: 7.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006103/0.3416, allocations: 4.76 MB / 498.1 MB, free: 2.875 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01706/0.3587, allocations: 14.41 MB / 0.5005 GB, free: 4.406 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.3587, allocations: 0 / 0.5005 GB, free: 4.406 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3587, allocations: 0 / 0.5005 GB, free: 4.406 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003595/0.359, allocations: 0 / 0.5005 GB, free: 4.406 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.02775/0.3868, allocations: 10.51 MB / 0.5107 GB, free: 9.812 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.3868, allocations: 8.031 kB / 0.5107 GB, free: 9.805 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002546/0.3894, allocations: 1.144 MB / 0.5119 GB, free: 8.648 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2677/0.6571, allocations: 24.3 MB / 0.5356 GB, free: 320 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3678/1.025, allocations: 9.676 MB / 0.545 GB, free: 98.45 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002637/1.025, allocations: 424.9 kB / 0.5454 GB, free: 98.3 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001617/1.027, allocations: 0.5878 MB / 0.546 GB, free: 98.14 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02092/1.048, allocations: 16.17 MB / 0.5618 GB, free: 86.05 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002173/1.048, allocations: 99.3 kB / 0.5619 GB, free: 85.95 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005561/1.049, allocations: 266 kB / 0.5622 GB, free: 85.7 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003146/1.052, allocations: 2.767 MB / 0.5649 GB, free: 82.95 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02015/1.072, allocations: 12.85 MB / 0.5774 GB, free: 70.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.05938/1.131, allocations: 66.29 MB / 0.6421 GB, free: 2.227 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01786/1.149, allocations: 6.915 MB / 0.6489 GB, free: 11.28 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005468/1.155, allocations: 3.924 MB / 0.6527 GB, free: 7.344 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0194/1.174, allocations: 11.03 MB / 0.6635 GB, free: 12.42 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.686e-05/1.174, allocations: 68.5 kB / 0.6636 GB, free: 12.35 MB / 478.1 MB Notification: Performance of pre-optimization done (n=280): time 5.751e-06/1.174, allocations: 0 / 0.6636 GB, free: 12.35 MB / 478.1 MB Notification: Performance of matching and sorting (n=339): time 0.1716/1.346, allocations: 47.6 MB / 0.7101 GB, free: 12.98 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002743/1.346, allocations: 402 kB / 0.7104 GB, free: 12.5 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01274/1.359, allocations: 7.164 MB / 0.7174 GB, free: 5.371 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007823/1.359, allocations: 77.7 kB / 0.7175 GB, free: 5.289 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.004914/1.364, allocations: 5.355 MB / 0.7227 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002/1.366, allocations: 1.302 MB / 0.724 GB, free: 14.58 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004064/1.37, allocations: 1.652 MB / 0.7256 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001293/1.37, allocations: 301.1 kB / 0.7259 GB, free: 12.62 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006827/1.377, allocations: 3.959 MB / 0.7298 GB, free: 8.648 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2197/1.597, allocations: 8.587 MB / 0.7382 GB, free: 174 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01392/1.611, allocations: 13.49 MB / 0.7513 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001661/1.611, allocations: 46.75 kB / 0.7514 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.02988/1.641, allocations: 17.13 MB / 0.7681 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001059/1.641, allocations: 77.34 kB / 0.7682 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001452/1.641, allocations: 158.3 kB / 0.7683 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01504/1.656, allocations: 5.779 MB / 0.774 GB, free: 158.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005496/1.662, allocations: 1.747 MB / 0.7757 GB, free: 156.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03432/1.696, allocations: 31.36 MB / 0.8063 GB, free: 125.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007355/1.703, allocations: 0.5289 MB / 0.8068 GB, free: 124.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001221/1.705, allocations: 476 kB / 0.8073 GB, free: 124.3 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.004956/1.71, allocations: 3.46 MB / 0.8107 GB, free: 121 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001326/1.711, allocations: 0.683 MB / 0.8113 GB, free: 120.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02043/1.731, allocations: 11.41 MB / 0.8225 GB, free: 109.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.693e-05/1.731, allocations: 36 kB / 0.8225 GB, free: 109.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-05/1.731, allocations: 20 kB / 0.8225 GB, free: 109.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.695e-05/1.731, allocations: 15.94 kB / 0.8225 GB, free: 109.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03774/1.769, allocations: 24.63 MB / 0.8466 GB, free: 84.16 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-05/1.769, allocations: 8 kB / 0.8466 GB, free: 84.16 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001796/1.771, allocations: 419.3 kB / 0.847 GB, free: 83.75 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01441/1.785, allocations: 5.384 MB / 0.8522 GB, free: 78.35 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005847/1.786, allocations: 60 kB / 0.8523 GB, free: 78.29 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03287/1.819, allocations: 30.04 MB / 0.8816 GB, free: 48.11 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/1.819, allocations: 8 kB / 0.8816 GB, free: 48.11 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0252/1.844, allocations: 16.45 MB / 0.8977 GB, free: 31.57 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001809/1.846, allocations: 0.6475 MB / 0.8983 GB, free: 30.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001617/1.848, allocations: 67.98 kB / 0.8984 GB, free: 30.86 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003871/1.851, allocations: 263.3 kB / 0.8987 GB, free: 30.61 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009464/1.852, allocations: 262.4 kB / 0.8989 GB, free: 30.35 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003849/1.853, allocations: 88 kB / 0.899 GB, free: 30.27 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007063/1.86, allocations: 4.62 MB / 0.9035 GB, free: 25.68 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/1.86, allocations: 0 / 0.9035 GB, free: 25.68 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009197/1.869, allocations: 1.977 MB / 0.9054 GB, free: 23.71 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.02825/1.897, allocations: 17.14 MB / 0.9222 GB, free: 6.375 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01702/1.914, allocations: 10.1 MB / 0.932 GB, free: 12.24 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.189e-05/1.914, allocations: 0 / 0.932 GB, free: 12.24 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.2191/2.133, allocations: 4.38 MB / 0.9363 GB, free: 192.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00648/2.14, allocations: 1.084 MB / 0.9374 GB, free: 192.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.126/2.266, allocations: 91.65 MB / 1.027 GB, free: 115.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005853/2.272, allocations: 5.524 MB / 1.032 GB, free: 109.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005682/2.277, allocations: 2.629 MB / 1.035 GB, free: 106.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003653/2.281, allocations: 3.737 MB / 1.038 GB, free: 103.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.022e-06/2.281, allocations: 0 / 1.038 GB, free: 103.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4267/2.708, allocations: 162.4 MB / 1.197 GB, free: 140.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 40.41/43.12, allocations: 6.531 kB / 1.197 GB, free: 140.8 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 & /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/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 47.29153187898919]