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.0009158/0.0009158, allocations: 80.81 kB / 21.5 MB, free: 2.828 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.0009033/0.0009033, allocations: 164.4 kB / 24.91 MB, free: 9.258 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.9455/0.9455, allocations: 177 MB / 205.2 MB, free: 5.441 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.362e-06/1.362e-06, allocations: 0 / 273.4 MB, free: 1.18 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.061e-05/1.197e-05, allocations: 2.312 kB / 273.4 MB, free: 1.176 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002974/0.002986, allocations: 3.23 MB / 276.6 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001656/0.004642, allocations: 1.266 MB / 277.9 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001287/0.00477, allocations: 7.938 kB / 277.9 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002429/0.005013, allocations: 99.05 kB / 278 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000291/0.005304, allocations: 242.2 kB / 278.3 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003055/0.00561, allocations: 283.4 kB / 278.5 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000507/0.006117, allocations: 0.8656 MB / 279.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001467/0.006263, allocations: 102.2 kB / 279.5 MB, free: 11.05 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004534/0.006717, allocations: 0.5185 MB / 280 MB, free: 10.54 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003137/0.007031, allocations: 331.3 kB / 280.3 MB, free: 10.21 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.814e-05/0.007099, allocations: 64 kB / 280.4 MB, free: 10.15 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001596/0.007258, allocations: 135.8 kB / 280.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001272/0.007386, allocations: 183.4 kB / 280.7 MB, free: 9.836 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001469/0.007532, allocations: 235.4 kB / 280.9 MB, free: 9.605 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004568/0.007989, allocations: 0.6152 MB / 281.6 MB, free: 8.988 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.753e-06/0.007991, allocations: 0 / 281.6 MB, free: 8.988 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.007992, allocations: 0 / 281.6 MB, free: 8.988 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.007996, allocations: 0 / 281.6 MB, free: 8.988 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.0009197/0.008916, allocations: 0.8263 MB / 282.4 MB, free: 8.137 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.886e-05/0.008945, allocations: 19.97 kB / 282.4 MB, free: 8.117 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001816/0.009126, allocations: 88.86 kB / 282.5 MB, free: 8.031 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002982/0.009425, allocations: 292.5 kB / 282.8 MB, free: 7.715 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.013e-05/0.009455, allocations: 37.38 kB / 282.8 MB, free: 7.68 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.654e-05/0.009511, allocations: 52.33 kB / 282.9 MB, free: 7.629 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004618/0.009973, allocations: 466.3 kB / 283.3 MB, free: 7.156 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.009992, allocations: 12.06 kB / 283.3 MB, free: 7.145 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.943e-05/0.01002, allocations: 20.12 kB / 283.3 MB, free: 7.125 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.01003, allocations: 12 kB / 283.4 MB, free: 7.113 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003121/0.01034, allocations: 250.8 kB / 283.6 MB, free: 6.871 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009655/0.01131, allocations: 0.8019 MB / 284.4 MB, free: 6.047 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006352/0.01194, allocations: 294.2 kB / 284.7 MB, free: 5.75 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001521/0.0121, allocations: 142.8 kB / 284.8 MB, free: 5.609 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.763e-05/0.01213, allocations: 8.656 kB / 284.8 MB, free: 5.602 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.01216, allocations: 47.16 kB / 284.9 MB, free: 5.547 MB / 266.7 MB Notification: Performance of pre-optimization done (n=67): time 1.543e-06/0.01216, allocations: 0 / 284.9 MB, free: 5.547 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.002262/0.01442, allocations: 1.635 MB / 286.5 MB, free: 3.863 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.742e-05/0.01445, allocations: 56.06 kB / 286.6 MB, free: 3.797 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001836/0.01463, allocations: 313 kB / 286.9 MB, free: 3.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.278e-05/0.01468, allocations: 49.69 kB / 286.9 MB, free: 3.426 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.318e-05/0.01474, allocations: 182.1 kB / 287.1 MB, free: 3.246 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001225/0.01486, allocations: 257.8 kB / 287.4 MB, free: 2.992 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001304/0.01499, allocations: 146.5 kB / 287.5 MB, free: 2.844 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.466e-05/0.01508, allocations: 358.6 kB / 287.9 MB, free: 2.484 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001597/0.01524, allocations: 118 kB / 288 MB, free: 2.367 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/0.01541, allocations: 189.4 kB / 288.2 MB, free: 2.176 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002765/0.01568, allocations: 291.7 kB / 288.4 MB, free: 1.879 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.01568, allocations: 4 kB / 288.4 MB, free: 1.875 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0005636/0.01625, allocations: 0.4883 MB / 288.9 MB, free: 1.379 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.01626, allocations: 6.812 kB / 288.9 MB, free: 1.375 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.01626, allocations: 0 / 288.9 MB, free: 1.375 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005093/0.01677, allocations: 396.5 kB / 289.3 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001798/0.01695, allocations: 99.83 kB / 289.4 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005571/0.01751, allocations: 0.7704 MB / 290.2 MB, free: 88 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002231/0.01773, allocations: 79.91 kB / 290.3 MB, free: 8 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.09576/0.1135, allocations: 14.48 kB / 290.3 MB, free: 25.13 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.0002316/0.1137, allocations: 156.9 kB / 290.4 MB, free: 25.01 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.1138, allocations: 55.33 kB / 290.5 MB, free: 25.01 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.768e-05/0.1139, allocations: 75.08 kB / 290.6 MB, free: 25 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.1139, allocations: 7.891 kB / 290.6 MB, free: 25 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1139, allocations: 5.531 kB / 290.6 MB, free: 25 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.1139, allocations: 3.516 kB / 290.6 MB, free: 25 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001174/0.1151, allocations: 0.8134 MB / 291.4 MB, free: 24.81 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1151, allocations: 1.594 kB / 291.4 MB, free: 24.81 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002442/0.1153, allocations: 90.91 kB / 291.5 MB, free: 24.81 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005063/0.1159, allocations: 398.2 kB / 291.9 MB, free: 24.8 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.056e-05/0.1159, allocations: 27.52 kB / 291.9 MB, free: 24.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005302/0.1164, allocations: 0.7892 MB / 292.7 MB, free: 24.27 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1164, allocations: 1.344 kB / 292.7 MB, free: 24.27 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008612/0.1173, allocations: 0.6954 MB / 293.4 MB, free: 24.11 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001435/0.1174, allocations: 85.75 kB / 293.5 MB, free: 24.11 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.163e-05/0.1175, allocations: 30.27 kB / 293.5 MB, free: 24.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002357/0.1177, allocations: 70.33 kB / 293.6 MB, free: 24.11 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001936/0.1179, allocations: 137 kB / 293.7 MB, free: 24.1 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.704e-05/0.118, allocations: 29.86 kB / 293.7 MB, free: 24.1 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001127/0.1181, allocations: 128.8 kB / 293.9 MB, free: 24.09 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1181, allocations: 3.828 kB / 293.9 MB, free: 24.09 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003253/0.1184, allocations: 156.1 kB / 294 MB, free: 24.09 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.0009091/0.1193, allocations: 464.7 kB / 294.5 MB, free: 23.98 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006298/0.1199, allocations: 434.9 kB / 294.9 MB, free: 23.95 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.593e-06/0.1199, allocations: 3.281 kB / 294.9 MB, free: 23.95 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003391/0.1203, allocations: 292.2 kB / 295.2 MB, free: 23.93 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003896/0.1207, allocations: 167 kB / 295.3 MB, free: 23.91 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001331/0.122, allocations: 1.042 MB / 296.4 MB, free: 23.41 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.836e-05/0.1221, allocations: 133.1 kB / 296.5 MB, free: 23.34 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001259/0.1222, allocations: 47.62 kB / 296.6 MB, free: 23.33 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002165/0.1224, allocations: 148.4 kB / 296.7 MB, free: 23.28 MB / 266.7 MB Notification: Performance of SimCode: time 5.21e-07/0.1224, allocations: 0 / 296.7 MB, free: 23.28 MB / 266.7 MB Notification: Performance of Templates: time 0.01202/0.1344, allocations: 12.68 MB / 309.4 MB, free: 16.08 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 -s gbode -gbm=radauIIA3 -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.8676457502879202]