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.001435/0.001435, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001481/0.001481, allocations: 168.6 kB / 25 MB, free: 8.863 MB / 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 0.9885/0.9885, allocations: 177.1 MB / 205.3 MB, free: 5.633 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.114e-06/2.114e-06, allocations: 3.984 kB / 273 MB, free: 1.855 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.494e-05/1.705e-05, allocations: 2.312 kB / 273 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002979/0.002996, allocations: 3.221 MB / 276.3 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001388/0.004384, allocations: 1.236 MB / 277.5 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001485/0.004533, allocations: 7.938 kB / 277.5 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002809/0.004814, allocations: 99.03 kB / 277.6 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003219/0.005135, allocations: 238.2 kB / 277.8 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003747/0.00551, allocations: 279.5 kB / 278.1 MB, free: 12.76 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007779/0.006288, allocations: 0.8656 MB / 279 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001736/0.006462, allocations: 97.55 kB / 279.1 MB, free: 11.79 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004873/0.006949, allocations: 0.5185 MB / 279.6 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003124/0.007261, allocations: 339.2 kB / 279.9 MB, free: 10.94 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.887e-05/0.00733, allocations: 64 kB / 280 MB, free: 10.88 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000158/0.007488, allocations: 119.9 kB / 280.1 MB, free: 10.76 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001481/0.007636, allocations: 187.4 kB / 280.3 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001627/0.007799, allocations: 235.4 kB / 280.5 MB, free: 10.34 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005191/0.008318, allocations: 0.619 MB / 281.1 MB, free: 9.723 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.008322, allocations: 3.984 kB / 281.1 MB, free: 9.719 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.008323, allocations: 0 / 281.1 MB, free: 9.719 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.008328, allocations: 0 / 281.1 MB, free: 9.719 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.001095/0.009424, allocations: 0.9588 MB / 282.1 MB, free: 8.723 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.009461, allocations: 8.031 kB / 282.1 MB, free: 8.715 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002614/0.009723, allocations: 120.5 kB / 282.2 MB, free: 8.598 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003876/0.01011, allocations: 347.2 kB / 282.6 MB, free: 8.227 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.588e-05/0.01015, allocations: 33.38 kB / 282.6 MB, free: 8.195 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.627e-05/0.01021, allocations: 52.33 kB / 282.6 MB, free: 8.145 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006659/0.01088, allocations: 0.5079 MB / 283.2 MB, free: 7.621 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/0.0109, allocations: 4.188 kB / 283.2 MB, free: 7.617 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.029e-05/0.01094, allocations: 24.12 kB / 283.2 MB, free: 7.594 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.548e-05/0.01095, allocations: 12 kB / 283.2 MB, free: 7.582 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005572/0.01151, allocations: 365.6 kB / 283.6 MB, free: 7.227 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001377/0.01289, allocations: 1.133 MB / 284.7 MB, free: 6.047 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006276/0.01351, allocations: 358.7 kB / 285 MB, free: 5.68 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002678/0.01378, allocations: 193.5 kB / 285.2 MB, free: 5.488 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.179e-05/0.01382, allocations: 16.66 kB / 285.2 MB, free: 5.469 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.457e-05/0.01385, allocations: 41.98 kB / 285.3 MB, free: 5.418 MB / 266.7 MB Notification: Performance of pre-optimization done (n=67): time 1.934e-06/0.01385, allocations: 4 kB / 285.3 MB, free: 5.414 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.003506/0.01736, allocations: 1.974 MB / 287.3 MB, free: 3.391 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.464e-05/0.01739, allocations: 63.94 kB / 287.3 MB, free: 3.312 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002556/0.01765, allocations: 374.7 kB / 287.7 MB, free: 2.934 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.109e-05/0.0177, allocations: 49.69 kB / 287.7 MB, free: 2.879 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.0178, allocations: 244.4 kB / 288 MB, free: 2.637 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001493/0.01795, allocations: 273.8 kB / 288.2 MB, free: 2.367 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001425/0.01809, allocations: 128.3 kB / 288.4 MB, free: 2.234 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.01822, allocations: 0.5313 MB / 288.9 MB, free: 1.691 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003058/0.01853, allocations: 189.9 kB / 289.1 MB, free: 1.504 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003171/0.01885, allocations: 261.9 kB / 289.3 MB, free: 1.238 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004452/0.01929, allocations: 337.6 kB / 289.7 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.01929, allocations: 0 / 289.7 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0009974/0.02029, allocations: 0.6998 MB / 290.4 MB, free: 196 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.02031, allocations: 4 kB / 290.4 MB, free: 192 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.02031, allocations: 4 kB / 290.4 MB, free: 188 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1077/0.128, allocations: 442.9 kB / 290.8 MB, free: 27.83 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002902/0.1283, allocations: 89.92 kB / 290.9 MB, free: 27.83 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001023/0.1294, allocations: 1.107 MB / 292 MB, free: 27.03 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004416/0.1298, allocations: 79 kB / 292.1 MB, free: 27.03 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.536e-05/0.1298, allocations: 25.94 kB / 292.1 MB, free: 27.03 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.0002249/0.1301, allocations: 204 kB / 292.3 MB, free: 26.87 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.1302, allocations: 74.2 kB / 292.4 MB, free: 26.87 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.141e-05/0.1303, allocations: 82.41 kB / 292.5 MB, free: 26.86 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.1303, allocations: 6.781 kB / 292.5 MB, free: 26.86 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.1303, allocations: 0 / 292.5 MB, free: 26.86 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.1303, allocations: 8.609 kB / 292.5 MB, free: 26.86 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001844/0.1322, allocations: 1.203 MB / 293.7 MB, free: 26.56 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.1322, allocations: 1.719 kB / 293.7 MB, free: 26.56 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002658/0.1324, allocations: 84.78 kB / 293.8 MB, free: 26.56 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007592/0.1332, allocations: 444.7 kB / 294.2 MB, free: 26.46 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.576e-05/0.1332, allocations: 31.2 kB / 294.2 MB, free: 26.45 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008563/0.1341, allocations: 1.12 MB / 295.3 MB, free: 25.57 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1341, allocations: 5.719 kB / 295.4 MB, free: 25.57 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00148/0.1356, allocations: 0.9894 MB / 296.3 MB, free: 25.2 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002262/0.1358, allocations: 122.3 kB / 296.5 MB, free: 25.16 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.057e-05/0.1359, allocations: 25.67 kB / 296.5 MB, free: 25.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002896/0.1362, allocations: 72.03 kB / 296.6 MB, free: 25.14 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002391/0.1364, allocations: 145.1 kB / 296.7 MB, free: 25.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.562e-05/0.1365, allocations: 31.73 kB / 296.7 MB, free: 25.1 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001873/0.1367, allocations: 258.9 kB / 297 MB, free: 24.95 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1367, allocations: 1.531 kB / 297 MB, free: 24.95 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004665/0.1371, allocations: 162.5 kB / 297.1 MB, free: 24.93 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.0008387/0.138, allocations: 378 kB / 297.5 MB, free: 24.8 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.139, allocations: 0.5464 MB / 298.1 MB, free: 24.71 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.139, allocations: 0 / 298.1 MB, free: 24.71 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005386/0.1396, allocations: 344.9 kB / 298.4 MB, free: 24.62 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005531/0.1401, allocations: 174.1 kB / 298.6 MB, free: 24.57 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001906/0.142, allocations: 1.198 MB / 299.8 MB, free: 23.84 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001016/0.1421, allocations: 132.1 kB / 299.9 MB, free: 23.77 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000163/0.1423, allocations: 52.55 kB / 299.9 MB, free: 23.75 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001257/0.1424, allocations: 52.58 kB / 300 MB, free: 23.73 MB / 266.7 MB Notification: Performance of SimCode: time 1.624e-06/0.1424, allocations: 1.219 kB / 300 MB, free: 23.73 MB / 266.7 MB Notification: Performance of Templates: time 0.01275/0.1552, allocations: 11.83 MB / 311.8 MB, free: 15.53 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.004762548021972]