Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003165/0.003165, allocations: 209.2 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.495/1.495, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001632, allocations: 51.91 kB / 378.2 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2672, allocations: 53.36 MB / 431.6 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.006406/0.2737, allocations: 3 MB / 434.6 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003007/0.2767, allocations: 1.197 MB / 435.8 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002326/0.2769, allocations: 11.94 kB / 435.8 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004089/0.2773, allocations: 103.1 kB / 435.9 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006664/0.278, allocations: 226.4 kB / 436.1 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007697/0.2787, allocations: 275.6 kB / 436.4 MB, free: 1.902 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001286/0.28, allocations: 0.8503 MB / 437.2 MB, free: 1.051 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003491/0.2804, allocations: 101.8 kB / 437.3 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008741/0.2812, allocations: 398.8 kB / 437.7 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007542/0.282, allocations: 378.6 kB / 438.1 MB, free: 192 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001634/0.2822, allocations: 64 kB / 438.1 MB, free: 128 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000375/0.2825, allocations: 116 kB / 438.3 MB, free: 12 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003594/0.2829, allocations: 187.5 kB / 438.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004246/0.2833, allocations: 274.8 kB / 438.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001293/0.2846, allocations: 0.8041 MB / 439.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2846, allocations: 0 / 439.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.449e-06/0.2846, allocations: 3.984 kB / 439.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.2846, allocations: 0 / 439.5 MB, free: 14.75 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.002689/0.2873, allocations: 0.8863 MB / 440.4 MB, free: 13.83 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.2874, allocations: 8.031 kB / 440.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004895/0.2879, allocations: 84.53 kB / 440.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009094/0.2888, allocations: 340.4 kB / 440.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.399e-05/0.2888, allocations: 33.38 kB / 440.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001546/0.289, allocations: 52.33 kB / 440.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001784/0.2908, allocations: 0.6152 MB / 441.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.354e-05/0.2908, allocations: 4 kB / 441.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.379e-05/0.2909, allocations: 20 kB / 441.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.265e-05/0.2909, allocations: 15.98 kB / 441.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001989/0.2929, allocations: 0.5816 MB / 442.1 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003464/0.2964, allocations: 1.122 MB / 443.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001672/0.298, allocations: 470.8 kB / 443.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009599/0.299, allocations: 294.7 kB / 444 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.659e-05/0.2991, allocations: 12.64 kB / 444 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.804e-05/0.2991, allocations: 43.22 kB / 444.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 3.367e-06/0.2991, allocations: 0 / 444.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.01013/0.3093, allocations: 2.52 MB / 446.6 MB, free: 7.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.652e-05/0.3093, allocations: 56.06 kB / 446.6 MB, free: 7.434 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006418/0.31, allocations: 353.6 kB / 447 MB, free: 7.086 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001172/0.3101, allocations: 53.69 kB / 447 MB, free: 7.027 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002343/0.3103, allocations: 201.6 kB / 447.2 MB, free: 6.824 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003667/0.3107, allocations: 261.9 kB / 447.5 MB, free: 6.566 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003769/0.3111, allocations: 130.6 kB / 447.6 MB, free: 6.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002457/0.3113, allocations: 358.8 kB / 448 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001057/0.3124, allocations: 305.9 kB / 448.3 MB, free: 5.773 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001144/0.3135, allocations: 373.4 kB / 448.6 MB, free: 5.402 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001673/0.3152, allocations: 0.4971 MB / 449.1 MB, free: 4.895 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.3152, allocations: 0 / 449.1 MB, free: 4.895 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003333/0.3185, allocations: 0.9274 MB / 450.1 MB, free: 3.961 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.812e-05/0.3186, allocations: 4 kB / 450.1 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.3186, allocations: 11.97 kB / 450.1 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002131/0.3207, allocations: 0.5668 MB / 450.6 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005948/0.3213, allocations: 99.81 kB / 450.7 MB, free: 3.277 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002666/0.324, allocations: 1.101 MB / 451.8 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001213/0.3252, allocations: 115.8 kB / 452 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001118/0.3253, allocations: 24 kB / 452 MB, free: 2.012 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 (61): * Single equations (assignments): 60 * 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,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0005138/0.3258, allocations: 196 kB / 452.2 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002705/0.3261, allocations: 63.56 kB / 452.2 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000273/0.3263, allocations: 72.98 kB / 452.3 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-05/0.3264, allocations: 8 kB / 452.3 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.617e-06/0.3264, allocations: 0 / 452.3 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.3264, allocations: 3.984 kB / 452.3 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004654/0.331, allocations: 1.4 MB / 453.7 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.331, allocations: 0 / 453.7 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006599/0.3317, allocations: 91.88 kB / 453.8 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00194/0.3336, allocations: 0.5317 MB / 454.3 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000109/0.3338, allocations: 35.95 kB / 454.4 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002546/0.3363, allocations: 1.066 MB / 455.4 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.3363, allocations: 4.047 kB / 455.4 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004273/0.3406, allocations: 1.308 MB / 456.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005082/0.3411, allocations: 119.5 kB / 456.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002014/0.3413, allocations: 24 kB / 456.9 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00104/0.3423, allocations: 103.9 kB / 457 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004456/0.3428, allocations: 140.3 kB / 457.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001045/0.3429, allocations: 31.97 kB / 457.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004539/0.3433, allocations: 247.2 kB / 457.4 MB, free: 12.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3433, allocations: 0 / 457.4 MB, free: 12.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001/0.3443, allocations: 163.9 kB / 457.6 MB, free: 12.33 MB / 366.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,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002181/0.3465, allocations: 423.8 kB / 458 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002745/0.3493, allocations: 0.7152 MB / 458.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.3493, allocations: 4 kB / 458.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001448/0.3507, allocations: 424.6 kB / 459.1 MB, free: 10.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001179/0.3519, allocations: 118.1 kB / 459.2 MB, free: 10.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004231/0.3561, allocations: 1.427 MB / 460.6 MB, free: 9.371 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000405/0.3565, allocations: 271.4 kB / 460.9 MB, free: 9.074 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003249/0.3568, allocations: 48.39 kB / 461 MB, free: 9.027 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002087/0.3571, allocations: 43.42 kB / 461 MB, free: 8.984 MB / 366.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3571, allocations: 4 kB / 461 MB, free: 8.98 MB / 366.1 MB Notification: Performance of Templates: time 0.02944/0.3865, allocations: 12.35 MB / 473.4 MB, free: 12.74 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 5.0068566258996725]