Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001557/0.001557, allocations: 85.95 kB / 23 MB, free: 1.504 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.001263/0.001263, allocations: 175.6 kB / 26.39 MB, free: 7.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9593/0.9593, allocations: 158.6 MB / 188.3 MB, free: 2.801 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 3.938 kB / 252.2 MB, free: 7.277 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.097e-05/2.237e-05, allocations: 6.25 kB / 252.2 MB, free: 7.27 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.00359/0.003612, allocations: 3.058 MB / 255.3 MB, free: 4.191 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001803/0.005416, allocations: 1.06 MB / 256.4 MB, free: 3.121 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001642/0.00558, allocations: 7.938 kB / 256.4 MB, free: 3.113 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000211/0.005791, allocations: 83.17 kB / 256.4 MB, free: 3.031 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002982/0.006089, allocations: 162.6 kB / 256.6 MB, free: 2.871 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001016/0.007105, allocations: 295.4 kB / 256.9 MB, free: 2.578 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008349/0.00794, allocations: 0.8227 MB / 257.7 MB, free: 1.75 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002156/0.008156, allocations: 85.58 kB / 257.8 MB, free: 1.66 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007487/0.008904, allocations: 499 kB / 258.3 MB, free: 1.172 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004962/0.009401, allocations: 319.3 kB / 258.6 MB, free: 0.8594 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001143/0.009515, allocations: 60 kB / 258.7 MB, free: 0.8008 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002237/0.009739, allocations: 111.9 kB / 258.8 MB, free: 0.6914 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001489/0.009887, allocations: 159.5 kB / 258.9 MB, free: 0.5352 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002323/0.01012, allocations: 219.5 kB / 259.1 MB, free: 328 kB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007396/0.01086, allocations: 0.5762 MB / 259.7 MB, free: 15.74 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.01086, allocations: 0 / 259.7 MB, free: 15.74 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.01086, allocations: 0 / 259.7 MB, free: 15.74 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.109e-05/0.01088, allocations: 0 / 259.7 MB, free: 15.74 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.001362/0.01224, allocations: 0.8967 MB / 260.6 MB, free: 14.81 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.01227, allocations: 15.98 kB / 260.6 MB, free: 14.79 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001845/0.01246, allocations: 92.56 kB / 260.7 MB, free: 14.7 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004304/0.01289, allocations: 308.2 kB / 261 MB, free: 14.37 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.172e-05/0.01293, allocations: 37.38 kB / 261.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.225e-05/0.01302, allocations: 44.36 kB / 261.1 MB, free: 14.29 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007884/0.01381, allocations: 480.7 kB / 261.6 MB, free: 13.81 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.384e-05/0.01384, allocations: 4.141 kB / 261.6 MB, free: 13.8 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.361e-05/0.01389, allocations: 20.12 kB / 261.6 MB, free: 13.79 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.0139, allocations: 12 kB / 261.6 MB, free: 13.77 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005662/0.01447, allocations: 302.7 kB / 261.9 MB, free: 13.48 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001788/0.01625, allocations: 1.063 MB / 263 MB, free: 12.38 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006604/0.01692, allocations: 290 kB / 263.2 MB, free: 12.09 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002648/0.01718, allocations: 157.1 kB / 263.4 MB, free: 11.93 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.663e-05/0.01723, allocations: 12.5 kB / 263.4 MB, free: 11.92 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.088e-05/0.01726, allocations: 41.89 kB / 263.5 MB, free: 11.86 MB / 250.7 MB Notification: Performance of pre-optimization done (n=58): time 2.325e-06/0.01726, allocations: 0 / 263.5 MB, free: 11.86 MB / 250.7 MB Notification: Performance of matching and sorting (n=64): time 0.003942/0.0212, allocations: 1.682 MB / 265.1 MB, free: 10.12 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.874e-05/0.02123, allocations: 56.06 kB / 265.2 MB, free: 10.06 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001961/0.02143, allocations: 354.1 kB / 265.5 MB, free: 9.695 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.158e-05/0.02147, allocations: 41.7 kB / 265.6 MB, free: 9.648 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.02159, allocations: 252.2 kB / 265.8 MB, free: 9.398 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001935/0.02179, allocations: 238.1 kB / 266.1 MB, free: 9.164 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002383/0.02202, allocations: 136.2 kB / 266.2 MB, free: 9.023 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002109/0.02224, allocations: 0.5351 MB / 266.7 MB, free: 8.477 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003572/0.02259, allocations: 149.9 kB / 266.9 MB, free: 8.328 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003494/0.02294, allocations: 225.5 kB / 267.1 MB, free: 8.094 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005066/0.02345, allocations: 295.4 kB / 267.4 MB, free: 7.793 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.02345, allocations: 0 / 267.4 MB, free: 7.793 MB / 250.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001138/0.02459, allocations: 0.5863 MB / 268 MB, free: 7.195 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.02461, allocations: 8 kB / 268 MB, free: 7.188 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.02462, allocations: 0 / 268 MB, free: 7.188 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001112/0.02573, allocations: 0.6007 MB / 268.6 MB, free: 6.582 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003498/0.02608, allocations: 95.89 kB / 268.7 MB, free: 6.488 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001254/0.02733, allocations: 1.089 MB / 269.8 MB, free: 5.367 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000299/0.02763, allocations: 79.91 kB / 269.8 MB, free: 5.289 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.447e-05/0.02767, allocations: 19.98 kB / 269.9 MB, free: 5.27 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.0001709/0.02784, allocations: 198.4 kB / 270 MB, free: 5.062 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.02794, allocations: 75.61 kB / 270.1 MB, free: 4.988 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.988e-05/0.02802, allocations: 72.73 kB / 270.2 MB, free: 4.914 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.02802, allocations: 8 kB / 270.2 MB, free: 4.906 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.02803, allocations: 0 / 270.2 MB, free: 4.906 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.02803, allocations: 4 kB / 270.2 MB, free: 4.902 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001338/0.02937, allocations: 1.073 MB / 271.3 MB, free: 3.789 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.02937, allocations: 0 / 271.3 MB, free: 3.789 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002314/0.02961, allocations: 87.89 kB / 271.4 MB, free: 3.703 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006629/0.03027, allocations: 0.589 MB / 271.9 MB, free: 3.109 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.095e-05/0.03033, allocations: 35.89 kB / 272 MB, free: 3.074 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007712/0.0311, allocations: 1.1 MB / 273.1 MB, free: 1.941 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.0311, allocations: 0 / 273.1 MB, free: 1.941 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001031/0.03213, allocations: 0.9006 MB / 274 MB, free: 1.016 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00017/0.0323, allocations: 111.6 kB / 274.1 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.235e-05/0.03238, allocations: 24 kB / 274.1 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002446/0.03262, allocations: 71.91 kB / 274.2 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001851/0.03281, allocations: 132.4 kB / 274.3 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.311e-05/0.03284, allocations: 27.97 kB / 274.3 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001162/0.03296, allocations: 222.9 kB / 274.6 MB, free: 452 kB / 250.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.03296, allocations: 0 / 274.6 MB, free: 452 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004269/0.03338, allocations: 164 kB / 274.7 MB, free: 288 kB / 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.0002748/0.03366, allocations: 150.7 kB / 274.9 MB, free: 132 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006833/0.03434, allocations: 484.5 kB / 275.3 MB, free: 15.65 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.03434, allocations: 4 kB / 275.3 MB, free: 15.65 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003511/0.03469, allocations: 299.2 kB / 275.6 MB, free: 15.36 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004208/0.03511, allocations: 129.3 kB / 275.8 MB, free: 15.23 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001622/0.03674, allocations: 1.17 MB / 276.9 MB, free: 14.03 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.631e-05/0.03681, allocations: 126.6 kB / 277.1 MB, free: 13.89 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001156/0.03693, allocations: 47.44 kB / 277.1 MB, free: 13.84 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002131/0.03714, allocations: 166.1 kB / 277.3 MB, free: 13.68 MB / 266.7 MB Notification: Performance of SimCode: time 1.042e-06/0.03714, allocations: 0 / 277.3 MB, free: 13.68 MB / 266.7 MB Notification: Performance of Templates: time 0.01352/0.05067, allocations: 12.91 MB / 290.2 MB, free: 0.7852 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 3.140023842919618]