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.000731/0.000731, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001056/0.001787, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0006281/0.0006281, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008915/0.00152, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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 0.8478/0.8478, allocations: 173.4 MB / 186 MB, free: 7.539 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.145/0.9928, allocations: 52.5 MB / 238.5 MB, free: 7.629 MB / 234.7 MB " [Timeout remaining time 179] 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.473e-06/1.473e-06, allocations: 0 / 239.7 MB, free: 6.379 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.002e-05/2.149e-05, allocations: 2.312 kB / 239.7 MB, free: 6.375 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002969/0.00299, allocations: 3.109 MB / 242.8 MB, free: 3.27 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001124/0.004115, allocations: 1.055 MB / 243.9 MB, free: 2.211 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001187/0.004233, allocations: 9.906 kB / 243.9 MB, free: 2.203 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001628/0.004396, allocations: 79.23 kB / 244 MB, free: 2.125 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001875/0.004584, allocations: 168.6 kB / 244.1 MB, free: 1.961 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003701/0.004954, allocations: 280.6 kB / 244.4 MB, free: 1.688 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004733/0.005427, allocations: 0.8088 MB / 245.2 MB, free: 0.8789 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001443/0.005571, allocations: 94.16 kB / 245.3 MB, free: 0.7812 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004083/0.00598, allocations: 0.5267 MB / 245.9 MB, free: 260 kB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002893/0.006269, allocations: 323.2 kB / 246.2 MB, free: 15.94 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.445e-05/0.006333, allocations: 61.19 kB / 246.2 MB, free: 15.88 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001645/0.006498, allocations: 112 kB / 246.3 MB, free: 15.77 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.322e-05/0.006591, allocations: 103.7 kB / 246.4 MB, free: 15.67 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001233/0.006714, allocations: 160.7 kB / 246.6 MB, free: 15.51 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003915/0.007106, allocations: 486.4 kB / 247.1 MB, free: 15.04 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.073e-05/0.007117, allocations: 7.922 kB / 247.1 MB, free: 15.03 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.007117, allocations: 1 kB / 247.1 MB, free: 15.03 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.007128, allocations: 0 / 247.1 MB, free: 15.03 MB / 250.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.000877/0.008005, allocations: 0.8824 MB / 248 MB, free: 14.12 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.676e-05/0.008032, allocations: 8.031 kB / 248 MB, free: 14.11 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.262e-05/0.008125, allocations: 76.81 kB / 248 MB, free: 14.04 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002593/0.008384, allocations: 257.4 kB / 248.3 MB, free: 13.77 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.921e-05/0.008413, allocations: 33.38 kB / 248.3 MB, free: 13.73 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.892e-05/0.008472, allocations: 53.75 kB / 248.4 MB, free: 13.68 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004615/0.008934, allocations: 475.8 kB / 248.8 MB, free: 13.21 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.008951, allocations: 8.141 kB / 248.9 MB, free: 13.2 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.177e-05/0.008982, allocations: 24.06 kB / 248.9 MB, free: 13.18 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.008991, allocations: 13.08 kB / 248.9 MB, free: 13.16 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003025/0.009294, allocations: 255.8 kB / 249.1 MB, free: 12.91 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001088/0.01038, allocations: 0.7947 MB / 249.9 MB, free: 12.1 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003815/0.01076, allocations: 269.5 kB / 250.2 MB, free: 11.82 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001392/0.0109, allocations: 138.2 kB / 250.3 MB, free: 11.68 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.779e-05/0.01094, allocations: 8.5 kB / 250.3 MB, free: 11.68 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.198e-05/0.01096, allocations: 39.06 kB / 250.4 MB, free: 11.63 MB / 250.7 MB Notification: Performance of pre-optimization done (n=58): time 1.492e-06/0.01096, allocations: 0 / 250.4 MB, free: 11.63 MB / 250.7 MB Notification: Performance of matching and sorting (n=64): time 0.002408/0.01337, allocations: 1.766 MB / 252.1 MB, free: 9.797 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.124e-05/0.0134, allocations: 60.06 kB / 252.2 MB, free: 9.727 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001602/0.01356, allocations: 282.9 kB / 252.5 MB, free: 9.438 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.319e-05/0.01361, allocations: 49.69 kB / 252.5 MB, free: 9.383 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.71e-05/0.01367, allocations: 173.9 kB / 252.7 MB, free: 9.207 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.01379, allocations: 238 kB / 252.9 MB, free: 8.973 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/0.01391, allocations: 134.5 kB / 253.1 MB, free: 8.836 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.062e-05/0.014, allocations: 358.7 kB / 253.4 MB, free: 8.477 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001619/0.01416, allocations: 129.9 kB / 253.5 MB, free: 8.348 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.01433, allocations: 201 kB / 253.7 MB, free: 8.141 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002865/0.01462, allocations: 299.4 kB / 254 MB, free: 7.84 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.01462, allocations: 0 / 254 MB, free: 7.84 MB / 250.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.0004994/0.01512, allocations: 474 kB / 254.5 MB, free: 7.367 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.01513, allocations: 4 kB / 254.5 MB, free: 7.363 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.01514, allocations: 4.031 kB / 254.5 MB, free: 7.359 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006051/0.01574, allocations: 0.5783 MB / 255.1 MB, free: 6.777 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001949/0.01594, allocations: 103.9 kB / 255.2 MB, free: 6.676 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000678/0.01662, allocations: 0.7962 MB / 256 MB, free: 5.855 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002145/0.01683, allocations: 75.91 kB / 256 MB, free: 5.781 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.631e-05/0.01686, allocations: 15.98 kB / 256.1 MB, free: 5.766 MB / 250.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.0001154/0.01697, allocations: 150.6 kB / 256.2 MB, free: 5.609 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.587e-05/0.01704, allocations: 51.95 kB / 256.3 MB, free: 5.559 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.277e-05/0.01711, allocations: 68.75 kB / 256.3 MB, free: 5.488 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.01711, allocations: 4 kB / 256.3 MB, free: 5.484 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.01712, allocations: 3.984 kB / 256.3 MB, free: 5.48 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.01712, allocations: 11.91 kB / 256.3 MB, free: 5.469 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.01814, allocations: 0.8022 MB / 257.1 MB, free: 4.641 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.01814, allocations: 0 / 257.1 MB, free: 4.641 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000228/0.01837, allocations: 103.8 kB / 257.3 MB, free: 4.539 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.01849, allocations: 79.59 kB / 257.3 MB, free: 4.461 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005734/0.01906, allocations: 0.5667 MB / 257.9 MB, free: 3.891 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.489e-05/0.01911, allocations: 19.97 kB / 257.9 MB, free: 3.871 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006718/0.01978, allocations: 0.7925 MB / 258.7 MB, free: 3.055 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.01978, allocations: 4 kB / 258.7 MB, free: 3.051 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000725/0.02051, allocations: 0.7259 MB / 259.4 MB, free: 2.305 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.908e-05/0.02057, allocations: 27.94 kB / 259.5 MB, free: 2.277 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000206/0.02077, allocations: 71.91 kB / 259.5 MB, free: 2.207 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001639/0.02094, allocations: 136.3 kB / 259.7 MB, free: 2.074 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.075e-05/0.02097, allocations: 23.95 kB / 259.7 MB, free: 2.051 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.462e-05/0.02104, allocations: 112.6 kB / 259.8 MB, free: 1.938 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02104, allocations: 0 / 259.8 MB, free: 1.938 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002749/0.02132, allocations: 160 kB / 260 MB, free: 1.781 MB / 250.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.0001721/0.02149, allocations: 136.3 kB / 260.1 MB, free: 1.641 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000503/0.02199, allocations: 450.9 kB / 260.5 MB, free: 1.195 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/0.022, allocations: 4 kB / 260.5 MB, free: 1.191 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002976/0.0223, allocations: 307.2 kB / 260.8 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005016/0.0228, allocations: 0.7699 MB / 261.6 MB, free: 15.99 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005044/0.02785, allocations: 1.027 MB / 262.6 MB, free: 14.92 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.418e-05/0.02792, allocations: 126.8 kB / 262.8 MB, free: 14.78 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001075/0.02803, allocations: 44.17 kB / 262.8 MB, free: 14.73 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001934/0.02822, allocations: 147.2 kB / 262.9 MB, free: 14.59 MB / 266.7 MB Notification: Performance of SimCode: time 6.61e-07/0.02822, allocations: 4 kB / 262.9 MB, free: 14.59 MB / 266.7 MB Notification: Performance of Templates: time 0.01275/0.04097, allocations: 12.89 MB / 275.8 MB, free: 1.848 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.714957559481263]