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.001372/0.001372, allocations: 110.9 kB / 17.74 MB, free: 5.352 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.001402/0.001402, allocations: 192.5 kB / 18.67 MB, free: 4.426 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.354/1.354, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00105/0.00105, allocations: 47.92 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2698, allocations: 49.43 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004737/0.2746, allocations: 3.102 MB / 404.5 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002116/0.2767, allocations: 1.036 MB / 405.5 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000308/0.2771, allocations: 4 kB / 405.5 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003289/0.2775, allocations: 79.23 kB / 405.6 MB, free: 4.625 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003661/0.2778, allocations: 154.7 kB / 405.8 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007666/0.2786, allocations: 283.5 kB / 406.1 MB, free: 4.195 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007433/0.2794, allocations: 0.7921 MB / 406.8 MB, free: 3.402 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002469/0.2796, allocations: 141.1 kB / 407 MB, free: 3.254 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004173/0.2801, allocations: 354.9 kB / 407.3 MB, free: 2.906 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004428/0.2805, allocations: 382.7 kB / 407.7 MB, free: 2.531 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001086/0.2806, allocations: 60 kB / 407.8 MB, free: 2.473 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002127/0.2808, allocations: 111.9 kB / 407.9 MB, free: 2.363 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001544/0.281, allocations: 155.5 kB / 408 MB, free: 2.211 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002546/0.2813, allocations: 294.5 kB / 408.3 MB, free: 1.922 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007162/0.282, allocations: 0.7331 MB / 409 MB, free: 1.191 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.282, allocations: 4 kB / 409 MB, free: 1.188 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.282, allocations: 0 / 409 MB, free: 1.188 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.282, allocations: 4 kB / 409.1 MB, free: 1.184 MB / 318.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.001669/0.2837, allocations: 0.8729 MB / 409.9 MB, free: 268 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.2838, allocations: 11.97 kB / 409.9 MB, free: 256 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/0.2839, allocations: 56.28 kB / 410 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005167/0.2844, allocations: 375.6 kB / 410.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.631e-05/0.2845, allocations: 33.38 kB / 410.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001089/0.2846, allocations: 48.38 kB / 410.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001039/0.2856, allocations: 0.6191 MB / 411.1 MB, free: 15.08 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.535e-05/0.2857, allocations: 7.844 kB / 411.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.644e-05/0.2857, allocations: 16 kB / 411.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.2858, allocations: 12 kB / 411.1 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/0.2869, allocations: 0.6012 MB / 411.7 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002134/0.289, allocations: 1.313 MB / 413 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000942/0.29, allocations: 462.6 kB / 413.5 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005617/0.2906, allocations: 314.4 kB / 413.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.431e-05/0.2906, allocations: 8.562 kB / 413.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.215e-05/0.2907, allocations: 35.12 kB / 413.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 1.984e-06/0.2907, allocations: 0 / 413.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=64): time 0.005973/0.2967, allocations: 2.871 MB / 416.7 MB, free: 9.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.069e-05/0.2967, allocations: 59.97 kB / 416.7 MB, free: 9.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003392/0.2971, allocations: 325.7 kB / 417.1 MB, free: 8.836 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.366e-05/0.2972, allocations: 49.69 kB / 417.1 MB, free: 8.781 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001461/0.2973, allocations: 201.2 kB / 417.3 MB, free: 8.578 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001774/0.2975, allocations: 217 kB / 417.5 MB, free: 8.363 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002089/0.2977, allocations: 134.6 kB / 417.6 MB, free: 8.227 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.2979, allocations: 358.7 kB / 418 MB, free: 7.867 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00058/0.2985, allocations: 321.8 kB / 418.3 MB, free: 7.551 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00064/0.2991, allocations: 385 kB / 418.7 MB, free: 7.164 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009045/0.3, allocations: 0.5108 MB / 419.2 MB, free: 6.645 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3, allocations: 0 / 419.2 MB, free: 6.645 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001659/0.3017, allocations: 0.9232 MB / 420.1 MB, free: 5.711 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.3017, allocations: 4 kB / 420.1 MB, free: 5.707 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.3017, allocations: 0 / 420.1 MB, free: 5.707 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001208/0.303, allocations: 0.7402 MB / 420.9 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003966/0.3034, allocations: 103.8 kB / 421 MB, free: 4.863 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001395/0.3048, allocations: 1.087 MB / 422 MB, free: 3.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006554/0.3054, allocations: 103.9 kB / 422.2 MB, free: 3.648 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.587e-05/0.3055, allocations: 27.98 kB / 422.2 MB, free: 3.621 MB / 334.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.0002891/0.3058, allocations: 186 kB / 422.4 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.3059, allocations: 47.44 kB / 422.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001657/0.3061, allocations: 68.75 kB / 422.5 MB, free: 3.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.939e-06/0.3061, allocations: 8 kB / 422.5 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.3061, allocations: 3.938 kB / 422.5 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.944e-06/0.3061, allocations: 7.984 kB / 422.5 MB, free: 3.301 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002685/0.3088, allocations: 1.565 MB / 424.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.3088, allocations: 0 / 424.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004079/0.3093, allocations: 91.88 kB / 424.1 MB, free: 1.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001094/0.3104, allocations: 0.7073 MB / 424.9 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.303e-05/0.3104, allocations: 23.95 kB / 424.9 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001338/0.3118, allocations: 1.06 MB / 425.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3118, allocations: 0 / 425.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002426/0.3142, allocations: 1.32 MB / 427.3 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003356/0.3146, allocations: 192.4 kB / 427.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001381/0.3147, allocations: 20 kB / 427.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006039/0.3153, allocations: 103.8 kB / 427.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000272/0.3156, allocations: 128.3 kB / 427.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.814e-05/0.3157, allocations: 27.97 kB / 427.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002612/0.316, allocations: 235.2 kB / 427.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.316, allocations: 4 kB / 428 MB, free: 13.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005984/0.3166, allocations: 156 kB / 428.1 MB, free: 13.55 MB / 350.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.0003038/0.3169, allocations: 154.6 kB / 428.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001641/0.3185, allocations: 0.7761 MB / 429 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3185, allocations: 0 / 429 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000801/0.3194, allocations: 429.8 kB / 429.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006788/0.32, allocations: 97.69 kB / 429.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002668/0.3227, allocations: 1.417 MB / 431 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004149/0.3232, allocations: 0.844 MB / 431.8 MB, free: 9.789 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001474/0.3233, allocations: 51.41 kB / 431.9 MB, free: 9.738 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3233, allocations: 4 kB / 431.9 MB, free: 9.734 MB / 350.1 MB Notification: Performance of Templates: time 0.0135/0.3368, allocations: 8.688 MB / 440.6 MB, free: 1.062 MB / 350.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