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.0009907/0.0009907, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 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.001084/0.001084, allocations: 161 kB / 24.56 MB, free: 12 kB / 18.57 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.033/1.033, allocations: 177.1 MB / 205 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] 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 2.054e-06/2.054e-06, allocations: 0 / 273 MB, free: 1.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.95e-05/3.155e-05, allocations: 2.312 kB / 273 MB, free: 1.562 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005261/0.005292, allocations: 3.236 MB / 276.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001869/0.007161, allocations: 1.232 MB / 277.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002264/0.007387, allocations: 15.88 kB / 277.5 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003431/0.007731, allocations: 95.03 kB / 277.5 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004515/0.008182, allocations: 234.2 kB / 277.8 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005144/0.008696, allocations: 287.4 kB / 278.1 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007119/0.009408, allocations: 0.8656 MB / 278.9 MB, free: 11.58 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002064/0.009615, allocations: 93.55 kB / 279 MB, free: 11.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005936/0.01021, allocations: 0.5224 MB / 279.5 MB, free: 10.96 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003575/0.01057, allocations: 335.3 kB / 279.9 MB, free: 10.63 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.245e-05/0.01065, allocations: 60 kB / 279.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001978/0.01085, allocations: 123.9 kB / 280 MB, free: 10.45 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001626/0.01101, allocations: 187.4 kB / 280.2 MB, free: 10.27 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001963/0.01121, allocations: 235.4 kB / 280.5 MB, free: 10.04 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006082/0.01181, allocations: 0.619 MB / 281.1 MB, free: 9.418 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.01182, allocations: 4 kB / 281.1 MB, free: 9.414 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.01182, allocations: 0 / 281.1 MB, free: 9.414 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.01183, allocations: 0 / 281.1 MB, free: 9.414 MB / 266.7 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.001124/0.01295, allocations: 0.9588 MB / 282 MB, free: 8.418 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.01299, allocations: 12.03 kB / 282 MB, free: 8.406 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002722/0.01326, allocations: 112.5 kB / 282.2 MB, free: 8.297 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004117/0.01367, allocations: 355.2 kB / 282.5 MB, free: 7.918 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.726e-05/0.01371, allocations: 33.38 kB / 282.5 MB, free: 7.887 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.21e-05/0.01378, allocations: 48.33 kB / 282.6 MB, free: 7.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006811/0.01446, allocations: 0.5117 MB / 283.1 MB, free: 7.312 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.01448, allocations: 4.172 kB / 283.1 MB, free: 7.309 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.833e-05/0.01452, allocations: 24.12 kB / 283.1 MB, free: 7.285 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.248e-05/0.01453, allocations: 12 kB / 283.1 MB, free: 7.273 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005353/0.01507, allocations: 353.7 kB / 283.5 MB, free: 6.93 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001434/0.0165, allocations: 1.136 MB / 284.6 MB, free: 5.746 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000642/0.01714, allocations: 362.7 kB / 285 MB, free: 5.375 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002554/0.0174, allocations: 193.5 kB / 285.2 MB, free: 5.184 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.06e-05/0.01745, allocations: 12.66 kB / 285.2 MB, free: 5.168 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.395e-05/0.01747, allocations: 42.05 kB / 285.2 MB, free: 5.117 MB / 266.7 MB Notification: Performance of pre-optimization done (n=67): time 1.694e-06/0.01747, allocations: 0 / 285.2 MB, free: 5.117 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.003298/0.02077, allocations: 1.977 MB / 287.2 MB, free: 3.09 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.527e-05/0.02081, allocations: 64 kB / 287.3 MB, free: 3.012 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002588/0.02107, allocations: 374.7 kB / 287.6 MB, free: 2.633 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.661e-05/0.02111, allocations: 49.7 kB / 287.7 MB, free: 2.578 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.02122, allocations: 248.3 kB / 287.9 MB, free: 2.332 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001427/0.02136, allocations: 273.7 kB / 288.2 MB, free: 2.062 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001509/0.02151, allocations: 132.3 kB / 288.3 MB, free: 1.926 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.02165, allocations: 0.5352 MB / 288.8 MB, free: 1.379 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002997/0.02195, allocations: 181.9 kB / 289 MB, free: 1.199 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003069/0.02226, allocations: 265.9 kB / 289.3 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004203/0.02268, allocations: 329.6 kB / 289.6 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.02268, allocations: 0 / 289.6 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.1127/0.1354, allocations: 0.6889 MB / 290.3 MB, free: 25.07 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.714e-05/0.1354, allocations: 9.438 kB / 290.3 MB, free: 25.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.1354, allocations: 2.094 kB / 290.3 MB, free: 25.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000961/0.1364, allocations: 452.3 kB / 290.7 MB, free: 25.05 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002881/0.1367, allocations: 91.83 kB / 290.8 MB, free: 25.05 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008977/0.1376, allocations: 1.1 MB / 291.9 MB, free: 24.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000368/0.1379, allocations: 77.84 kB / 292 MB, free: 24.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.265e-05/0.138, allocations: 25.22 kB / 292 MB, free: 24.25 MB / 266.7 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.0001772/0.1382, allocations: 204.7 kB / 292.2 MB, free: 24.09 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000117/0.1383, allocations: 81.42 kB / 292.3 MB, free: 24.09 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.551e-05/0.1384, allocations: 75.38 kB / 292.4 MB, free: 24.08 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.1384, allocations: 8.281 kB / 292.4 MB, free: 24.08 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.1384, allocations: 3.344 kB / 292.4 MB, free: 24.08 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.1384, allocations: 3.562 kB / 292.4 MB, free: 24.08 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001852/0.1402, allocations: 1.21 MB / 293.6 MB, free: 23.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.1402, allocations: 0 / 293.6 MB, free: 23.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002404/0.1405, allocations: 84.98 kB / 293.7 MB, free: 23.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007448/0.1412, allocations: 441.2 kB / 294.1 MB, free: 23.75 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.136e-05/0.1413, allocations: 25.75 kB / 294.2 MB, free: 23.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008103/0.1421, allocations: 1.136 MB / 295.3 MB, free: 22.93 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1421, allocations: 1.125 kB / 295.3 MB, free: 22.93 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001438/0.1435, allocations: 0.9878 MB / 296.3 MB, free: 22.7 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001967/0.1437, allocations: 123.1 kB / 296.4 MB, free: 22.7 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.943e-05/0.1438, allocations: 24.41 kB / 296.4 MB, free: 22.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002737/0.1441, allocations: 70.09 kB / 296.5 MB, free: 22.7 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002316/0.1443, allocations: 146.3 kB / 296.6 MB, free: 22.7 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.617e-05/0.1444, allocations: 37.05 kB / 296.7 MB, free: 22.7 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001862/0.1445, allocations: 259.2 kB / 296.9 MB, free: 22.57 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1445, allocations: 0 / 296.9 MB, free: 22.57 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004134/0.145, allocations: 165.8 kB / 297.1 MB, free: 22.57 MB / 266.7 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.0007534/0.1457, allocations: 365.6 kB / 297.4 MB, free: 22.46 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009202/0.1466, allocations: 0.5524 MB / 298 MB, free: 22.43 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1466, allocations: 1.062 kB / 298 MB, free: 22.43 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004791/0.1471, allocations: 341.2 kB / 298.3 MB, free: 22.4 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004761/0.1476, allocations: 172 kB / 298.5 MB, free: 22.35 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001811/0.1494, allocations: 1.199 MB / 299.7 MB, free: 21.63 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.981e-05/0.1495, allocations: 141.1 kB / 299.8 MB, free: 21.55 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001341/0.1496, allocations: 47.23 kB / 299.9 MB, free: 21.54 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.1497, allocations: 49.48 kB / 299.9 MB, free: 21.52 MB / 266.7 MB Notification: Performance of SimCode: time 7.21e-07/0.1497, allocations: 3.562 kB / 299.9 MB, free: 21.52 MB / 266.7 MB Notification: Performance of Templates: time 0.01322/0.163, allocations: 11.84 MB / 311.8 MB, free: 13.94 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2936566257849336]