Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001024/0.001025, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.148/1.148, allocations: 205.1 MB / 223.8 MB, free: 8.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008136/0.0008135, allocations: 108.8 kB / 271.2 MB, free: 8.434 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007324/0.0007324, allocations: 43.94 kB / 327.2 MB, free: 328 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.184/0.1847, allocations: 46.62 MB / 373.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003248/0.188, allocations: 3.123 MB / 376.9 MB, free: 43.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001266/0.1893, allocations: 1.069 MB / 378 MB, free: 42.51 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001335/0.1895, allocations: 5.031 kB / 378 MB, free: 42.51 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001965/0.1897, allocations: 63.41 kB / 378.1 MB, free: 42.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001935/0.1899, allocations: 133.4 kB / 378.2 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004139/0.1903, allocations: 245.9 kB / 378.5 MB, free: 42.15 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004932/0.1908, allocations: 0.7659 MB / 379.2 MB, free: 41.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001859/0.191, allocations: 125.6 kB / 379.3 MB, free: 41.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003006/0.1913, allocations: 331.5 kB / 379.7 MB, free: 41.46 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003008/0.1916, allocations: 358.5 kB / 380 MB, free: 41.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.788e-05/0.1917, allocations: 34.62 kB / 380 MB, free: 41.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001642/0.1919, allocations: 77.94 kB / 380.1 MB, free: 41.21 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001154/0.192, allocations: 138.9 kB / 380.3 MB, free: 41.1 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002031/0.1922, allocations: 275.6 kB / 380.5 MB, free: 40.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004527/0.1927, allocations: 0.6762 MB / 381.2 MB, free: 40.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.1927, allocations: 1.344 kB / 381.2 MB, free: 40.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.1927, allocations: 0 / 381.2 MB, free: 40.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.188e-06/0.1927, allocations: 0 / 381.2 MB, free: 40.41 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001389/0.1941, allocations: 0.8855 MB / 382.1 MB, free: 39.69 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.078e-05/0.1941, allocations: 9.5 kB / 382.1 MB, free: 39.69 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001013/0.1942, allocations: 57.16 kB / 382.2 MB, free: 39.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003315/0.1946, allocations: 358.6 kB / 382.5 MB, free: 39.33 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.078e-05/0.1946, allocations: 39 kB / 382.5 MB, free: 39.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.967e-05/0.1947, allocations: 51.86 kB / 382.6 MB, free: 39.28 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008876/0.1956, allocations: 0.6155 MB / 383.2 MB, free: 38.9 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.021e-05/0.1956, allocations: 9.938 kB / 383.2 MB, free: 38.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.607e-05/0.1957, allocations: 15.19 kB / 383.2 MB, free: 38.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.1957, allocations: 10.12 kB / 383.2 MB, free: 38.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/0.1967, allocations: 0.6017 MB / 383.8 MB, free: 38.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001827/0.1985, allocations: 1.331 MB / 385.2 MB, free: 37.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000804/0.1994, allocations: 462.6 kB / 385.6 MB, free: 37.37 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004773/0.1998, allocations: 305.8 kB / 385.9 MB, free: 37.22 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.213e-05/0.1999, allocations: 10.38 kB / 385.9 MB, free: 37.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.386e-05/0.1999, allocations: 43.16 kB / 386 MB, free: 37.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 1.633e-06/0.1999, allocations: 0 / 386 MB, free: 37.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=64): time 0.004887/0.2048, allocations: 2.871 MB / 388.9 MB, free: 34.15 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.956e-05/0.2049, allocations: 55.97 kB / 388.9 MB, free: 34.09 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002117/0.2051, allocations: 333.6 kB / 389.2 MB, free: 33.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.499e-05/0.2051, allocations: 49.7 kB / 389.3 MB, free: 33.69 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.608e-05/0.2052, allocations: 193.2 kB / 389.5 MB, free: 33.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/0.2053, allocations: 225 kB / 389.7 MB, free: 33.28 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001714/0.2055, allocations: 142.5 kB / 389.8 MB, free: 33.13 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.322e-05/0.2055, allocations: 358.7 kB / 390.2 MB, free: 32.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004997/0.2061, allocations: 321.8 kB / 390.5 MB, free: 32.46 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004896/0.2066, allocations: 381 kB / 390.9 MB, free: 32.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007286/0.2073, allocations: 0.5069 MB / 391.4 MB, free: 31.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2073, allocations: 0 / 391.4 MB, free: 31.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001306/0.2086, allocations: 0.9232 MB / 392.3 MB, free: 30.64 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.2086, allocations: 11.94 kB / 392.3 MB, free: 30.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.2087, allocations: 4.031 kB / 392.3 MB, free: 30.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009366/0.2096, allocations: 0.7229 MB / 393 MB, free: 29.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003232/0.2099, allocations: 103.9 kB / 393.1 MB, free: 29.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001033/0.211, allocations: 1.088 MB / 394.2 MB, free: 28.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005752/0.2116, allocations: 115.9 kB / 394.3 MB, free: 28.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.762e-05/0.2116, allocations: 20 kB / 394.4 MB, free: 28.55 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 (clutch3.mode,$PRE.clutch3.mode,clutch3.locked,clutch3.startBackward,$PRE.clutch3.startBackward,clutch3.startForward,$PRE.clutch3.startForward,clutch3.free,clutch2.mode,$PRE.clutch2.mode,clutch2.locked,clutch2.startBackward,$PRE.clutch2.startBackward,clutch2.startForward,$PRE.clutch2.startForward,clutch2.free,clutch1.mode,$PRE.clutch1.mode,clutch1.locked,clutch1.startBackward,$PRE.clutch1.startBackward,clutch1.startForward,$PRE.clutch1.startForward,clutch1.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * Array equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0001678/0.2118, allocations: 180 kB / 394.5 MB, free: 28.36 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.066e-05/0.2119, allocations: 47.44 kB / 394.6 MB, free: 28.31 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001369/0.212, allocations: 72.75 kB / 394.6 MB, free: 28.23 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.309e-06/0.212, allocations: 8 kB / 394.7 MB, free: 28.22 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.212, allocations: 3.938 kB / 394.7 MB, free: 28.22 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.2121, allocations: 3.984 kB / 394.7 MB, free: 28.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002016/0.2141, allocations: 1.567 MB / 396.2 MB, free: 26.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.2141, allocations: 3.938 kB / 396.2 MB, free: 26.58 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003503/0.2144, allocations: 87.89 kB / 396.3 MB, free: 26.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008301/0.2153, allocations: 0.7073 MB / 397 MB, free: 25.79 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.96e-05/0.2153, allocations: 27.95 kB / 397.1 MB, free: 25.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009412/0.2163, allocations: 1.065 MB / 398.1 MB, free: 24.67 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2163, allocations: 0 / 398.1 MB, free: 24.67 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01437/0.2307, allocations: 10.24 MB / 408.4 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001937/0.2309, allocations: 192.4 kB / 408.5 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.164e-05/0.231, allocations: 24 kB / 408.6 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005461/0.2315, allocations: 99.8 kB / 408.7 MB, free: 13.78 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002102/0.2318, allocations: 128.3 kB / 408.8 MB, free: 13.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.561e-05/0.2318, allocations: 35.97 kB / 408.8 MB, free: 13.62 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001488/0.232, allocations: 235.2 kB / 409.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.232, allocations: 0 / 409.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000615/0.2326, allocations: 252.1 kB / 409.3 MB, free: 13.14 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * Array equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002151/0.2328, allocations: 167.2 kB / 409.5 MB, free: 12.97 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001191/0.234, allocations: 0.7722 MB / 410.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.234, allocations: 0 / 410.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006258/0.2347, allocations: 429.8 kB / 410.7 MB, free: 11.78 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005424/0.2352, allocations: 89.39 kB / 410.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002254/0.2375, allocations: 2.16 MB / 412.9 MB, free: 9.484 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001897/0.2377, allocations: 0.8598 MB / 413.8 MB, free: 8.598 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001736/0.2379, allocations: 52.17 kB / 413.8 MB, free: 8.543 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001411/0.238, allocations: 47.41 kB / 413.9 MB, free: 8.5 MB / 298.7 MB Notification: Performance of SimCode: time 2.6e-07/0.238, allocations: 0 / 413.9 MB, free: 8.5 MB / 298.7 MB Notification: Performance of Templates: time 0.01733/0.2554, allocations: 16.78 MB / 430.6 MB, free: 7.73 MB / 314.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches