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.001095/0.001095, allocations: 108.1 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.001187/0.001187, 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.321/1.321, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009345/0.0009345, allocations: 47.91 kB / 351.3 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2655, allocations: 49.43 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003843/0.2694, allocations: 3.094 MB / 403.8 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001622/0.271, allocations: 1.032 MB / 404.9 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001624/0.2712, allocations: 4 kB / 404.9 MB, free: 4.719 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002435/0.2714, allocations: 75.23 kB / 404.9 MB, free: 4.645 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002677/0.2717, allocations: 162.7 kB / 405.1 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000601/0.2723, allocations: 283.5 kB / 405.4 MB, free: 4.207 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006509/0.273, allocations: 0.7959 MB / 406.2 MB, free: 3.41 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000246/0.2732, allocations: 137.1 kB / 406.3 MB, free: 3.266 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004081/0.2737, allocations: 358.9 kB / 406.6 MB, free: 2.914 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004124/0.2741, allocations: 378.7 kB / 407 MB, free: 2.543 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.621e-05/0.2742, allocations: 60 kB / 407.1 MB, free: 2.484 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002048/0.2744, allocations: 123.8 kB / 407.2 MB, free: 2.363 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001725/0.2746, allocations: 147.5 kB / 407.3 MB, free: 2.219 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002914/0.2749, allocations: 310.5 kB / 407.6 MB, free: 1.914 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007032/0.2756, 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.2756, allocations: 0 / 408.4 MB, free: 1.191 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2756, allocations: 0 / 408.4 MB, free: 1.191 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.468e-06/0.2756, allocations: 0 / 408.4 MB, free: 1.191 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.0018/0.2774, allocations: 0.8832 MB / 409.2 MB, free: 268 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.2775, allocations: 8.031 kB / 409.3 MB, free: 260 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001227/0.2776, allocations: 60.28 kB / 409.3 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004917/0.2781, allocations: 367.6 kB / 409.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.313e-05/0.2781, allocations: 33.38 kB / 409.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.419e-05/0.2782, allocations: 48.36 kB / 409.8 MB, free: 15.72 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001105/0.2793, allocations: 0.6152 MB / 410.4 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.537e-05/0.2794, allocations: 7.906 kB / 410.4 MB, free: 15.08 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.124e-05/0.2794, allocations: 23.94 kB / 410.4 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.2795, allocations: 8 kB / 410.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001328/0.2808, allocations: 0.6012 MB / 411 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002301/0.2831, allocations: 1.309 MB / 412.3 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/0.2843, allocations: 474.6 kB / 412.8 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005929/0.2849, allocations: 306.4 kB / 413.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.991e-05/0.2849, allocations: 8.562 kB / 413.1 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.073e-05/0.285, allocations: 39.12 kB / 413.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 2.034e-06/0.285, allocations: 0 / 413.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=64): time 0.006431/0.2914, allocations: 2.871 MB / 416 MB, free: 9.234 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.07e-05/0.2915, allocations: 59.97 kB / 416.1 MB, free: 9.164 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003237/0.2918, allocations: 329.7 kB / 416.4 MB, free: 8.836 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.966e-05/0.2919, allocations: 45.7 kB / 416.4 MB, free: 8.785 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001268/0.292, allocations: 197.2 kB / 416.6 MB, free: 8.586 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00017/0.2922, allocations: 225 kB / 416.8 MB, free: 8.363 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002209/0.2924, allocations: 134.5 kB / 417 MB, free: 8.227 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.2925, allocations: 354.7 kB / 417.3 MB, free: 7.871 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006307/0.2932, allocations: 321.8 kB / 417.6 MB, free: 7.555 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006521/0.2938, allocations: 389 kB / 418 MB, free: 7.164 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009976/0.2948, allocations: 0.5108 MB / 418.5 MB, free: 6.645 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.2949, allocations: 0 / 418.5 MB, free: 6.645 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001749/0.2966, allocations: 0.9271 MB / 419.4 MB, free: 5.707 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.2966, allocations: 4 kB / 419.4 MB, free: 5.703 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.2967, allocations: 8.031 kB / 419.5 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00121/0.2979, allocations: 0.7206 MB / 420.2 MB, free: 4.973 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004024/0.2983, allocations: 111.8 kB / 420.3 MB, free: 4.863 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001438/0.2997, allocations: 1.089 MB / 421.4 MB, free: 3.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007116/0.3005, allocations: 107.9 kB / 421.5 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.635e-05/0.3005, allocations: 23.98 kB / 421.5 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.0002562/0.3008, allocations: 183.9 kB / 421.7 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.3009, allocations: 47.44 kB / 421.7 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001591/0.3011, allocations: 68.75 kB / 421.8 MB, free: 3.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.3011, allocations: 12 kB / 421.8 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.3011, allocations: 0 / 421.8 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.3011, allocations: 3.984 kB / 421.8 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002709/0.3038, allocations: 1.568 MB / 423.4 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.3038, allocations: 0 / 423.4 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004381/0.3043, allocations: 87.89 kB / 423.5 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001126/0.3054, allocations: 0.7073 MB / 424.2 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.654e-05/0.3055, allocations: 27.97 kB / 424.2 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001293/0.3068, allocations: 1.063 MB / 425.3 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3068, allocations: 0 / 425.3 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002373/0.3092, allocations: 1.309 MB / 426.6 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002264/0.3094, allocations: 192.4 kB / 426.8 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001122/0.3095, allocations: 28 kB / 426.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006587/0.3102, allocations: 103.8 kB / 426.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000256/0.3105, allocations: 124.3 kB / 427 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.229e-05/0.3105, allocations: 31.97 kB / 427 MB, free: 13.94 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000241/0.3108, allocations: 231.2 kB / 427.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3108, allocations: 0 / 427.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005263/0.3113, allocations: 160 kB / 427.4 MB, free: 13.56 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.00026/0.3116, allocations: 154.8 kB / 427.6 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001557/0.3131, allocations: 0.78 MB / 428.4 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3132, allocations: 0 / 428.4 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008203/0.314, allocations: 429.9 kB / 428.8 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.0006723/0.3147, allocations: 93.77 kB / 428.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002401/0.3171, allocations: 1.389 MB / 430.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003554/0.3175, allocations: 0.8479 MB / 431.1 MB, free: 9.824 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001785/0.3176, allocations: 40.19 kB / 431.1 MB, free: 9.785 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.3178, allocations: 39.42 kB / 431.2 MB, free: 9.746 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3178, allocations: 0 / 431.2 MB, free: 9.746 MB / 350.1 MB Notification: Performance of Templates: time 0.01946/0.3372, allocations: 13.65 MB / 444.8 MB, free: 12.14 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