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.001407/0.001407, allocations: 79.73 kB / 21.97 MB, free: 2.598 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.001548/0.001548, allocations: 167.4 kB / 25.33 MB, free: 8.586 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.8299/0.8299, allocations: 158.6 MB / 187.2 MB, free: 2.922 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.643e-06/1.643e-06, allocations: 0 / 251 MB, free: 7.527 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.133e-05/2.297e-05, allocations: 6.312 kB / 251 MB, free: 7.52 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003259/0.003282, allocations: 3.101 MB / 254.1 MB, free: 4.398 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001588/0.004871, allocations: 1.072 MB / 255.2 MB, free: 3.316 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001645/0.005035, allocations: 7.938 kB / 255.2 MB, free: 3.309 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002257/0.005261, allocations: 79.3 kB / 255.3 MB, free: 3.23 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000236/0.005497, allocations: 166.5 kB / 255.5 MB, free: 3.066 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005846/0.006082, allocations: 295.4 kB / 255.7 MB, free: 2.777 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006379/0.006719, allocations: 0.8227 MB / 256.6 MB, free: 1.949 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001678/0.006887, allocations: 89.56 kB / 256.6 MB, free: 1.855 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005082/0.007395, allocations: 495 kB / 257.1 MB, free: 1.371 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003349/0.00773, allocations: 327.2 kB / 257.5 MB, free: 1.051 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 7.347e-05/0.007804, allocations: 56 kB / 257.5 MB, free: 0.9961 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001669/0.007971, allocations: 108 kB / 257.6 MB, free: 0.8906 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001118/0.008083, allocations: 159.5 kB / 257.8 MB, free: 0.7344 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001792/0.008262, allocations: 219.5 kB / 258 MB, free: 0.5195 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005099/0.008772, allocations: 0.5763 MB / 258.6 MB, free: 15.94 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.008775, allocations: 0 / 258.6 MB, free: 15.94 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.008776, allocations: 0 / 258.6 MB, free: 15.94 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.037e-06/0.008785, allocations: 0 / 258.6 MB, free: 15.94 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.000983/0.009768, allocations: 0.8852 MB / 259.4 MB, free: 15.02 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.009804, allocations: 15.98 kB / 259.5 MB, free: 15 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.009935, allocations: 96.56 kB / 259.6 MB, free: 14.91 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003342/0.01027, allocations: 308.2 kB / 259.9 MB, free: 14.58 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.155e-05/0.0103, allocations: 33.38 kB / 259.9 MB, free: 14.55 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.953e-05/0.01036, allocations: 44.38 kB / 259.9 MB, free: 14.5 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006344/0.01099, allocations: 0.5359 MB / 260.5 MB, free: 13.95 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.01101, allocations: 8.141 kB / 260.5 MB, free: 13.95 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.723e-05/0.01105, allocations: 24.12 kB / 260.5 MB, free: 13.92 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.01106, allocations: 8 kB / 260.5 MB, free: 13.91 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005128/0.01157, allocations: 401.6 kB / 260.9 MB, free: 13.52 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001246/0.01282, allocations: 1.121 MB / 262 MB, free: 12.36 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005292/0.01335, allocations: 346 kB / 262.4 MB, free: 12.01 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002329/0.01358, allocations: 201.1 kB / 262.6 MB, free: 11.81 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.565e-05/0.01361, allocations: 16.5 kB / 262.6 MB, free: 11.79 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.345e-05/0.01364, allocations: 37.89 kB / 262.6 MB, free: 11.74 MB / 250.7 MB Notification: Performance of pre-optimization done (n=58): time 2.184e-06/0.01364, allocations: 7.984 kB / 262.6 MB, free: 11.73 MB / 250.7 MB Notification: Performance of matching and sorting (n=64): time 0.002875/0.01652, allocations: 2.013 MB / 264.6 MB, free: 9.664 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.776e-05/0.01654, allocations: 60.06 kB / 264.7 MB, free: 9.594 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002685/0.01681, allocations: 354.3 kB / 265 MB, free: 9.23 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.894e-05/0.01687, allocations: 49.7 kB / 265.1 MB, free: 9.176 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/0.01701, allocations: 256.2 kB / 265.3 MB, free: 8.922 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001781/0.01719, allocations: 234.1 kB / 265.6 MB, free: 8.691 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002162/0.0174, allocations: 132.3 kB / 265.7 MB, free: 8.555 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.01757, allocations: 0.5274 MB / 266.2 MB, free: 8.016 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004439/0.01801, allocations: 209.9 kB / 266.4 MB, free: 7.809 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004464/0.01846, allocations: 281.5 kB / 266.7 MB, free: 7.523 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006299/0.01909, allocations: 383.4 kB / 267.1 MB, free: 7.137 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.01909, allocations: 0 / 267.1 MB, free: 7.137 MB / 250.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001326/0.02042, allocations: 0.7153 MB / 267.8 MB, free: 6.41 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.02044, allocations: 4 kB / 267.8 MB, free: 6.406 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.02045, allocations: 4 kB / 267.8 MB, free: 6.402 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001061/0.02151, allocations: 0.6203 MB / 268.4 MB, free: 5.777 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003816/0.02189, allocations: 103.8 kB / 268.5 MB, free: 5.676 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009092/0.0228, allocations: 1.163 MB / 269.7 MB, free: 4.48 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003217/0.02312, allocations: 79.91 kB / 269.8 MB, free: 4.402 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.571e-05/0.02316, allocations: 24 kB / 269.8 MB, free: 4.379 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.0001676/0.02332, allocations: 198.5 kB / 270 MB, free: 4.172 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.581e-05/0.02341, allocations: 75.66 kB / 270 MB, free: 4.098 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.753e-05/0.02348, allocations: 68.75 kB / 270.1 MB, free: 4.027 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.02348, allocations: 8 kB / 270.1 MB, free: 4.02 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.02349, allocations: 0 / 270.1 MB, free: 4.02 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.02349, allocations: 3.984 kB / 270.1 MB, free: 4.016 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00142/0.02491, allocations: 1.241 MB / 271.4 MB, free: 2.727 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.02492, allocations: 0 / 271.4 MB, free: 2.727 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002148/0.02513, allocations: 91.83 kB / 271.5 MB, free: 2.637 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006413/0.02577, allocations: 0.6279 MB / 272.1 MB, free: 2.004 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.556e-05/0.02581, allocations: 23.97 kB / 272.1 MB, free: 1.98 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007486/0.02656, allocations: 1.175 MB / 273.3 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.02656, allocations: 0 / 273.3 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001157/0.02771, allocations: 1.053 MB / 274.3 MB, free: 15.7 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001566/0.02787, allocations: 115.6 kB / 274.4 MB, free: 15.58 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.356e-05/0.02793, allocations: 24 kB / 274.5 MB, free: 15.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002291/0.02816, allocations: 71.91 kB / 274.5 MB, free: 15.49 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001701/0.02833, allocations: 136.4 kB / 274.7 MB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.31e-05/0.02837, allocations: 27.97 kB / 274.7 MB, free: 15.33 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001235/0.02849, allocations: 246.9 kB / 274.9 MB, free: 15.09 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02849, allocations: 0 / 274.9 MB, free: 15.09 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003105/0.0288, allocations: 160 kB / 275.1 MB, free: 14.93 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.000199/0.029, allocations: 147 kB / 275.2 MB, free: 14.78 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007472/0.02975, allocations: 0.5866 MB / 275.8 MB, free: 14.19 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.02975, allocations: 0 / 275.8 MB, free: 14.19 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003853/0.03013, allocations: 343.1 kB / 276.2 MB, free: 13.86 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000395/0.03053, allocations: 136.3 kB / 276.3 MB, free: 13.73 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001625/0.03215, allocations: 1.178 MB / 277.5 MB, free: 12.52 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.546e-05/0.03223, allocations: 126.6 kB / 277.6 MB, free: 12.38 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001148/0.03234, allocations: 51.44 kB / 277.6 MB, free: 12.32 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.493e-05/0.03244, allocations: 52.42 kB / 277.7 MB, free: 12.27 MB / 266.7 MB Notification: Performance of SimCode: time 1.012e-06/0.03244, allocations: 3.938 kB / 277.7 MB, free: 12.27 MB / 266.7 MB Notification: Performance of Templates: time 0.01272/0.04516, allocations: 12.52 MB / 290.2 MB, free: 15.76 MB / 282.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: 2.9116979227401316]