Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.0009594/0.0009594, allocations: 86.58 kB / 21.42 MB, free: 3.074 MB / 18.57 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.001001/0.001001, allocations: 163.6 kB / 24.82 MB, free: 8.773 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9328/0.9328, allocations: 177 MB / 205.1 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 273.3 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.878e-05/2.003e-05, allocations: 2.312 kB / 273.3 MB, free: 1.258 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003511/0.003531, allocations: 3.178 MB / 276.5 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001642/0.005172, allocations: 1.224 MB / 277.7 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002226/0.005395, allocations: 15.88 kB / 277.7 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002865/0.005681, allocations: 99.02 kB / 277.8 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004131/0.006095, allocations: 234.3 kB / 278.1 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005243/0.006619, allocations: 279.4 kB / 278.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007057/0.007325, allocations: 0.8656 MB / 279.2 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001651/0.00749, allocations: 93.56 kB / 279.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006094/0.008099, allocations: 0.5224 MB / 279.8 MB, free: 10.72 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003829/0.008482, allocations: 339.2 kB / 280.1 MB, free: 10.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.331e-05/0.008565, allocations: 64 kB / 280.2 MB, free: 10.33 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001947/0.00876, allocations: 123.9 kB / 280.3 MB, free: 10.21 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001395/0.008899, allocations: 187.4 kB / 280.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001643/0.009064, allocations: 235.4 kB / 280.7 MB, free: 9.793 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005723/0.009636, allocations: 0.6189 MB / 281.4 MB, free: 9.172 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.009639, allocations: 0 / 281.4 MB, free: 9.172 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.009639, allocations: 0 / 281.4 MB, free: 9.172 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.009648, allocations: 0 / 281.4 MB, free: 9.172 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.001028/0.01068, allocations: 0.9666 MB / 282.3 MB, free: 8.168 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.01071, allocations: 19.92 kB / 282.3 MB, free: 8.148 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002291/0.01094, allocations: 112.5 kB / 282.5 MB, free: 8.039 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003655/0.01131, allocations: 347.2 kB / 282.8 MB, free: 7.668 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.338e-05/0.01134, allocations: 37.38 kB / 282.8 MB, free: 7.633 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.3e-05/0.0114, allocations: 56.25 kB / 282.9 MB, free: 7.578 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005346/0.01194, allocations: 472 kB / 283.4 MB, free: 7.098 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.01195, allocations: 4.188 kB / 283.4 MB, free: 7.094 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.363e-05/0.01199, allocations: 20.12 kB / 283.4 MB, free: 7.074 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.012, allocations: 12 kB / 283.4 MB, free: 7.062 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003682/0.01236, allocations: 298.6 kB / 283.7 MB, free: 6.773 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001382/0.01375, allocations: 1.063 MB / 284.7 MB, free: 5.672 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004861/0.01423, allocations: 322.6 kB / 285.1 MB, free: 5.34 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001798/0.01441, allocations: 161.5 kB / 285.2 MB, free: 5.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.68e-05/0.01446, allocations: 16.66 kB / 285.2 MB, free: 5.16 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.462e-05/0.01448, allocations: 49.92 kB / 285.3 MB, free: 5.102 MB / 266.7 MB Notification: Performance of pre-optimization done (n=67): time 1.923e-06/0.01449, allocations: 0 / 285.3 MB, free: 5.102 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.002796/0.01728, allocations: 1.724 MB / 287 MB, free: 3.328 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.033e-05/0.01731, allocations: 60.06 kB / 287.1 MB, free: 3.254 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002309/0.01754, allocations: 366.5 kB / 287.4 MB, free: 2.883 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.09e-05/0.01759, allocations: 57.62 kB / 287.5 MB, free: 2.82 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000112/0.01771, allocations: 256.2 kB / 287.7 MB, free: 2.566 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001533/0.01786, allocations: 265.8 kB / 288 MB, free: 2.305 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001547/0.01801, allocations: 136.2 kB / 288.1 MB, free: 2.164 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.01818, allocations: 0.5351 MB / 288.7 MB, free: 1.617 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002251/0.0184, allocations: 141.9 kB / 288.8 MB, free: 1.477 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002035/0.01861, allocations: 221.9 kB / 289 MB, free: 1.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003164/0.01892, allocations: 301.5 kB / 289.3 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.01893, allocations: 0 / 289.3 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0007617/0.01969, allocations: 0.6061 MB / 289.9 MB, free: 340 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.0197, allocations: 4 kB / 289.9 MB, free: 336 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-06/0.01971, allocations: 7.938 kB / 289.9 MB, free: 328 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1095/0.1292, allocations: 426.4 kB / 290.3 MB, free: 25.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002867/0.1295, allocations: 90.95 kB / 290.4 MB, free: 25.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008956/0.1304, allocations: 1.065 MB / 291.5 MB, free: 24.31 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003646/0.1308, allocations: 82.92 kB / 291.6 MB, free: 24.31 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.714e-05/0.1308, allocations: 17.31 kB / 291.6 MB, free: 24.31 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.0001957/0.131, allocations: 203.3 kB / 291.8 MB, free: 24.15 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.1311, allocations: 75.69 kB / 291.9 MB, free: 24.15 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.54e-05/0.1312, allocations: 77.84 kB / 291.9 MB, free: 24.14 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.1312, allocations: 9.562 kB / 291.9 MB, free: 24.14 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.1312, allocations: 0 / 291.9 MB, free: 24.14 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.1312, allocations: 3.281 kB / 292 MB, free: 24.14 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001505/0.1327, allocations: 1.091 MB / 293 MB, free: 23.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.1328, allocations: 4.953 kB / 293 MB, free: 23.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002379/0.133, allocations: 83.19 kB / 293.1 MB, free: 23.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006694/0.1337, allocations: 433.7 kB / 293.6 MB, free: 23.85 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.875e-05/0.1337, allocations: 29.5 kB / 293.6 MB, free: 23.85 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006643/0.1344, allocations: 1.091 MB / 294.7 MB, free: 23.04 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.1344, allocations: 5.297 kB / 294.7 MB, free: 23.04 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/0.1355, allocations: 0.8788 MB / 295.6 MB, free: 22.82 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001885/0.1357, allocations: 122 kB / 295.7 MB, free: 22.82 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.285e-05/0.1357, allocations: 29.94 kB / 295.7 MB, free: 22.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002646/0.136, allocations: 68.72 kB / 295.8 MB, free: 22.82 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002249/0.1362, allocations: 147.3 kB / 295.9 MB, free: 22.81 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.631e-05/0.1363, allocations: 26.58 kB / 295.9 MB, free: 22.81 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001594/0.1364, allocations: 246 kB / 296.2 MB, free: 22.69 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1364, allocations: 3.844 kB / 296.2 MB, free: 22.69 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004385/0.1369, allocations: 159.5 kB / 296.3 MB, free: 22.69 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.0007546/0.1376, allocations: 372.8 kB / 296.7 MB, free: 22.59 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006974/0.1383, allocations: 491.6 kB / 297.2 MB, free: 22.56 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.1383, allocations: 0 / 297.2 MB, free: 22.56 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003814/0.1387, allocations: 307.9 kB / 297.5 MB, free: 22.54 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004617/0.1392, allocations: 173.2 kB / 297.7 MB, free: 22.52 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001569/0.1407, allocations: 1.182 MB / 298.8 MB, free: 21.88 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.833e-05/0.1408, allocations: 134 kB / 299 MB, free: 21.8 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001401/0.141, allocations: 52.17 kB / 299 MB, free: 21.79 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002401/0.1412, allocations: 176.3 kB / 299.2 MB, free: 21.72 MB / 266.7 MB Notification: Performance of SimCode: time 9.81e-07/0.1412, allocations: 0 / 299.2 MB, free: 21.72 MB / 266.7 MB Notification: Performance of Templates: time 0.01304/0.1542, allocations: 12.85 MB / 312 MB, free: 13.63 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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: 2.890296152792871]