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.001693/0.001693, allocations: 120 kB / 18.46 MB, free: 4.562 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.001718/0.001718, allocations: 213.6 kB / 21.42 MB, free: 1.605 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.693/1.693, allocations: 230.6 MB / 254.8 MB, free: 15.08 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.001628/0.001628, allocations: 47.92 kB / 374.1 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1115, allocations: 53.33 MB / 427.5 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005503/0.117, allocations: 3.258 MB / 430.7 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2186/0.3356, allocations: 1.251 MB / 432 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000403/0.336, allocations: 8.688 kB / 432 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003924/0.3364, allocations: 98.81 kB / 432.1 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004816/0.3369, allocations: 222.4 kB / 432.3 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005677/0.3374, allocations: 274.5 kB / 432.6 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007963/0.3382, allocations: 0.842 MB / 433.4 MB, free: 8.008 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002032/0.3384, allocations: 103.5 kB / 433.5 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004663/0.3389, allocations: 398.5 kB / 433.9 MB, free: 7.922 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004256/0.3393, allocations: 414.3 kB / 434.3 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001013/0.3394, allocations: 63.22 kB / 434.4 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002345/0.3396, allocations: 119.3 kB / 434.5 MB, free: 7.852 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001733/0.3398, allocations: 179.5 kB / 434.7 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002541/0.3401, allocations: 323.5 kB / 435 MB, free: 7.742 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000928/0.341, allocations: 0.7966 MB / 435.8 MB, free: 7.621 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.341, allocations: 1.156 kB / 435.8 MB, free: 7.621 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.341, allocations: 0 / 435.8 MB, free: 7.621 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.244e-05/0.341, allocations: 0 / 435.8 MB, free: 7.621 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.001892/0.3429, allocations: 0.969 MB / 436.8 MB, free: 7.043 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.343, allocations: 14.38 kB / 436.8 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003571/0.3433, allocations: 79.39 kB / 436.8 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005938/0.3439, allocations: 396.9 kB / 437.2 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.501e-05/0.344, allocations: 39.44 kB / 437.3 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.3441, allocations: 51.48 kB / 437.3 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.3453, allocations: 0.6154 MB / 437.9 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.547e-05/0.3453, allocations: 3.375 kB / 437.9 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.468e-05/0.3454, allocations: 20.53 kB / 438 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.455e-05/0.3454, allocations: 11.09 kB / 438 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00129/0.3467, allocations: 0.593 MB / 438.6 MB, free: 6.352 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002487/0.3492, allocations: 1.351 MB / 439.9 MB, free: 5.625 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001084/0.3503, allocations: 484.6 kB / 440.4 MB, free: 5.438 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005816/0.3508, allocations: 294.4 kB / 440.7 MB, free: 5.316 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.039e-05/0.3509, allocations: 10.62 kB / 440.7 MB, free: 5.312 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.889e-05/0.3509, allocations: 43.08 kB / 440.7 MB, free: 5.262 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.435e-06/0.3509, allocations: 0 / 440.7 MB, free: 5.262 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.007029/0.358, allocations: 2.885 MB / 443.6 MB, free: 3.715 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.063e-05/0.358, allocations: 63.19 kB / 443.7 MB, free: 3.648 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004335/0.3584, allocations: 367.3 kB / 444 MB, free: 3.465 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.293e-05/0.3585, allocations: 52.16 kB / 444.1 MB, free: 3.418 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.3586, allocations: 198.8 kB / 444.3 MB, free: 3.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001846/0.3588, allocations: 261.7 kB / 444.5 MB, free: 3.055 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002444/0.359, allocations: 136.4 kB / 444.7 MB, free: 2.984 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.653e-05/0.3591, allocations: 363 kB / 445 MB, free: 2.648 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006249/0.3597, allocations: 306 kB / 445.3 MB, free: 2.531 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006525/0.3604, allocations: 375.6 kB / 445.7 MB, free: 2.367 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009807/0.3614, allocations: 494.5 kB / 446.2 MB, free: 2.148 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3614, allocations: 0 / 446.2 MB, free: 2.148 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001946/0.3633, allocations: 0.9302 MB / 447.1 MB, free: 1.754 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.3634, allocations: 5.344 kB / 447.1 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.3634, allocations: 1.25 kB / 447.1 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00141/0.3648, allocations: 0.5758 MB / 447.7 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003883/0.3652, allocations: 100.7 kB / 447.8 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001444/0.3666, allocations: 1.096 MB / 448.9 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008082/0.3674, allocations: 109.5 kB / 449 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.082e-05/0.3675, allocations: 28.91 kB / 449 MB, free: 0.7578 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.0002866/0.3678, allocations: 192 kB / 449.2 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001332/0.3679, allocations: 58.02 kB / 449.3 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001759/0.3681, allocations: 76.33 kB / 449.3 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/0.3681, allocations: 7.938 kB / 449.3 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.3681, allocations: 0.6094 kB / 449.3 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.3681, allocations: 4.781 kB / 449.3 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003176/0.3713, allocations: 1.618 MB / 451 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.3713, allocations: 3.562 kB / 451 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004231/0.3717, allocations: 88.62 kB / 451.1 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001329/0.373, allocations: 0.5364 MB / 451.6 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.751e-05/0.3731, allocations: 28.77 kB / 451.6 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001641/0.3747, allocations: 1.077 MB / 452.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.3747, allocations: 1.406 kB / 452.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003158/0.3779, allocations: 1.302 MB / 454 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003442/0.3783, allocations: 205.2 kB / 454.2 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001796/0.3784, allocations: 20.19 kB / 454.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00105/0.3795, allocations: 106.8 kB / 454.3 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004551/0.3799, allocations: 128.1 kB / 454.4 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/0.38, allocations: 32.58 kB / 454.5 MB, free: 14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005046/0.3805, allocations: 254.9 kB / 454.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3805, allocations: 0 / 454.7 MB, free: 13.87 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007026/0.3812, allocations: 165 kB / 454.9 MB, free: 13.84 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.001821/0.3831, allocations: 408.4 kB / 455.3 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002767/0.3858, allocations: 0.7196 MB / 456 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.838e-06/0.3858, allocations: 0 / 456 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001437/0.3873, allocations: 412.3 kB / 456.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/0.3885, allocations: 117.5 kB / 456.5 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004275/0.3928, allocations: 1.481 MB / 458 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007044/0.3935, allocations: 0.861 MB / 458.9 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000291/0.3938, allocations: 59.19 kB / 458.9 MB, free: 11.49 MB / 366.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3938, allocations: 0 / 458.9 MB, free: 11.49 MB / 366.1 MB Notification: Performance of Templates: time 0.02413/0.4179, allocations: 9.31 MB / 468.2 MB, free: 6.578 MB / 366.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/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: 9.002258819993585]