Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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.001473/0.001473, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.001555/0.001555, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 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.459/1.459, allocations: 177.1 MB / 204.6 MB, free: 5.578 MB / 186.7 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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5028,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5028,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 0 / 272.4 MB, free: 1.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.572e-05/2.719e-05, allocations: 2.312 kB / 272.4 MB, free: 1.773 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.1346/0.1346, allocations: 20.12 MB / 292.5 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01379/0.1484, allocations: 6.831 MB / 299.3 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004291/0.1527, allocations: 217.8 kB / 299.5 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01393/0.1666, allocations: 8.232 MB / 307.8 MB, free: 9.906 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009928/0.1766, allocations: 3.783 MB / 311.5 MB, free: 7.512 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004747/0.1813, allocations: 2.301 MB / 313.8 MB, free: 6.043 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.02051/0.2018, allocations: 15.72 MB / 329.6 MB, free: 7.766 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01727/0.2191, allocations: 9.756 MB / 339.3 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01725/0.2363, allocations: 6.593 MB / 345.9 MB, free: 7.324 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01305/0.2494, allocations: 6.524 MB / 352.4 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004073/0.2535, allocations: 1.051 MB / 353.5 MB, free: 15.73 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006714/0.2602, allocations: 2.142 MB / 355.6 MB, free: 13.59 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.008755/0.2689, allocations: 5.456 MB / 361.1 MB, free: 8.117 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008481/0.2774, allocations: 3.472 MB / 364.6 MB, free: 4.637 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02708/0.3045, allocations: 17.85 MB / 382.4 MB, free: 2.73 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.3045, allocations: 0 / 382.4 MB, free: 2.73 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3045, allocations: 3.938 kB / 382.4 MB, free: 2.727 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0005969/0.3051, allocations: 0 / 382.4 MB, free: 2.727 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: 2752 * Number of variables: 2752 Notification: Performance of Generate backend data structure: time 0.03634/0.3415, allocations: 11.74 MB / 394.2 MB, free: 6.887 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.3415, allocations: 16.03 kB / 394.2 MB, free: 6.871 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04887/0.3904, allocations: 6.538 MB / 400.7 MB, free: 328 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02434/0.4147, allocations: 8.757 MB / 409.5 MB, free: 7.461 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006862/0.4154, allocations: 0.5295 MB / 410 MB, free: 6.93 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003042/0.4184, allocations: 0.7306 MB / 410.7 MB, free: 6.199 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04683/0.4653, allocations: 20.18 MB / 430.9 MB, free: 0.8984 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004875/0.4657, allocations: 91.36 kB / 431 MB, free: 0.8086 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002311/0.4681, allocations: 323.8 kB / 431.3 MB, free: 0.4922 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2175/0.6856, allocations: 2.834 MB / 434.1 MB, free: 113 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03286/0.7184, allocations: 16.55 MB / 450.7 MB, free: 108 MB / 378.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.08376/0.8022, allocations: 69.06 MB / 0.5076 GB, free: 38.99 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02007/0.8223, allocations: 7.768 MB / 0.5152 GB, free: 31.24 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004803/0.8271, allocations: 4.661 MB / 0.5197 GB, free: 26.55 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02006/0.8471, allocations: 13.99 MB / 0.5334 GB, free: 12.75 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.101e-05/0.8472, allocations: 72.66 kB / 0.5334 GB, free: 12.66 MB / 378.8 MB Notification: Performance of pre-optimization done (n=327): time 6.252e-06/0.8472, allocations: 0 / 0.5334 GB, free: 12.66 MB / 378.8 MB Notification: Performance of matching and sorting (n=439): time 0.4125/1.26, allocations: 81.91 MB / 0.6134 GB, free: 123.1 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001411/1.26, allocations: 412.7 kB / 0.6138 GB, free: 122.6 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0139/1.274, allocations: 7.708 MB / 0.6214 GB, free: 116.2 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001515/1.275, allocations: 97.7 kB / 0.6214 GB, free: 116.1 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00392/1.279, allocations: 5.704 MB / 0.627 GB, free: 111.1 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002613/1.282, allocations: 1.638 MB / 0.6286 GB, free: 109.5 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004449/1.286, allocations: 2.067 MB / 0.6306 GB, free: 107.4 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 4.771e-05/1.286, allocations: 301.1 kB / 0.6309 GB, free: 107.1 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01095/1.297, allocations: 6.118 MB / 0.6369 GB, free: 101 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01386/1.311, allocations: 11.25 MB / 0.6479 GB, free: 87.32 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02828/1.339, allocations: 17.98 MB / 0.6654 GB, free: 67 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001542/1.34, allocations: 48 kB / 0.6655 GB, free: 66.96 MB / 410.8 MB Notification: Performance of matching and sorting (n=1318) (initialization): time 0.07916/1.419, allocations: 26.18 MB / 0.6911 GB, free: 40.75 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.847e-05/1.419, allocations: 78.03 kB / 0.6911 GB, free: 40.68 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001492/1.419, allocations: 168.8 kB / 0.6913 GB, free: 40.51 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03273/1.452, allocations: 11.21 MB / 0.7022 GB, free: 29.31 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007157/1.459, allocations: 2.19 MB / 0.7044 GB, free: 27.12 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2143/1.673, allocations: 43.54 MB / 0.7469 GB, free: 106.2 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009671/1.683, allocations: 0.8679 MB / 0.7477 GB, free: 106.1 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001757/1.685, allocations: 0.5212 MB / 0.7483 GB, free: 106 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 755 * Number of states: 0 () * Number of discrete variables: 73 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.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 (1156): * Single equations (assignments): 1151 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,134,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006603/1.691, allocations: 4.086 MB / 0.7522 GB, free: 104.4 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002253/1.693, allocations: 0.8055 MB / 0.753 GB, free: 104.4 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03734/1.731, allocations: 19.12 MB / 0.7717 GB, free: 97.53 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.904e-05/1.731, allocations: 47.66 kB / 0.7718 GB, free: 97.49 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.24e-05/1.731, allocations: 24 kB / 0.7718 GB, free: 97.46 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.679e-05/1.731, allocations: 19.92 kB / 0.7718 GB, free: 97.45 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05921/1.79, allocations: 32.53 MB / 0.8036 GB, free: 65.09 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.752e-05/1.79, allocations: 15.94 kB / 0.8036 GB, free: 65.07 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003324/1.794, allocations: 0.7329 MB / 0.8043 GB, free: 64.34 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03166/1.825, allocations: 10.85 MB / 0.8149 GB, free: 53.58 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001531/1.827, allocations: 87.81 kB / 0.815 GB, free: 53.5 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0488/1.876, allocations: 39.99 MB / 0.854 GB, free: 13.61 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.684e-06/1.876, allocations: 11.94 kB / 0.854 GB, free: 13.6 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1864/2.062, allocations: 27.36 MB / 0.8808 GB, free: 128 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002367/2.064, allocations: 0.741 MB / 0.8815 GB, free: 127.9 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002669/2.067, allocations: 93.09 kB / 0.8816 GB, free: 127.9 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006522/2.074, allocations: 0.5684 MB / 0.8821 GB, free: 127.8 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002118/2.076, allocations: 328.1 kB / 0.8824 GB, free: 127.8 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006533/2.076, allocations: 122 kB / 0.8826 GB, free: 127.7 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.007251/2.084, allocations: 4.787 MB / 0.8872 GB, free: 126.2 MB / 426.8 MB Notification: Performance of sort global known variables: time 9.1e-08/2.084, allocations: 0 / 0.8872 GB, free: 126.2 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.0128/2.096, allocations: 2.877 MB / 0.89 GB, free: 125.9 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * 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 (302): * Single equations (assignments): 298 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,121,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001438/2.098, allocations: 304.5 kB / 0.8903 GB, free: 125.8 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.02023/2.118, allocations: 14.03 MB / 0.904 GB, free: 120.4 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 2.282e-05/2.118, allocations: 3.438 kB / 0.904 GB, free: 120.4 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009153/2.127, allocations: 5.933 MB / 0.9098 GB, free: 118 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008272/2.135, allocations: 1.056 MB / 0.9109 GB, free: 117.6 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03774/2.173, allocations: 23.41 MB / 0.9337 GB, free: 98.53 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008459/2.182, allocations: 5.957 MB / 0.9395 GB, free: 93.43 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.006765/2.188, allocations: 2.928 MB / 0.9424 GB, free: 90.62 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001738/2.19, allocations: 432.4 kB / 0.9428 GB, free: 90.2 MB / 426.8 MB Notification: Performance of SimCode: time 1.813e-06/2.19, allocations: 0 / 0.9428 GB, free: 90.2 MB / 426.8 MB Notification: Performance of Templates: time 0.2966/2.487, allocations: 125.1 MB / 1.065 GB, free: 106.9 MB / 426.8 MB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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: 10.004508537007496]