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.001544/0.001544, allocations: 109.7 kB / 17.06 MB, free: 5.824 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.00192/0.00192, allocations: 191 kB / 18 MB, free: 4.977 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.327/1.327, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009353/0.0009353, allocations: 47.92 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.2666, allocations: 49.44 MB / 400.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003996/0.2706, allocations: 3.095 MB / 403.8 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001856/0.2725, allocations: 1.036 MB / 404.9 MB, free: 4.711 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001828/0.2727, allocations: 4 kB / 404.9 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002685/0.273, allocations: 79.23 kB / 404.9 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002724/0.2733, allocations: 162.6 kB / 405.1 MB, free: 4.469 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000602/0.2739, allocations: 279.5 kB / 405.4 MB, free: 4.195 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007463/0.2747, allocations: 0.7998 MB / 406.2 MB, free: 3.395 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002234/0.2749, allocations: 133.1 kB / 406.3 MB, free: 3.254 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003808/0.2753, allocations: 359 kB / 406.7 MB, free: 2.902 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004216/0.2757, allocations: 382.6 kB / 407 MB, free: 2.527 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.256e-05/0.2758, allocations: 56 kB / 407.1 MB, free: 2.473 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001956/0.276, allocations: 115.9 kB / 407.2 MB, free: 2.359 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001615/0.2762, allocations: 155.5 kB / 407.3 MB, free: 2.207 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002754/0.2765, allocations: 298.5 kB / 407.6 MB, free: 1.914 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007353/0.2772, allocations: 0.7253 MB / 408.4 MB, free: 1.191 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2772, allocations: 4 kB / 408.4 MB, free: 1.188 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.2772, allocations: 4 kB / 408.4 MB, free: 1.184 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.342e-05/0.2772, allocations: 0 / 408.4 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.00163/0.2789, allocations: 0.8845 MB / 409.3 MB, free: 256 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.2789, allocations: 8.031 kB / 409.3 MB, free: 248 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001199/0.279, allocations: 56.28 kB / 409.3 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005451/0.2796, allocations: 367.6 kB / 409.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.358e-05/0.2796, allocations: 33.38 kB / 409.7 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.978e-05/0.2797, allocations: 44.38 kB / 409.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001033/0.2808, allocations: 0.623 MB / 410.4 MB, free: 15.08 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.394e-05/0.2808, allocations: 7.906 kB / 410.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.036e-05/0.2809, allocations: 16 kB / 410.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.968e-06/0.2809, allocations: 12 kB / 410.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001175/0.2821, allocations: 0.6012 MB / 411 MB, free: 14.44 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002187/0.2843, allocations: 1.32 MB / 412.3 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009446/0.2852, allocations: 458.6 kB / 412.8 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005321/0.2858, allocations: 306.4 kB / 413.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.204e-05/0.2858, allocations: 12.56 kB / 413.1 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.742e-05/0.2859, allocations: 39.11 kB / 413.1 MB, free: 12.24 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 4.128e-06/0.2859, allocations: 7.922 kB / 413.1 MB, free: 12.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=64): time 0.00589/0.2918, allocations: 2.859 MB / 416 MB, free: 9.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.094e-05/0.2918, allocations: 63.97 kB / 416.1 MB, free: 9.156 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003327/0.2922, allocations: 329.7 kB / 416.4 MB, free: 8.828 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.893e-05/0.2923, allocations: 45.7 kB / 416.4 MB, free: 8.777 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/0.2924, allocations: 197.2 kB / 416.6 MB, free: 8.578 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001708/0.2926, allocations: 221 kB / 416.8 MB, free: 8.359 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002603/0.2928, allocations: 134.5 kB / 417 MB, free: 8.223 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.293, allocations: 358.7 kB / 417.3 MB, free: 7.863 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006256/0.2936, allocations: 325.8 kB / 417.6 MB, free: 7.543 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006474/0.2943, allocations: 389 kB / 418 MB, free: 7.152 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009692/0.2953, allocations: 0.5108 MB / 418.5 MB, free: 6.633 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2953, allocations: 0 / 418.5 MB, free: 6.633 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001705/0.297, allocations: 0.9232 MB / 419.4 MB, free: 5.699 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.297, allocations: 4 kB / 419.5 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.297, allocations: 0 / 419.5 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0012/0.2982, allocations: 0.7321 MB / 420.2 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003832/0.2986, allocations: 99.88 kB / 420.3 MB, free: 4.863 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001388/0.3, allocations: 1.097 MB / 421.4 MB, free: 3.742 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005932/0.3006, allocations: 103.9 kB / 421.5 MB, free: 3.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.254e-05/0.3007, allocations: 27.98 kB / 421.5 MB, free: 3.613 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.0002394/0.301, allocations: 180 kB / 421.7 MB, free: 3.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.676e-05/0.3011, allocations: 47.44 kB / 421.7 MB, free: 3.383 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001523/0.3012, allocations: 68.75 kB / 421.8 MB, free: 3.316 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.317e-06/0.3012, allocations: 8 kB / 421.8 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.3012, allocations: 0 / 421.8 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.3013, allocations: 3.984 kB / 421.8 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002651/0.3039, allocations: 1.568 MB / 423.4 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.3039, allocations: 4 kB / 423.4 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004074/0.3043, allocations: 87.88 kB / 423.5 MB, free: 1.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001089/0.3054, allocations: 0.7072 MB / 424.2 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.713e-05/0.3055, allocations: 27.97 kB / 424.2 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001268/0.3068, allocations: 1.06 MB / 425.3 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.3068, allocations: 0 / 425.3 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002282/0.3091, allocations: 1.32 MB / 426.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002156/0.3093, allocations: 196.4 kB / 426.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.6e-05/0.3094, allocations: 20 kB / 426.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005459/0.31, allocations: 107.8 kB / 426.9 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002507/0.3102, allocations: 124.4 kB / 427 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.452e-05/0.3103, allocations: 27.97 kB / 427 MB, free: 13.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002119/0.3105, allocations: 239.1 kB / 427.3 MB, free: 13.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3105, allocations: 0 / 427.3 MB, free: 13.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004795/0.311, allocations: 160 kB / 427.4 MB, free: 13.54 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.0002352/0.3112, allocations: 158.6 kB / 427.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001496/0.3128, allocations: 0.7761 MB / 428.4 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.3128, allocations: 0 / 428.4 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008078/0.3136, allocations: 429.8 kB / 428.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006509/0.3142, allocations: 89 kB / 428.9 MB, free: 12.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002534/0.3168, allocations: 1.386 MB / 430.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004192/0.3172, allocations: 0.8401 MB / 431.1 MB, free: 9.828 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001723/0.3174, allocations: 56.11 kB / 431.2 MB, free: 9.773 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.3175, allocations: 43.42 kB / 431.2 MB, free: 9.73 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3175, allocations: 0 / 431.2 MB, free: 9.73 MB / 350.1 MB Notification: Performance of Templates: time 0.0195/0.337, allocations: 13.65 MB / 444.8 MB, free: 12.12 MB / 366.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins/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