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.0007815/0.0007815, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.002923/0.002923, allocations: 164 kB / 24.7 MB, free: 9.418 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.8335/0.8335, allocations: 177.1 MB / 205 MB, free: 5.723 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 1.644e-06/1.644e-06, allocations: 0 / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.004e-05/2.168e-05, allocations: 6.281 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003343/0.003364, allocations: 3.011 MB / 328.8 MB, free: 12.4 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001369/0.004734, allocations: 1.216 MB / 330.1 MB, free: 11.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.004878, allocations: 15.88 kB / 330.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002623/0.00514, allocations: 91.09 kB / 330.2 MB, free: 11.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002933/0.005434, allocations: 234.2 kB / 330.4 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003484/0.005782, allocations: 283.4 kB / 330.7 MB, free: 10.56 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009822/0.006764, allocations: 0.87 MB / 331.5 MB, free: 9.691 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001824/0.006947, allocations: 93.36 kB / 331.6 MB, free: 9.602 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004894/0.007436, allocations: 0.5146 MB / 332.1 MB, free: 9.086 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003218/0.007758, allocations: 339.2 kB / 332.5 MB, free: 8.754 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.883e-05/0.007827, allocations: 64 kB / 332.5 MB, free: 8.691 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001551/0.007982, allocations: 123.9 kB / 332.7 MB, free: 8.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00016/0.008142, allocations: 183.4 kB / 332.8 MB, free: 8.391 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001542/0.008296, allocations: 235.4 kB / 333.1 MB, free: 8.16 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006071/0.008903, allocations: 0.8567 MB / 333.9 MB, free: 7.301 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.008905, allocations: 0 / 333.9 MB, free: 7.301 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.008906, allocations: 0 / 333.9 MB, free: 7.301 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.008912, allocations: 0 / 333.9 MB, free: 7.301 MB / 298.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.001064/0.009976, allocations: 0.8779 MB / 334.8 MB, free: 6.395 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.01001, allocations: 12.03 kB / 334.8 MB, free: 6.383 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000197/0.01021, allocations: 88.48 kB / 334.9 MB, free: 6.297 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004147/0.01062, allocations: 331.7 kB / 335.2 MB, free: 5.945 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.369e-05/0.01066, allocations: 37.36 kB / 335.3 MB, free: 5.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.44e-05/0.01073, allocations: 52.33 kB / 335.3 MB, free: 5.859 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007292/0.01146, allocations: 0.6117 MB / 335.9 MB, free: 5.234 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.246e-05/0.01148, allocations: 12.19 kB / 335.9 MB, free: 5.223 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.954e-05/0.01152, allocations: 20.12 kB / 336 MB, free: 5.203 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.01153, allocations: 8 kB / 336 MB, free: 5.195 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007451/0.01228, allocations: 0.5816 MB / 336.5 MB, free: 4.617 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00141/0.01369, allocations: 1.107 MB / 337.6 MB, free: 3.469 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006676/0.01436, allocations: 482.1 kB / 338.1 MB, free: 2.984 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003508/0.01471, allocations: 306.6 kB / 338.4 MB, free: 2.684 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.214e-05/0.01475, allocations: 8.656 kB / 338.4 MB, free: 2.676 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002715/0.01502, allocations: 39.2 kB / 338.5 MB, free: 2.625 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 1.673e-06/0.01502, allocations: 4 kB / 338.5 MB, free: 2.621 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.00375/0.01877, allocations: 2.52 MB / 341 MB, free: 56 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.553e-05/0.01882, allocations: 60 kB / 341 MB, free: 15.98 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002435/0.01906, allocations: 357.6 kB / 341.4 MB, free: 15.62 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.645e-05/0.01911, allocations: 57.62 kB / 341.5 MB, free: 15.56 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.623e-05/0.0192, allocations: 201.6 kB / 341.6 MB, free: 15.36 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001338/0.01934, allocations: 261.9 kB / 341.9 MB, free: 15.11 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001416/0.01948, allocations: 130.6 kB / 342 MB, free: 14.97 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.709e-05/0.01958, allocations: 358.8 kB / 342.4 MB, free: 14.61 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003779/0.01995, allocations: 305.9 kB / 342.7 MB, free: 14.31 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003984/0.02035, allocations: 369.4 kB / 343 MB, free: 13.95 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006103/0.02096, allocations: 0.4893 MB / 343.5 MB, free: 13.45 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.02097, allocations: 0 / 343.5 MB, free: 13.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00116/0.02213, allocations: 0.9352 MB / 344.5 MB, free: 12.5 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.02214, allocations: 4 kB / 344.5 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.02215, allocations: 0 / 344.5 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007832/0.02293, allocations: 0.5747 MB / 345 MB, free: 11.92 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001821/0.02311, allocations: 87.89 kB / 345.1 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001261/0.02437, allocations: 1.105 MB / 346.2 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003142/0.02469, allocations: 111.9 kB / 346.3 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.256e-05/0.02472, allocations: 20 kB / 346.4 MB, free: 10.57 MB / 314.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.0001786/0.0249, allocations: 184 kB / 346.5 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.322e-05/0.02497, allocations: 59.62 kB / 346.6 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.746e-05/0.02506, allocations: 76.92 kB / 346.7 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.91e-06/0.02506, allocations: 8 kB / 346.7 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.02507, allocations: 7.984 kB / 346.7 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.82e-06/0.02508, allocations: 3.938 kB / 346.7 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001652/0.02673, allocations: 1.404 MB / 348.1 MB, free: 8.777 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.02673, allocations: 4 kB / 348.1 MB, free: 8.773 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002066/0.02694, allocations: 87.89 kB / 348.2 MB, free: 8.688 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006649/0.0276, allocations: 0.5472 MB / 348.7 MB, free: 8.137 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.738e-05/0.02764, allocations: 27.97 kB / 348.8 MB, free: 8.109 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008881/0.02853, allocations: 1.073 MB / 349.8 MB, free: 7.012 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.02853, allocations: 0 / 349.8 MB, free: 7.012 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001511/0.03004, allocations: 1.289 MB / 351.1 MB, free: 5.699 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001662/0.03021, allocations: 123.5 kB / 351.2 MB, free: 5.578 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.877e-05/0.03027, allocations: 28 kB / 351.3 MB, free: 5.551 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002966/0.03057, allocations: 99.86 kB / 351.4 MB, free: 5.453 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001689/0.03074, allocations: 136.4 kB / 351.5 MB, free: 5.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.279e-05/0.03077, allocations: 35.91 kB / 351.5 MB, free: 5.285 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001597/0.03093, allocations: 255.2 kB / 351.8 MB, free: 5.035 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03093, allocations: 0 / 351.8 MB, free: 5.035 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003029/0.03124, allocations: 156 kB / 351.9 MB, free: 4.883 MB / 314.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.0006652/0.0319, allocations: 435.1 kB / 352.4 MB, free: 4.605 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00122/0.03312, allocations: 0.7231 MB / 353.1 MB, free: 3.887 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.03312, allocations: 0 / 353.1 MB, free: 3.887 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004844/0.03361, allocations: 420.5 kB / 353.5 MB, free: 3.473 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004163/0.03402, allocations: 113.5 kB / 353.6 MB, free: 3.367 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00144/0.03546, allocations: 1.279 MB / 354.9 MB, free: 2.059 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00015/0.03561, allocations: 263.5 kB / 355.1 MB, free: 1.773 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/0.03572, allocations: 60.41 kB / 355.2 MB, free: 1.711 MB / 314.7 MB Notification: Performance of SimCode: time 4.4e-07/0.03572, allocations: 0 / 355.2 MB, free: 1.711 MB / 314.7 MB Notification: Performance of Templates: time 0.00797/0.04369, allocations: 9.493 MB / 364.7 MB, free: 8.23 MB / 330.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=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: 4.71872513461858]