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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001938/0.001938, allocations: 103.6 kB / 20.43 MB, free: 1.211 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002542/0.002542, allocations: 184.7 kB / 23.71 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.484/1.484, allocations: 225.7 MB / 252.5 MB, free: 12.84 MB / 206.1 MB " [Timeout remaining time 178] 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=1500,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=1500,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001786/0.001786, allocations: 51.91 kB / 370.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/0.2779, allocations: 52.18 MB / 423.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004636/0.2825, allocations: 2.877 MB / 425.9 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001867/0.2844, allocations: 0.9895 MB / 426.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001617/0.2846, allocations: 11.94 kB / 426.9 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002518/0.2848, allocations: 83.16 kB / 427 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002942/0.2851, allocations: 158.7 kB / 427.2 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006542/0.2858, allocations: 295.5 kB / 427.5 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008254/0.2866, allocations: 0.7997 MB / 428.3 MB, free: 9.223 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002044/0.2868, allocations: 85.58 kB / 428.3 MB, free: 9.133 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004687/0.2873, allocations: 362.9 kB / 428.7 MB, free: 8.777 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000474/0.2877, allocations: 358.7 kB / 429 MB, free: 8.426 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001104/0.2879, allocations: 60 kB / 429.1 MB, free: 8.367 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002272/0.2881, allocations: 111.9 kB / 429.2 MB, free: 8.258 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001755/0.2883, allocations: 151.5 kB / 429.4 MB, free: 8.109 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00028/0.2885, allocations: 258.9 kB / 429.6 MB, free: 7.855 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008042/0.2893, allocations: 0.7338 MB / 430.4 MB, free: 7.125 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2893, allocations: 4 kB / 430.4 MB, free: 7.121 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2894, allocations: 7.875 kB / 430.4 MB, free: 7.113 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.2894, allocations: 0 / 430.4 MB, free: 7.113 MB / 334.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.001758/0.2911, allocations: 0.8205 MB / 431.2 MB, free: 6.262 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.2912, allocations: 12.91 kB / 431.2 MB, free: 6.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000129/0.2913, allocations: 60.56 kB / 431.3 MB, free: 6.191 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005513/0.2918, allocations: 306.1 kB / 431.6 MB, free: 5.867 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.226e-05/0.2919, allocations: 33.38 kB / 431.6 MB, free: 5.832 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001013/0.292, allocations: 52.33 kB / 431.6 MB, free: 5.781 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001172/0.2932, allocations: 0.6269 MB / 432.3 MB, free: 5.145 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.575e-05/0.2932, allocations: 0 / 432.3 MB, free: 5.145 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.309e-05/0.2932, allocations: 16 kB / 432.3 MB, free: 5.129 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.2933, allocations: 12 kB / 432.3 MB, free: 5.117 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001327/0.2946, allocations: 0.5972 MB / 432.9 MB, free: 4.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002325/0.2969, allocations: 1.088 MB / 434 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/0.298, allocations: 445.4 kB / 434.4 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005952/0.2985, allocations: 294.2 kB / 434.7 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.889e-05/0.2986, allocations: 4.5 kB / 434.7 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.288e-05/0.2986, allocations: 39.06 kB / 434.7 MB, free: 2.605 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 2.284e-06/0.2986, allocations: 0 / 434.7 MB, free: 2.605 MB / 334.1 MB Notification: Performance of matching and sorting (n=64): time 0.006388/0.305, allocations: 2.489 MB / 437.2 MB, free: 72 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.531e-05/0.3051, allocations: 64.11 kB / 437.3 MB, free: 15.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000361/0.3054, allocations: 308.5 kB / 437.6 MB, free: 15.69 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.254e-05/0.3055, allocations: 53.69 kB / 437.6 MB, free: 15.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001761/0.3057, allocations: 205.5 kB / 437.8 MB, free: 15.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002064/0.3059, allocations: 234.1 kB / 438.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000226/0.3061, allocations: 130.6 kB / 438.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.3063, allocations: 350.8 kB / 438.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006392/0.3069, allocations: 317.8 kB / 438.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006862/0.3076, allocations: 389 kB / 439.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001027/0.3086, allocations: 0.5028 MB / 439.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.3087, allocations: 3.938 kB / 439.7 MB, free: 13.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001822/0.3105, allocations: 0.9156 MB / 440.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.3105, allocations: 8.031 kB / 440.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.3105, allocations: 0 / 440.7 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001291/0.3118, allocations: 0.7268 MB / 441.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004108/0.3122, allocations: 111.8 kB / 441.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001553/0.3138, allocations: 1.09 MB / 442.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006821/0.3144, allocations: 107.9 kB / 442.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.104e-05/0.3145, allocations: 23.98 kB / 442.7 MB, free: 10.48 MB / 350.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.0002995/0.3148, allocations: 187.6 kB / 442.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001091/0.3149, allocations: 55.7 kB / 443 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001777/0.3151, allocations: 72.73 kB / 443 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.3151, allocations: 8 kB / 443 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.493e-06/0.3151, allocations: 0 / 443 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.3151, allocations: 3.984 kB / 443 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00286/0.318, allocations: 1.375 MB / 444.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.318, allocations: 0 / 444.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004352/0.3184, allocations: 91.88 kB / 444.5 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001238/0.3197, allocations: 0.6994 MB / 445.2 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.627e-05/0.3197, allocations: 31.95 kB / 445.2 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001471/0.3212, allocations: 1.06 MB / 446.3 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3212, allocations: 0 / 446.3 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002684/0.3239, allocations: 1.3 MB / 447.6 MB, free: 5.492 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003417/0.3242, allocations: 115.6 kB / 447.7 MB, free: 5.379 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001175/0.3243, allocations: 20 kB / 447.7 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000632/0.325, allocations: 95.86 kB / 447.8 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003169/0.3253, allocations: 140.4 kB / 448 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.808e-05/0.3253, allocations: 31.97 kB / 448 MB, free: 5.094 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002822/0.3256, allocations: 227 kB / 448.2 MB, free: 4.875 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3256, allocations: 0 / 448.2 MB, free: 4.875 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005844/0.3262, allocations: 156 kB / 448.4 MB, free: 4.723 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.0002996/0.3265, allocations: 149 kB / 448.5 MB, free: 4.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001665/0.3282, allocations: 0.7264 MB / 449.2 MB, free: 3.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3282, allocations: 0 / 449.2 MB, free: 3.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008781/0.3291, allocations: 414.1 kB / 449.6 MB, free: 3.441 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007266/0.3298, allocations: 105.1 kB / 449.7 MB, free: 3.344 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002938/0.3327, allocations: 1.395 MB / 451.1 MB, free: 1.926 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002517/0.333, allocations: 241.6 kB / 451.4 MB, free: 1.668 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002299/0.3332, allocations: 51.44 kB / 451.4 MB, free: 1.617 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001258/0.3333, allocations: 43.42 kB / 451.5 MB, free: 1.574 MB / 350.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3333, allocations: 0 / 451.5 MB, free: 1.574 MB / 350.1 MB Notification: Performance of Templates: time 0.02028/0.3536, allocations: 12.04 MB / 463.5 MB, free: 5.66 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.929709631949663]