Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001394/0.001394, allocations: 202.2 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008661/0.0008662, allocations: 96.66 kB / 299.9 MB, free: 5.352 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000339/0.0003391, allocations: 4 kB / 360.6 MB, free: 8.504 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2364/0.2368, allocations: 51.42 MB / 412 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002309/0.2392, allocations: 2.77 MB / 414.8 MB, free: 23.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.2404, allocations: 1.385 MB / 416.2 MB, free: 21.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.2406, allocations: 8 kB / 416.2 MB, free: 21.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002411/0.2408, allocations: 71.48 kB / 416.3 MB, free: 21.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002838/0.2411, allocations: 198.8 kB / 416.5 MB, free: 21.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002825/0.2414, allocations: 207.7 kB / 416.7 MB, free: 21.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004364/0.2419, allocations: 0.7842 MB / 417.5 MB, free: 20.44 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001726/0.242, allocations: 116.8 kB / 417.6 MB, free: 20.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003144/0.2424, allocations: 334.8 kB / 417.9 MB, free: 19.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003029/0.2427, allocations: 374.5 kB / 418.3 MB, free: 19.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.859e-05/0.2428, allocations: 32 kB / 418.3 MB, free: 19.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001636/0.2429, allocations: 79.98 kB / 418.4 MB, free: 19.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001415/0.2431, allocations: 147.4 kB / 418.5 MB, free: 19.37 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001951/0.2433, allocations: 316.1 kB / 418.8 MB, free: 19.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004518/0.2437, allocations: 0.7177 MB / 419.5 MB, free: 18.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2437, allocations: 0 / 419.5 MB, free: 18.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.2438, allocations: 0 / 419.5 MB, free: 18.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.2438, allocations: 0 / 419.5 MB, free: 18.34 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: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.001243/0.245, allocations: 0.8653 MB / 420.4 MB, free: 17.42 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.081e-05/0.2451, allocations: 8.031 kB / 420.4 MB, free: 17.41 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002371/0.2453, allocations: 84.17 kB / 420.5 MB, free: 17.33 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000358/0.2457, allocations: 393.9 kB / 420.9 MB, free: 16.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.54e-05/0.2457, allocations: 33.38 kB / 420.9 MB, free: 16.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.981e-05/0.2458, allocations: 52.28 kB / 421 MB, free: 16.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008605/0.2467, allocations: 0.6113 MB / 421.6 MB, free: 16.2 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/0.2467, allocations: 4 kB / 421.6 MB, free: 16.19 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.692e-05/0.2467, allocations: 20 kB / 421.6 MB, free: 16.17 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.2467, allocations: 15.98 kB / 421.6 MB, free: 16.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009763/0.2477, allocations: 0.5854 MB / 422.2 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001756/0.2495, allocations: 1.379 MB / 423.6 MB, free: 14.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008463/0.2504, allocations: 0.501 MB / 424.1 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004909/0.2509, allocations: 314.4 kB / 424.4 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.795e-05/0.2509, allocations: 8.562 kB / 424.4 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.643e-05/0.2509, allocations: 43.05 kB / 424.4 MB, free: 13.25 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 2.174e-06/0.2509, allocations: 0 / 424.4 MB, free: 13.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.0052/0.2562, allocations: 3.01 MB / 427.5 MB, free: 10.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.56e-05/0.2562, allocations: 60.06 kB / 427.5 MB, free: 10.04 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002856/0.2565, allocations: 361.6 kB / 427.9 MB, free: 9.676 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.946e-05/0.2565, allocations: 45.7 kB / 427.9 MB, free: 9.625 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.038e-05/0.2566, allocations: 201.3 kB / 428.1 MB, free: 9.426 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001292/0.2568, allocations: 252.6 kB / 428.4 MB, free: 9.176 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.828e-05/0.2568, allocations: 16 kB / 428.4 MB, free: 9.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.663e-05/0.2569, allocations: 354.8 kB / 428.7 MB, free: 8.805 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005084/0.2574, allocations: 305.8 kB / 429 MB, free: 8.504 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005203/0.2579, allocations: 369.4 kB / 429.4 MB, free: 8.137 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007858/0.2587, allocations: 496.7 kB / 429.9 MB, free: 7.641 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2587, allocations: 0 / 429.9 MB, free: 7.641 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001415/0.2602, allocations: 0.9117 MB / 430.8 MB, free: 6.723 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.2602, allocations: 7.938 kB / 430.8 MB, free: 6.715 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.2602, allocations: 4 kB / 430.8 MB, free: 6.711 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001014/0.2612, allocations: 0.5005 MB / 431.3 MB, free: 6.207 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003226/0.2616, allocations: 99.89 kB / 431.4 MB, free: 6.109 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001161/0.2627, allocations: 1.088 MB / 432.5 MB, free: 4.996 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000621/0.2634, allocations: 143.9 kB / 432.6 MB, free: 4.855 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.871e-05/0.2634, allocations: 24 kB / 432.6 MB, free: 4.832 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 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * 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,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0002058/0.2636, allocations: 195.9 kB / 432.8 MB, free: 4.633 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.071e-05/0.2637, allocations: 55.34 kB / 432.9 MB, free: 4.578 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001191/0.2638, allocations: 76.98 kB / 433 MB, free: 4.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.2639, allocations: 4 kB / 433 MB, free: 4.496 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.2639, allocations: 4 kB / 433 MB, free: 4.492 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.2639, allocations: 3.984 kB / 433 MB, free: 4.488 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002125/0.266, allocations: 1.617 MB / 434.6 MB, free: 2.812 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.266, allocations: 0 / 434.6 MB, free: 2.812 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003701/0.2664, allocations: 95.88 kB / 434.7 MB, free: 2.719 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009107/0.2673, allocations: 480.6 kB / 435.1 MB, free: 2.246 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.108e-05/0.2674, allocations: 27.97 kB / 435.2 MB, free: 2.219 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001018/0.2684, allocations: 1.058 MB / 436.2 MB, free: 1.137 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2684, allocations: 0 / 436.2 MB, free: 1.137 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002069/0.2705, allocations: 1.303 MB / 437.5 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002872/0.2708, allocations: 192.4 kB / 437.7 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001135/0.2709, allocations: 31.92 kB / 437.7 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006344/0.2716, allocations: 139.9 kB / 437.9 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002974/0.2719, allocations: 136.3 kB / 438 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.424e-05/0.2719, allocations: 31.97 kB / 438.1 MB, free: 15.27 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002563/0.2722, allocations: 247.2 kB / 438.3 MB, free: 15.03 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2722, allocations: 0 / 438.3 MB, free: 15.03 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005257/0.2727, allocations: 159.9 kB / 438.4 MB, free: 14.88 MB / 314.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,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000964/0.2737, allocations: 452.2 kB / 438.9 MB, free: 14.54 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001695/0.2754, allocations: 0.7661 MB / 439.7 MB, free: 13.77 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.2754, allocations: 0 / 439.7 MB, free: 13.77 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008745/0.2763, allocations: 436.6 kB / 440.1 MB, free: 13.34 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006964/0.277, allocations: 105.5 kB / 440.2 MB, free: 13.24 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002867/0.2799, allocations: 1.743 MB / 441.9 MB, free: 11.47 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004351/0.2803, allocations: 0.8639 MB / 442.8 MB, free: 10.59 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002215/0.2806, allocations: 52.53 kB / 442.8 MB, free: 10.53 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001293/0.2807, allocations: 47.34 kB / 442.9 MB, free: 10.48 MB / 314.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2807, allocations: 4 kB / 442.9 MB, free: 10.48 MB / 314.7 MB Notification: Performance of Templates: time 0.01967/0.3004, allocations: 12.4 MB / 455.3 MB, free: 14.14 MB / 330.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches