Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001327/0.001327, allocations: 176 kB / 17.36 MB, free: 4.449 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.362/1.362, allocations: 205.6 MB / 223.7 MB, free: 8.941 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007729/0.0007729, allocations: 90.34 kB / 272.1 MB, free: 8.129 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002412/0.0002412, allocations: 4 kB / 329 MB, free: 15.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2173/0.2176, allocations: 47.58 MB / 376.6 MB, free: 45.58 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002575/0.2202, allocations: 2.64 MB / 379.2 MB, free: 43.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00179/0.222, allocations: 1.132 MB / 380.4 MB, free: 42.56 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002128/0.2223, allocations: 5.469 kB / 380.4 MB, free: 42.56 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002186/0.2225, allocations: 54.98 kB / 380.4 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002467/0.2227, allocations: 137.3 kB / 380.6 MB, free: 42.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005577/0.2233, allocations: 237.1 kB / 380.8 MB, free: 42.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006458/0.224, allocations: 0.7612 MB / 381.6 MB, free: 41.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002344/0.2242, allocations: 123.6 kB / 381.7 MB, free: 41.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000419/0.2246, allocations: 313.3 kB / 382 MB, free: 41.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004332/0.2251, allocations: 353.8 kB / 382.3 MB, free: 41.31 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.962e-05/0.2252, allocations: 30.72 kB / 382.4 MB, free: 41.31 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002251/0.2254, allocations: 77.03 kB / 382.4 MB, free: 41.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001538/0.2256, allocations: 123.7 kB / 382.6 MB, free: 41.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002904/0.2259, allocations: 291 kB / 382.8 MB, free: 40.98 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006313/0.2265, allocations: 0.669 MB / 383.5 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.2265, allocations: 5.062 kB / 383.5 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.2265, allocations: 0 / 383.5 MB, free: 40.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.909e-06/0.2265, allocations: 0 / 383.5 MB, free: 40.48 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.001547/0.2281, allocations: 0.813 MB / 384.3 MB, free: 39.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/0.2282, allocations: 9.406 kB / 384.3 MB, free: 39.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001165/0.2283, allocations: 60.66 kB / 384.4 MB, free: 39.81 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004379/0.2287, allocations: 362.6 kB / 384.7 MB, free: 39.47 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.337e-05/0.2288, allocations: 35.69 kB / 384.8 MB, free: 39.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.4e-05/0.2289, allocations: 44.56 kB / 384.8 MB, free: 39.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00107/0.23, allocations: 0.6217 MB / 385.4 MB, free: 39.05 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.391e-05/0.23, allocations: 18.02 kB / 385.5 MB, free: 39.04 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.374e-05/0.2301, allocations: 20.12 kB / 385.5 MB, free: 39.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.543e-05/0.2301, allocations: 10.22 kB / 385.5 MB, free: 39.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001189/0.2313, allocations: 0.6133 MB / 386.1 MB, free: 38.74 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001938/0.2332, allocations: 1.364 MB / 387.5 MB, free: 37.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000806/0.234, allocations: 478.9 kB / 387.9 MB, free: 36.96 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004583/0.2345, allocations: 310.4 kB / 388.2 MB, free: 36.65 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.417e-05/0.2346, allocations: 16.55 kB / 388.3 MB, free: 36.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.577e-05/0.2346, allocations: 39.06 kB / 388.3 MB, free: 36.59 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 2.454e-06/0.2346, allocations: 0 / 388.3 MB, free: 36.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=64): time 0.005289/0.2399, allocations: 3.027 MB / 391.3 MB, free: 33.42 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.416e-05/0.2399, allocations: 59.97 kB / 391.4 MB, free: 33.35 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002536/0.2402, allocations: 325.6 kB / 391.7 MB, free: 33.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.203e-05/0.2403, allocations: 53.69 kB / 391.8 MB, free: 32.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.39e-05/0.2403, allocations: 185.3 kB / 391.9 MB, free: 32.78 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.2405, allocations: 228.9 kB / 392.2 MB, free: 32.55 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.824e-05/0.2405, allocations: 12 kB / 392.2 MB, free: 32.54 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.723e-05/0.2406, allocations: 354.7 kB / 392.5 MB, free: 32.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005118/0.2411, allocations: 337.8 kB / 392.8 MB, free: 31.86 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000523/0.2416, allocations: 389 kB / 393.2 MB, free: 31.47 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007965/0.2424, allocations: 0.5187 MB / 393.7 MB, free: 30.95 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.2425, allocations: 4 kB / 393.7 MB, free: 30.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001448/0.2439, allocations: 0.9388 MB / 394.7 MB, free: 29.99 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.2439, allocations: 12.03 kB / 394.7 MB, free: 29.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.244, allocations: 0 / 394.7 MB, free: 29.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001048/0.245, allocations: 0.7267 MB / 395.4 MB, free: 29.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003531/0.2454, allocations: 107.9 kB / 395.5 MB, free: 29.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001075/0.2465, allocations: 1.096 MB / 396.6 MB, free: 28.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006743/0.2472, allocations: 147.9 kB / 396.8 MB, free: 27.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.285e-05/0.2472, allocations: 20 kB / 396.8 MB, free: 27.86 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 (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.0002211/0.2474, allocations: 188 kB / 397 MB, free: 27.66 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.905e-05/0.2475, allocations: 47.44 kB / 397 MB, free: 27.62 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001195/0.2477, allocations: 68.75 kB / 397.1 MB, free: 27.54 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.315e-06/0.2477, allocations: 8 kB / 397.1 MB, free: 27.54 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.2477, allocations: 0 / 397.1 MB, free: 27.54 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.2477, allocations: 3.984 kB / 397.1 MB, free: 27.53 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002174/0.2499, allocations: 1.586 MB / 398.7 MB, free: 25.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.2499, allocations: 0 / 398.7 MB, free: 25.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003805/0.2503, allocations: 91.89 kB / 398.8 MB, free: 25.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009095/0.2512, allocations: 0.7091 MB / 399.5 MB, free: 25.08 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.3e-05/0.2513, allocations: 31.89 kB / 399.5 MB, free: 25.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009749/0.2522, allocations: 1.06 MB / 400.6 MB, free: 23.96 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.2523, allocations: 4 kB / 400.6 MB, free: 23.96 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001885/0.2541, allocations: 1.323 MB / 401.9 MB, free: 22.61 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001926/0.2544, allocations: 188.4 kB / 402.1 MB, free: 22.41 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.647e-05/0.2545, allocations: 24 kB / 402.1 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005749/0.255, allocations: 151.8 kB / 402.3 MB, free: 22.24 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002267/0.2553, allocations: 128.3 kB / 402.4 MB, free: 22.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.865e-05/0.2553, allocations: 27.97 kB / 402.4 MB, free: 22.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001637/0.2555, allocations: 231.2 kB / 402.6 MB, free: 21.86 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2555, allocations: 0 / 402.6 MB, free: 21.86 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004565/0.256, allocations: 156 kB / 402.8 MB, free: 21.71 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.0002078/0.2562, allocations: 158.4 kB / 402.9 MB, free: 21.55 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001291/0.2575, allocations: 0.7883 MB / 403.7 MB, free: 20.76 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.2575, allocations: 0 / 403.7 MB, free: 20.76 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006663/0.2582, allocations: 441.8 kB / 404.2 MB, free: 20.33 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005785/0.2588, allocations: 81.47 kB / 404.2 MB, free: 20.25 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002158/0.2609, allocations: 1.718 MB / 406 MB, free: 18.52 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002191/0.2612, allocations: 0.8442 MB / 406.8 MB, free: 17.64 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001768/0.2613, allocations: 48.17 kB / 406.9 MB, free: 17.59 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.616e-05/0.2615, allocations: 39.42 kB / 406.9 MB, free: 17.55 MB / 298.7 MB Notification: Performance of SimCode: time 2.01e-07/0.2615, allocations: 0 / 406.9 MB, free: 17.55 MB / 298.7 MB Notification: Performance of Templates: time 0.01518/0.2766, allocations: 12.59 MB / 419.5 MB, free: 4.984 MB / 298.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/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