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.001765/0.001765, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.00221/0.00221, allocations: 214.7 kB / 23.74 MB, free: 4.656 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.511/1.511, allocations: 230.6 MB / 257.5 MB, free: 8.035 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.001682/0.001682, allocations: 51.91 kB / 378.3 MB, free: 2.672 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.2626, allocations: 53.36 MB / 431.6 MB, free: 7.141 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005062/0.2676, allocations: 3.283 MB / 434.9 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002364/0.27, allocations: 1.259 MB / 436.2 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002084/0.2702, allocations: 11.94 kB / 436.2 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003747/0.2706, allocations: 99.09 kB / 436.3 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004828/0.2711, allocations: 218.4 kB / 436.5 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005894/0.2717, allocations: 275.5 kB / 436.7 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009184/0.2726, allocations: 0.8581 MB / 437.6 MB, free: 1.125 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002163/0.2728, allocations: 100.7 kB / 437.7 MB, free: 1.023 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005693/0.2734, allocations: 394.8 kB / 438.1 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005619/0.2739, allocations: 410.6 kB / 438.5 MB, free: 240 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001079/0.274, allocations: 64 kB / 438.6 MB, free: 176 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002436/0.2743, allocations: 124 kB / 438.7 MB, free: 52 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000234/0.2745, allocations: 183.4 kB / 438.9 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003239/0.2748, allocations: 322.5 kB / 439.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009346/0.2758, allocations: 0.8016 MB / 440 MB, free: 14.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2758, allocations: 4 kB / 440 MB, free: 14.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2758, allocations: 0 / 440 MB, free: 14.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.968e-06/0.2758, allocations: 0 / 440 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.001937/0.2777, allocations: 0.8902 MB / 440.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/0.2778, allocations: 12.03 kB / 440.9 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003541/0.2781, allocations: 76.55 kB / 441 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006493/0.2788, allocations: 336.4 kB / 441.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.624e-05/0.2788, allocations: 41.31 kB / 441.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001055/0.2789, allocations: 48.33 kB / 441.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001231/0.2802, allocations: 0.623 MB / 442 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.195e-05/0.2802, allocations: 0 / 442 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.256e-05/0.2802, allocations: 20 kB / 442 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.406e-05/0.2803, allocations: 12 kB / 442 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001335/0.2816, allocations: 0.5855 MB / 442.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002609/0.2842, allocations: 1.325 MB / 443.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001188/0.2854, allocations: 486.3 kB / 444.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006621/0.2861, allocations: 286.7 kB / 444.7 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.827e-05/0.2861, allocations: 8.656 kB / 444.7 MB, free: 9.895 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.32e-05/0.2862, allocations: 43.22 kB / 444.7 MB, free: 9.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.104e-06/0.2862, allocations: 0 / 444.7 MB, free: 9.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.006933/0.2931, allocations: 2.524 MB / 447.3 MB, free: 7.273 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.36e-05/0.2932, allocations: 64.06 kB / 447.3 MB, free: 7.199 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004485/0.2936, allocations: 353.6 kB / 447.7 MB, free: 6.848 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.325e-05/0.2937, allocations: 53.69 kB / 447.7 MB, free: 6.789 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001696/0.2939, allocations: 197.6 kB / 447.9 MB, free: 6.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002386/0.2941, allocations: 269.9 kB / 448.2 MB, free: 6.324 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002386/0.2943, allocations: 134.6 kB / 448.3 MB, free: 6.184 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001849/0.2945, allocations: 358.8 kB / 448.7 MB, free: 5.824 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006753/0.2952, allocations: 305.9 kB / 449 MB, free: 5.527 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007242/0.2959, allocations: 373.4 kB / 449.3 MB, free: 5.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001045/0.297, allocations: 0.4893 MB / 449.8 MB, free: 4.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.297, allocations: 0 / 449.8 MB, free: 4.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002044/0.299, allocations: 0.9313 MB / 450.7 MB, free: 3.719 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.299, allocations: 4 kB / 450.7 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.299, allocations: 4 kB / 450.8 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001391/0.3004, allocations: 0.5707 MB / 451.3 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003857/0.3008, allocations: 99.81 kB / 451.4 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001657/0.3025, allocations: 1.101 MB / 452.5 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006901/0.3032, allocations: 111.9 kB / 452.6 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.948e-05/0.3032, allocations: 23.98 kB / 452.7 MB, free: 1.777 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.0002819/0.3035, allocations: 195.6 kB / 452.8 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.3036, allocations: 59.62 kB / 452.9 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001804/0.3038, allocations: 73.09 kB / 453 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.3038, allocations: 8 kB / 453 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.3038, allocations: 0 / 453 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.3038, allocations: 3.984 kB / 453 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003037/0.3069, allocations: 1.582 MB / 454.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.3069, allocations: 0 / 454.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004332/0.3073, allocations: 87.89 kB / 454.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001222/0.3085, allocations: 0.5434 MB / 455.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.099e-05/0.3086, allocations: 23.97 kB / 455.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001545/0.3102, allocations: 1.077 MB / 456.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3102, allocations: 0 / 456.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002681/0.3128, allocations: 1.3 MB / 457.6 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002935/0.3131, allocations: 123.6 kB / 457.7 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001283/0.3133, allocations: 35.97 kB / 457.8 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006485/0.3139, allocations: 95.88 kB / 457.8 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003045/0.3142, allocations: 140.3 kB / 458 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.396e-05/0.3143, allocations: 31.97 kB / 458 MB, free: 12.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003011/0.3146, allocations: 259.1 kB / 458.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3146, allocations: 0 / 458.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005419/0.3151, allocations: 156 kB / 458.4 MB, free: 11.9 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.001398/0.3165, allocations: 396.6 kB / 458.8 MB, free: 11.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001719/0.3182, allocations: 0.7191 MB / 459.5 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3182, allocations: 0 / 459.5 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009322/0.3192, allocations: 416.6 kB / 459.9 MB, free: 10.51 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007227/0.3199, allocations: 124.4 kB / 460.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002749/0.3226, allocations: 1.438 MB / 461.5 MB, free: 8.926 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005418/0.3232, allocations: 0.8713 MB / 462.4 MB, free: 8.023 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001863/0.3234, allocations: 44.42 kB / 462.4 MB, free: 7.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001405/0.3235, allocations: 47.41 kB / 462.5 MB, free: 7.934 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3235, allocations: 0 / 462.5 MB, free: 7.934 MB / 366.1 MB Notification: Performance of Templates: time 0.02419/0.3477, allocations: 14.51 MB / 477 MB, free: 9.508 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.1128455200232565]