Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00158/0.00158, allocations: 119.5 kB / 21.17 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001635/0.001635, allocations: 213.5 kB / 24.47 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.401/1.401, allocations: 230.5 MB / 258.1 MB, free: 8.125 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 72.06 kB / 378.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2351/0.2371, allocations: 53.32 MB / 432 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005064/0.2421, allocations: 3.276 MB / 435.3 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002609/0.2447, allocations: 1.259 MB / 436.6 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003902/0.2451, allocations: 7.938 kB / 436.6 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004196/0.2456, allocations: 99.14 kB / 436.7 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006952/0.2462, allocations: 230.3 kB / 436.9 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007305/0.247, allocations: 259.5 kB / 437.2 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001122/0.2481, allocations: 0.8544 MB / 438 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002446/0.2483, allocations: 97.78 kB / 438.1 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006938/0.249, allocations: 386.8 kB / 438.5 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006709/0.2497, allocations: 422.4 kB / 438.9 MB, free: 480 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001714/0.2499, allocations: 64 kB / 439 MB, free: 416 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003158/0.2502, allocations: 120 kB / 439.1 MB, free: 296 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002519/0.2504, allocations: 171.5 kB / 439.3 MB, free: 124 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003815/0.2508, allocations: 330.3 kB / 439.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000961/0.2518, allocations: 0.7915 MB / 440.4 MB, free: 15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2518, allocations: 4 kB / 440.4 MB, free: 15 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2518, allocations: 0 / 440.4 MB, free: 15 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.748e-06/0.2518, allocations: 0 / 440.4 MB, free: 15 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.001954/0.2538, allocations: 0.9733 MB / 441.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.2538, allocations: 8.922 kB / 441.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003394/0.2541, allocations: 80.55 kB / 441.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006767/0.2548, allocations: 398.2 kB / 441.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.547e-05/0.2549, allocations: 37.38 kB / 441.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.255, allocations: 48.33 kB / 441.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.2562, allocations: 0.6191 MB / 442.5 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.052e-05/0.2562, allocations: 0 / 442.5 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.374e-05/0.2563, allocations: 23.98 kB / 442.5 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.812e-05/0.2563, allocations: 12 kB / 442.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001286/0.2576, allocations: 0.5933 MB / 443.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002499/0.2601, allocations: 1.352 MB / 444.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001109/0.2612, allocations: 489 kB / 445 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006069/0.2618, allocations: 298.3 kB / 445.3 MB, free: 9.926 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.763e-05/0.2618, allocations: 4.562 kB / 445.3 MB, free: 9.922 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.363e-05/0.2619, allocations: 43.12 kB / 445.3 MB, free: 9.867 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.044e-06/0.2619, allocations: 0 / 445.3 MB, free: 9.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.007079/0.2689, allocations: 2.882 MB / 448.2 MB, free: 6.852 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5e-05/0.269, allocations: 64.05 kB / 448.3 MB, free: 6.777 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004456/0.2694, allocations: 365.6 kB / 448.6 MB, free: 6.418 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.192e-05/0.2695, allocations: 53.69 kB / 448.7 MB, free: 6.359 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001568/0.2697, allocations: 197.6 kB / 448.9 MB, free: 6.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002301/0.2699, allocations: 265.8 kB / 449.1 MB, free: 5.898 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002562/0.2702, allocations: 142.5 kB / 449.3 MB, free: 5.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.2703, allocations: 358.8 kB / 449.6 MB, free: 5.391 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006507/0.271, allocations: 313.9 kB / 449.9 MB, free: 5.086 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006835/0.2717, allocations: 369.3 kB / 450.3 MB, free: 4.719 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001033/0.2727, allocations: 0.489 MB / 450.8 MB, free: 4.219 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.2727, allocations: 0 / 450.8 MB, free: 4.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00204/0.2747, allocations: 0.9314 MB / 451.7 MB, free: 3.277 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.2748, allocations: 6.656 kB / 451.7 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.2748, allocations: 0 / 451.7 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001357/0.2761, allocations: 0.5824 MB / 452.3 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003776/0.2765, allocations: 95.88 kB / 452.4 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001644/0.2781, allocations: 1.092 MB / 453.5 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007473/0.2789, allocations: 111.9 kB / 453.6 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.003e-05/0.2789, allocations: 27.98 kB / 453.6 MB, free: 1.336 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.0003151/0.2793, allocations: 196 kB / 453.8 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/0.2794, allocations: 51.67 kB / 453.9 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000184/0.2796, allocations: 81.09 kB / 453.9 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.2796, allocations: 8 kB / 453.9 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.2796, allocations: 0 / 453.9 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.2796, allocations: 3.984 kB / 453.9 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003003/0.2826, allocations: 1.603 MB / 455.5 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.2826, allocations: 4 kB / 455.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004253/0.283, allocations: 83.89 kB / 455.6 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001226/0.2843, allocations: 0.5433 MB / 456.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.118e-05/0.2843, allocations: 27.97 kB / 456.2 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00157/0.2859, allocations: 1.085 MB / 457.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2859, allocations: 0 / 457.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002618/0.2885, allocations: 1.293 MB / 458.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003247/0.2888, allocations: 200.6 kB / 458.8 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001255/0.289, allocations: 24 kB / 458.8 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006761/0.2896, allocations: 107.9 kB / 458.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002855/0.2899, allocations: 128.4 kB / 459 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.716e-05/0.29, allocations: 31.95 kB / 459.1 MB, free: 11.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000301/0.2903, allocations: 259.1 kB / 459.3 MB, free: 11.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2903, allocations: 0 / 459.3 MB, free: 11.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005434/0.2908, allocations: 163.9 kB / 459.5 MB, free: 11.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.00136/0.2922, allocations: 393.3 kB / 459.9 MB, free: 11.08 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001694/0.2939, allocations: 0.723 MB / 460.6 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.2939, allocations: 0 / 460.6 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008719/0.2948, allocations: 412.6 kB / 461 MB, free: 9.961 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000762/0.2955, allocations: 113.6 kB / 461.1 MB, free: 9.852 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002715/0.2982, allocations: 1.488 MB / 462.6 MB, free: 8.328 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005009/0.2987, allocations: 0.8597 MB / 463.4 MB, free: 7.441 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001689/0.2989, allocations: 59.41 kB / 463.5 MB, free: 7.383 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2989, allocations: 0 / 463.5 MB, free: 7.383 MB / 366.1 MB Notification: Performance of Templates: time 0.01367/0.3126, allocations: 9.306 MB / 472.8 MB, free: 14.09 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 8.033983904868364]