Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009843/0.0009843, allocations: 75.77 kB / 22.46 MB, free: 2.094 MB / 18.57 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.0009988/0.0009988, allocations: 164 kB / 25.75 MB, free: 8.949 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8633/0.8633, allocations: 158.6 MB / 187.5 MB, free: 2.949 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.943e-06/1.943e-06, allocations: 0 / 251.1 MB, free: 7.809 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.968e-05/3.162e-05, allocations: 2.312 kB / 251.1 MB, free: 7.805 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.02036/0.0204, allocations: 18.85 MB / 270 MB, free: 4.875 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01119/0.03158, allocations: 5.923 MB / 275.9 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00327/0.03485, allocations: 190.9 kB / 276.1 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006567/0.04142, allocations: 6.3 MB / 282.4 MB, free: 8.426 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005849/0.04727, allocations: 3.585 MB / 286 MB, free: 4.824 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002138/0.0494, allocations: 1.829 MB / 287.8 MB, free: 2.992 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01074/0.06015, allocations: 13.27 MB / 301.1 MB, free: 5.703 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007918/0.06807, allocations: 7.759 MB / 308.8 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007991/0.07606, allocations: 5.606 MB / 314.4 MB, free: 8.238 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006837/0.08289, allocations: 5.796 MB / 320.2 MB, free: 2.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001786/0.08468, allocations: 0.75 MB / 321 MB, free: 1.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003582/0.08826, allocations: 1.666 MB / 322.6 MB, free: 12 kB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003921/0.09218, allocations: 4.637 MB / 327.3 MB, free: 11.36 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003857/0.09604, allocations: 2.828 MB / 330.1 MB, free: 8.527 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01027/0.1063, allocations: 9.024 MB / 339.1 MB, free: 15.47 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.1063, allocations: 0 / 339.1 MB, free: 15.47 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1063, allocations: 0 / 339.1 MB, free: 15.47 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003694/0.1067, allocations: 0 / 339.1 MB, free: 15.47 MB / 330.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.01629/0.123, allocations: 10.67 MB / 349.8 MB, free: 4.711 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.123, allocations: 11.98 kB / 349.8 MB, free: 4.699 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2146/0.3376, allocations: 6.2 MB / 356 MB, free: 100.9 MB / 330.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01124/0.3489, allocations: 7.087 MB / 363.1 MB, free: 99.52 MB / 330.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001924/0.3491, allocations: 426.4 kB / 363.5 MB, free: 99.15 MB / 330.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009375/0.35, allocations: 0.5866 MB / 364.1 MB, free: 98.62 MB / 330.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01299/0.363, allocations: 10.3 MB / 374.4 MB, free: 87.1 MB / 330.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002069/0.3632, allocations: 87.34 kB / 374.5 MB, free: 87.02 MB / 330.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004779/0.3637, allocations: 264.5 kB / 374.7 MB, free: 86.8 MB / 330.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002152/0.3658, allocations: 2.772 MB / 377.5 MB, free: 84.05 MB / 330.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0119/0.3777, allocations: 5.41 MB / 382.9 MB, free: 78.67 MB / 330.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.05092/0.4286, allocations: 70.03 MB / 452.9 MB, free: 7.344 MB / 330.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01008/0.4387, allocations: 4.911 MB / 457.9 MB, free: 2.398 MB / 330.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001965/0.4407, allocations: 1.394 MB / 459.2 MB, free: 0.9883 MB / 330.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01045/0.4511, allocations: 7.457 MB / 466.7 MB, free: 9.629 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.312e-05/0.4512, allocations: 71.33 kB / 466.8 MB, free: 9.551 MB / 346.8 MB Notification: Performance of pre-optimization done (n=280): time 5.25e-06/0.4512, allocations: 0 / 466.8 MB, free: 9.551 MB / 346.8 MB Notification: Performance of matching and sorting (n=340): time 0.2177/0.6689, allocations: 38.98 MB / 0.4939 GB, free: 114.3 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.763e-05/0.669, allocations: 398.2 kB / 0.4943 GB, free: 113.8 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006655/0.6757, allocations: 6.139 MB / 0.5003 GB, free: 113.1 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007092/0.6764, allocations: 79.33 kB / 0.5003 GB, free: 113.1 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002443/0.6788, allocations: 5.465 MB / 0.5057 GB, free: 110.4 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001417/0.6802, allocations: 1.347 MB / 0.507 GB, free: 109.4 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001837/0.6821, allocations: 1.949 MB / 0.5089 GB, free: 108.4 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 4.296e-05/0.6821, allocations: 482.8 kB / 0.5094 GB, free: 107.9 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002396/0.6845, allocations: 1.523 MB / 0.5109 GB, free: 107.3 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003984/0.6885, allocations: 8.697 MB / 0.5193 GB, free: 95.46 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007848/0.6963, allocations: 10.95 MB / 0.53 GB, free: 81.59 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001228/0.6965, allocations: 47.98 kB / 0.5301 GB, free: 81.55 MB / 362.8 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.02113/0.7176, allocations: 12.3 MB / 0.5421 GB, free: 69.2 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.146e-05/0.7177, allocations: 72 kB / 0.5422 GB, free: 69.12 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001444/0.7178, allocations: 167.2 kB / 0.5423 GB, free: 68.96 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01207/0.7299, allocations: 5.13 MB / 0.5473 GB, free: 63.82 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00407/0.734, allocations: 1.93 MB / 0.5492 GB, free: 61.89 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01778/0.7517, allocations: 14.44 MB / 0.5633 GB, free: 47.12 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00582/0.7576, allocations: 0.7216 MB / 0.564 GB, free: 46.39 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001002/0.7586, allocations: 496 kB / 0.5645 GB, free: 45.91 MB / 362.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 733 * Number of states: 0 () * Number of discrete variables: 66 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1049): * Single equations (assignments): 1043 * 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%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.00255/0.7611, allocations: 0.8588 MB / 0.5653 GB, free: 45.04 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001659/0.7628, allocations: 0.7223 MB / 0.566 GB, free: 44.32 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01241/0.7752, allocations: 7.322 MB / 0.5732 GB, free: 36.93 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.446e-05/0.7753, allocations: 36 kB / 0.5732 GB, free: 36.89 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-05/0.7753, allocations: 16 kB / 0.5732 GB, free: 36.88 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.849e-05/0.7754, allocations: 23.94 kB / 0.5733 GB, free: 36.85 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02714/0.8025, allocations: 16.97 MB / 0.5898 GB, free: 19.46 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.262e-05/0.8025, allocations: 8.125 kB / 0.5898 GB, free: 19.45 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001194/0.8037, allocations: 423.3 kB / 0.5902 GB, free: 19.04 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01108/0.8148, allocations: 4.802 MB / 0.5949 GB, free: 14.23 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005438/0.8153, allocations: 60 kB / 0.595 GB, free: 14.17 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01665/0.832, allocations: 13.66 MB / 0.6083 GB, free: 160 kB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/0.832, allocations: 7.938 kB / 0.6083 GB, free: 152 kB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1573/0.9893, allocations: 9.039 MB / 0.6172 GB, free: 110.9 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00357/0.9929, allocations: 1.314 MB / 0.6185 GB, free: 110.9 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001663/0.9946, allocations: 68.06 kB / 0.6185 GB, free: 110.9 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003383/0.9979, allocations: 430.2 kB / 0.6189 GB, free: 110.9 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009209/0.9989, allocations: 259.2 kB / 0.6192 GB, free: 110.9 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002177/0.9991, allocations: 95.33 kB / 0.6193 GB, free: 110.9 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.004212/1.003, allocations: 2.902 MB / 0.6221 GB, free: 110.6 MB / 378.8 MB Notification: Performance of sort global known variables: time 2.4e-07/1.003, allocations: 0 / 0.6221 GB, free: 110.6 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.008402/1.012, allocations: 2.45 MB / 0.6245 GB, free: 110.6 MB / 378.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 (215): * Single equations (assignments): 209 * 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.0008288/1.013, allocations: 236.8 kB / 0.6247 GB, free: 110.6 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.01016/1.023, allocations: 6.688 MB / 0.6313 GB, free: 109.3 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 1.385e-05/1.023, allocations: 3.844 kB / 0.6313 GB, free: 109.3 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004117/1.027, allocations: 2.972 MB / 0.6342 GB, free: 108.6 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004908/1.032, allocations: 0.9444 MB / 0.6351 GB, free: 108.1 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02531/1.057, allocations: 15.7 MB / 0.6504 GB, free: 95.46 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003379/1.06, allocations: 2.357 MB / 0.6527 GB, free: 94.01 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.004388/1.065, allocations: 2.147 MB / 0.6548 GB, free: 92.02 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001238/1.066, allocations: 391.5 kB / 0.6552 GB, free: 91.65 MB / 378.8 MB Notification: Performance of SimCode: time 2.174e-06/1.066, allocations: 0 / 0.6552 GB, free: 91.65 MB / 378.8 MB Notification: Performance of Templates: time 0.1083/1.174, allocations: 97.13 MB / 0.75 GB, free: 10.88 MB / 394.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.66745375120081]