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.001045/0.001045, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001488/0.002534, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001031/0.001031, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001314/0.002344, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9394/0.9394, allocations: 177.2 MB / 189.8 MB, free: 5.262 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08092/1.02, allocations: 53.66 MB / 243.4 MB, free: 15.52 MB / 250.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.273e-06/1.273e-06, allocations: 0 / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.028e-05/1.155e-05, allocations: 6.25 kB / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.00277/0.002781, allocations: 3.243 MB / 247.9 MB, free: 10.98 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001626/0.004407, allocations: 1.29 MB / 249.2 MB, free: 9.68 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001618/0.004569, allocations: 7.938 kB / 249.2 MB, free: 9.672 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002231/0.004792, allocations: 95.09 kB / 249.3 MB, free: 9.578 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002957/0.005088, allocations: 238.2 kB / 249.6 MB, free: 9.344 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004352/0.005523, allocations: 271.5 kB / 249.8 MB, free: 9.078 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000595/0.006118, allocations: 0.8617 MB / 250.7 MB, free: 8.215 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001559/0.006274, allocations: 98.2 kB / 250.8 MB, free: 8.117 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005702/0.006844, allocations: 0.5683 MB / 251.4 MB, free: 7.547 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000338/0.007182, allocations: 339.2 kB / 251.7 MB, free: 7.215 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.213e-05/0.007254, allocations: 68 kB / 251.8 MB, free: 7.148 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001819/0.007436, allocations: 123.8 kB / 251.9 MB, free: 7.027 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001205/0.007556, allocations: 123.6 kB / 252 MB, free: 6.906 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001968/0.007753, allocations: 175.6 kB / 252.2 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004319/0.008185, allocations: 0.5294 MB / 252.7 MB, free: 6.203 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.789e-06/0.008195, allocations: 0 / 252.7 MB, free: 6.203 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.008196, allocations: 0 / 252.7 MB, free: 6.203 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.769e-06/0.008206, allocations: 0 / 252.7 MB, free: 6.203 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: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.0009445/0.00915, allocations: 0.9626 MB / 253.7 MB, free: 5.211 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.673e-05/0.009177, allocations: 8.031 kB / 253.7 MB, free: 5.203 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003648/0.009542, allocations: 170 kB / 253.8 MB, free: 5.02 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003088/0.00985, allocations: 296.5 kB / 254.1 MB, free: 4.703 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.517e-05/0.009886, allocations: 37.36 kB / 254.2 MB, free: 4.664 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.383e-05/0.009949, allocations: 48.33 kB / 254.2 MB, free: 4.617 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004473/0.0104, allocations: 466.3 kB / 254.7 MB, free: 4.148 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.01041, allocations: 12.12 kB / 254.7 MB, free: 4.137 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.187e-05/0.01044, allocations: 20.12 kB / 254.7 MB, free: 4.117 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.01045, allocations: 16 kB / 254.7 MB, free: 4.102 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003038/0.01076, allocations: 246.7 kB / 255 MB, free: 3.859 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009725/0.01173, allocations: 0.8058 MB / 255.8 MB, free: 3.031 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003868/0.01212, allocations: 294.1 kB / 256 MB, free: 2.734 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001453/0.01226, allocations: 142.8 kB / 256.2 MB, free: 2.594 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.341e-05/0.0123, allocations: 16.64 kB / 256.2 MB, free: 2.578 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.974e-05/0.01232, allocations: 43.16 kB / 256.2 MB, free: 2.527 MB / 250.7 MB Notification: Performance of pre-optimization done (n=67): time 1.583e-06/0.01233, allocations: 4 kB / 256.2 MB, free: 2.523 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.002524/0.01485, allocations: 1.678 MB / 257.9 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.635e-05/0.01488, allocations: 60.06 kB / 258 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001757/0.01505, allocations: 309 kB / 258.3 MB, free: 424 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.954e-05/0.0151, allocations: 57.69 kB / 258.3 MB, free: 360 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.353e-05/0.01516, allocations: 178.2 kB / 258.5 MB, free: 176 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001362/0.0153, allocations: 262 kB / 258.8 MB, free: 15.91 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/0.01543, allocations: 138.5 kB / 258.9 MB, free: 15.77 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.118e-05/0.01551, allocations: 362.6 kB / 259.3 MB, free: 15.4 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.01566, allocations: 118 kB / 259.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001634/0.01582, allocations: 189.4 kB / 259.6 MB, free: 15.1 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002664/0.01609, allocations: 299.7 kB / 259.9 MB, free: 14.79 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.01609, allocations: 0 / 259.9 MB, free: 14.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.000568/0.01666, allocations: 492 kB / 260.3 MB, free: 14.3 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.01667, allocations: 8 kB / 260.3 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.01668, allocations: 4.031 kB / 260.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004772/0.01716, allocations: 392.5 kB / 260.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001915/0.01735, allocations: 103.8 kB / 260.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000551/0.0179, allocations: 0.7782 MB / 261.6 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002332/0.01813, allocations: 75.86 kB / 261.7 MB, free: 12.92 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.995e-05/0.01817, allocations: 27.91 kB / 261.7 MB, free: 12.89 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.0001594/0.01833, allocations: 158.5 kB / 261.9 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.01844, allocations: 59.94 kB / 261.9 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.377e-05/0.01853, allocations: 72.98 kB / 262 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.01854, allocations: 8 kB / 262 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.01854, allocations: 3.938 kB / 262 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.251e-06/0.01855, allocations: 3.984 kB / 262 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001249/0.0198, allocations: 0.8108 MB / 262.8 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.0198, allocations: 4 kB / 262.8 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003023/0.0201, allocations: 99.88 kB / 262.9 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001638/0.02027, allocations: 75.62 kB / 263 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005772/0.02084, allocations: 396.5 kB / 263.4 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.603e-05/0.02089, allocations: 27.89 kB / 263.4 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006822/0.02157, allocations: 0.7848 MB / 264.2 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.02157, allocations: 0 / 264.2 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.02277, allocations: 0.7164 MB / 264.9 MB, free: 9.609 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.457e-05/0.02285, allocations: 27.94 kB / 264.9 MB, free: 9.582 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003084/0.02316, allocations: 67.92 kB / 265 MB, free: 9.516 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002144/0.02338, allocations: 144.4 kB / 265.1 MB, free: 9.375 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.914e-05/0.02341, allocations: 19.97 kB / 265.2 MB, free: 9.355 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001173/0.02353, allocations: 132.7 kB / 265.3 MB, free: 9.223 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02353, allocations: 0 / 265.3 MB, free: 9.223 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003684/0.0239, allocations: 163.9 kB / 265.5 MB, free: 9.062 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.001179/0.02508, allocations: 0.5148 MB / 266 MB, free: 8.773 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006714/0.02575, allocations: 439.1 kB / 266.4 MB, free: 8.344 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-05/0.02576, allocations: 7.984 kB / 266.4 MB, free: 8.336 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004356/0.0262, allocations: 318.5 kB / 266.7 MB, free: 8.02 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007134/0.02691, allocations: 0.8854 MB / 267.6 MB, free: 6.98 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00535/0.03226, allocations: 1.018 MB / 268.6 MB, free: 5.926 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.065e-05/0.03235, allocations: 138.8 kB / 268.8 MB, free: 5.773 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000144/0.0325, allocations: 52.41 kB / 268.8 MB, free: 5.723 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002525/0.03275, allocations: 153.3 kB / 269 MB, free: 5.574 MB / 266.7 MB Notification: Performance of SimCode: time 8.72e-07/0.03275, allocations: 7.938 kB / 269 MB, free: 5.566 MB / 266.7 MB Notification: Performance of Templates: time 0.113/0.1458, allocations: 12.96 MB / 281.9 MB, free: 21.67 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8605034351348877]