Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 109.2 kB / 17.17 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 194.9 kB / 18.08 MB, free: 5.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 222.9 MB / 241.8 MB, free: 15.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001065/0.001065, allocations: 50.42 kB / 300.6 MB, free: 6.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1072, allocations: 49.44 MB / 350.1 MB, free: 4.773 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004768/0.112, allocations: 3.118 MB / 353.2 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002211/0.1142, allocations: 1.048 MB / 354.2 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003955/0.1147, allocations: 4 kB / 354.2 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003136/0.115, allocations: 63.55 kB / 354.3 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004262/0.1155, allocations: 135 kB / 354.4 MB, free: 388 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006845/0.1162, allocations: 239.7 kB / 354.7 MB, free: 148 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007935/0.117, allocations: 0.753 MB / 355.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002372/0.1172, allocations: 116.8 kB / 355.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004577/0.1177, allocations: 326.8 kB / 355.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003808/0.1181, allocations: 358.7 kB / 356.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.539e-05/0.1182, allocations: 40 kB / 356.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002118/0.1184, allocations: 83.94 kB / 356.3 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001581/0.1185, allocations: 127.5 kB / 356.4 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002647/0.1188, allocations: 278.5 kB / 356.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004656/0.1193, allocations: 0.5069 MB / 357.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1193, allocations: 0 / 357.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.1193, allocations: 0 / 357.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.687e-06/0.1193, allocations: 0 / 357.2 MB, free: 13.57 MB / 302.1 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.001721/0.1211, allocations: 0.8806 MB / 358.1 MB, free: 12.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1211, allocations: 12.03 kB / 358.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001335/0.1212, allocations: 68.19 kB / 358.2 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005048/0.1218, allocations: 359.8 kB / 358.5 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.509e-05/0.1218, allocations: 29.38 kB / 358.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.695e-05/0.1219, allocations: 44.38 kB / 358.6 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/0.1231, allocations: 0.6191 MB / 359.2 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.439e-05/0.1231, allocations: 7.906 kB / 359.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.119e-05/0.1232, allocations: 16 kB / 359.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.1232, allocations: 12 kB / 359.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001212/0.1244, allocations: 0.605 MB / 359.9 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002266/0.1267, allocations: 1.324 MB / 361.2 MB, free: 9.441 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009924/0.1277, allocations: 467.9 kB / 361.6 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005677/0.1283, allocations: 310.4 kB / 361.9 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.578e-05/0.1283, allocations: 8.547 kB / 362 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.415e-05/0.1284, allocations: 39.12 kB / 362 MB, free: 8.617 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.134e-06/0.1284, allocations: 0 / 362 MB, free: 8.617 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.006231/0.1346, allocations: 2.867 MB / 364.9 MB, free: 5.605 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.905e-05/0.1347, allocations: 63.97 kB / 364.9 MB, free: 5.531 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000342/0.135, allocations: 325.7 kB / 365.2 MB, free: 5.203 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.681e-05/0.1351, allocations: 49.69 kB / 365.3 MB, free: 5.148 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.1352, allocations: 197.2 kB / 365.5 MB, free: 4.953 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001888/0.1354, allocations: 224.8 kB / 365.7 MB, free: 4.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002259/0.1357, allocations: 138.6 kB / 365.8 MB, free: 4.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.1358, allocations: 358.7 kB / 366.2 MB, free: 4.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006222/0.1364, allocations: 317.8 kB / 366.5 MB, free: 3.922 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006877/0.1371, allocations: 385 kB / 366.9 MB, free: 3.539 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009876/0.1381, allocations: 0.507 MB / 367.4 MB, free: 3.023 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1381, allocations: 4 kB / 367.4 MB, free: 3.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001841/0.14, allocations: 0.9155 MB / 368.3 MB, free: 2.094 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.466e-05/0.14, allocations: 8.031 kB / 368.3 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.278e-06/0.14, allocations: 4 kB / 368.3 MB, free: 2.082 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001359/0.1414, allocations: 0.7307 MB / 369 MB, free: 1.348 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003912/0.1418, allocations: 103.8 kB / 369.1 MB, free: 1.246 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001413/0.1432, allocations: 1.09 MB / 370.2 MB, free: 136 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006384/0.1439, allocations: 103.9 kB / 370.3 MB, free: 32 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.665e-05/0.144, allocations: 27.98 kB / 370.4 MB, free: 4 kB / 302.1 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.1763/0.3203, allocations: 176.4 kB / 370.5 MB, free: 25.95 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001676/0.3205, allocations: 46.66 kB / 370.6 MB, free: 25.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001312/0.3206, allocations: 70.2 kB / 370.7 MB, free: 25.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.3206, allocations: 11.47 kB / 370.7 MB, free: 25.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.3206, allocations: 0 / 370.7 MB, free: 25.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.3207, allocations: 4.25 kB / 370.7 MB, free: 25.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002897/0.3236, allocations: 1.574 MB / 372.2 MB, free: 25.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.3236, allocations: 1.25 kB / 372.2 MB, free: 25.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000442/0.324, allocations: 88.8 kB / 372.3 MB, free: 25.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001222/0.3253, allocations: 0.7056 MB / 373 MB, free: 25.56 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.824e-05/0.3253, allocations: 24.77 kB / 373.1 MB, free: 25.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00128/0.3266, allocations: 1.075 MB / 374.1 MB, free: 24.85 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3266, allocations: 3.719 kB / 374.1 MB, free: 24.85 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002384/0.329, allocations: 1.304 MB / 375.4 MB, free: 24.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002611/0.3293, allocations: 187.6 kB / 375.6 MB, free: 24.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001085/0.3294, allocations: 20.25 kB / 375.6 MB, free: 24.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005998/0.33, allocations: 102.9 kB / 375.7 MB, free: 24.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002987/0.3303, allocations: 124.2 kB / 375.9 MB, free: 24.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.198e-05/0.3304, allocations: 27.03 kB / 375.9 MB, free: 24.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002219/0.3306, allocations: 235.6 kB / 376.1 MB, free: 24.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3306, allocations: 0 / 376.1 MB, free: 24.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005472/0.3312, allocations: 160.1 kB / 376.3 MB, free: 24.02 MB / 302.1 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.0002471/0.3314, allocations: 149.6 kB / 376.4 MB, free: 23.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001642/0.3331, allocations: 0.774 MB / 377.2 MB, free: 23.67 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3331, allocations: 0 / 377.2 MB, free: 23.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008458/0.334, allocations: 423.7 kB / 377.6 MB, free: 23.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006717/0.3346, allocations: 94.19 kB / 377.7 MB, free: 23.49 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002634/0.3373, allocations: 1.628 MB / 379.3 MB, free: 22.46 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003406/0.3376, allocations: 0.8462 MB / 380.2 MB, free: 21.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001619/0.3378, allocations: 42.39 kB / 380.2 MB, free: 21.74 MB / 302.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3378, allocations: 3.938 kB / 380.2 MB, free: 21.74 MB / 302.1 MB Notification: Performance of Templates: time 0.01228/0.3501, allocations: 8.566 MB / 388.8 MB, free: 18.5 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches