Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001478/0.001478, allocations: 92.62 kB / 20.96 MB, free: 3.477 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001465/0.001465, allocations: 153.4 kB / 24.26 MB, free: 184 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.506/1.506, allocations: 173.4 MB / 200.8 MB, free: 9.32 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.853e-06/1.853e-06, allocations: 0 / 267.3 MB, free: 6.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.232e-05/3.417e-05, allocations: 2.312 kB / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004831/0.004865, allocations: 2.868 MB / 270.2 MB, free: 3.859 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002126/0.006991, allocations: 1.013 MB / 271.2 MB, free: 2.84 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001763/0.007167, allocations: 7.938 kB / 271.2 MB, free: 2.832 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002642/0.007432, allocations: 75.3 kB / 271.3 MB, free: 2.758 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005684/0.008, allocations: 174.5 kB / 271.4 MB, free: 2.586 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007388/0.008739, allocations: 287.4 kB / 271.7 MB, free: 2.305 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009088/0.009647, allocations: 0.8226 MB / 272.5 MB, free: 1.477 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002087/0.009856, allocations: 85.58 kB / 272.6 MB, free: 1.387 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006901/0.01055, allocations: 495 kB / 273.1 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004751/0.01102, allocations: 323.2 kB / 273.4 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001069/0.01113, allocations: 60 kB / 273.5 MB, free: 0.5273 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002286/0.01136, allocations: 111.9 kB / 273.6 MB, free: 428 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002015/0.01156, allocations: 155.5 kB / 273.8 MB, free: 272 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002769/0.01184, allocations: 219.5 kB / 274 MB, free: 52 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001023/0.01286, allocations: 0.7944 MB / 274.8 MB, free: 15.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.01286, allocations: 0 / 274.8 MB, free: 15.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.01286, allocations: 0 / 274.8 MB, free: 15.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.935e-06/0.01287, allocations: 3.938 kB / 274.8 MB, free: 15.25 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001897/0.01477, allocations: 0.8127 MB / 275.6 MB, free: 14.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.01481, allocations: 12.02 kB / 275.6 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002266/0.01504, allocations: 104.5 kB / 275.7 MB, free: 14.29 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005866/0.01562, allocations: 305.3 kB / 276 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.214e-05/0.01568, allocations: 37.38 kB / 276 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001168/0.01579, allocations: 48.33 kB / 276.1 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001275/0.01707, allocations: 0.6117 MB / 276.7 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.569e-05/0.01709, allocations: 8.141 kB / 276.7 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.651e-05/0.01716, allocations: 20.12 kB / 276.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.486e-05/0.01717, allocations: 12 kB / 276.7 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001355/0.01853, allocations: 0.6011 MB / 277.3 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002406/0.02093, allocations: 1.092 MB / 278.4 MB, free: 11.49 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00128/0.02222, allocations: 433.5 kB / 278.8 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006409/0.02286, allocations: 290.2 kB / 279.1 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.013e-05/0.02291, allocations: 8.5 kB / 279.1 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.174e-05/0.02295, allocations: 47.06 kB / 279.2 MB, free: 10.7 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 1.543e-06/0.02295, allocations: 0 / 279.2 MB, free: 10.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=64): time 0.006812/0.02976, allocations: 2.509 MB / 281.7 MB, free: 8.145 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.205e-05/0.02981, allocations: 56.06 kB / 281.7 MB, free: 8.074 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003926/0.03021, allocations: 320.5 kB / 282.1 MB, free: 7.758 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.245e-05/0.03029, allocations: 49.69 kB / 282.1 MB, free: 7.703 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001803/0.03047, allocations: 201.5 kB / 282.3 MB, free: 7.504 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002363/0.0307, allocations: 230.1 kB / 282.5 MB, free: 7.277 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002584/0.03096, allocations: 138.6 kB / 282.7 MB, free: 7.137 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000206/0.03117, allocations: 354.8 kB / 283 MB, free: 6.781 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006912/0.03186, allocations: 321.8 kB / 283.3 MB, free: 6.465 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007566/0.03262, allocations: 385 kB / 283.7 MB, free: 6.082 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001115/0.03373, allocations: 0.5067 MB / 284.2 MB, free: 5.566 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.03373, allocations: 4 kB / 284.2 MB, free: 5.562 MB / 266.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002034/0.03577, allocations: 0.9429 MB / 285.1 MB, free: 4.609 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.03579, allocations: 4 kB / 285.2 MB, free: 4.605 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.03579, allocations: 0 / 285.2 MB, free: 4.605 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001535/0.03733, allocations: 0.7302 MB / 285.9 MB, free: 3.875 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004224/0.03775, allocations: 107.8 kB / 286 MB, free: 3.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001675/0.03943, allocations: 1.095 MB / 287.1 MB, free: 2.648 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007339/0.04016, allocations: 107.9 kB / 287.2 MB, free: 2.543 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.466e-05/0.04022, allocations: 27.98 kB / 287.2 MB, free: 2.516 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 (64): * Single equations (assignments): 63 * 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,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0003011/0.04053, allocations: 179.9 kB / 287.4 MB, free: 2.328 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001713/0.0407, allocations: 71.66 kB / 287.5 MB, free: 2.258 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001741/0.04087, allocations: 68.75 kB / 287.5 MB, free: 2.184 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.04088, allocations: 8 kB / 287.5 MB, free: 2.176 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.04089, allocations: 0 / 287.5 MB, free: 2.176 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.0409, allocations: 3.984 kB / 287.5 MB, free: 2.172 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002983/0.04388, allocations: 1.379 MB / 288.9 MB, free: 0.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.04388, allocations: 0 / 288.9 MB, free: 0.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004645/0.04435, allocations: 87.89 kB / 289 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1215/0.1658, allocations: 0.7054 MB / 289.7 MB, free: 33.14 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001873/0.166, allocations: 21.75 kB / 289.7 MB, free: 33.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00134/0.1674, allocations: 1.066 MB / 290.8 MB, free: 32.63 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.1674, allocations: 1.266 kB / 290.8 MB, free: 32.63 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002563/0.1699, allocations: 1.326 MB / 292.1 MB, free: 32.33 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003001/0.1702, allocations: 114.1 kB / 292.2 MB, free: 32.3 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.1703, allocations: 22.44 kB / 292.3 MB, free: 32.29 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006349/0.171, allocations: 101.2 kB / 292.4 MB, free: 32.29 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000296/0.1713, allocations: 128.8 kB / 292.5 MB, free: 32.26 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.705e-05/0.1713, allocations: 29.3 kB / 292.5 MB, free: 32.26 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002082/0.1715, allocations: 224.2 kB / 292.7 MB, free: 32.14 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1715, allocations: 1.5 kB / 292.7 MB, free: 32.14 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005447/0.1721, allocations: 162.8 kB / 292.9 MB, free: 32.12 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,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000228/0.1723, allocations: 152.1 kB / 293 MB, free: 32.02 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00152/0.1738, allocations: 0.7232 MB / 293.8 MB, free: 31.8 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.1738, allocations: 0 / 293.8 MB, free: 31.8 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008022/0.1746, allocations: 416.7 kB / 294.2 MB, free: 31.68 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007036/0.1753, allocations: 133.3 kB / 294.3 MB, free: 31.64 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002198/0.1775, allocations: 1.227 MB / 295.5 MB, free: 31 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002323/0.1777, allocations: 248.5 kB / 295.8 MB, free: 30.9 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001923/0.1779, allocations: 44.95 kB / 295.8 MB, free: 30.89 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001363/0.1781, allocations: 46.94 kB / 295.9 MB, free: 30.88 MB / 266.7 MB Notification: Performance of SimCode: time 1.022e-06/0.1781, allocations: 0 / 295.9 MB, free: 30.88 MB / 266.7 MB Notification: Performance of Templates: time 0.01541/0.1935, allocations: 11.5 MB / 307.4 MB, free: 24 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.742703700903803]