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.001451/0.001451, allocations: 92.33 kB / 21.73 MB, free: 2.676 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.001497/0.001497, allocations: 164.4 kB / 25.03 MB, free: 8.93 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 1.386/1.386, allocations: 158.6 MB / 186.8 MB, free: 2.902 MB / 170.7 MB " [Timeout remaining time 178] 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.503e-06/1.503e-06, allocations: 0 / 250.4 MB, free: 7.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.111e-05/4.261e-05, allocations: 6.109 kB / 250.4 MB, free: 7.836 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.007446/0.007489, allocations: 2.871 MB / 253.2 MB, free: 4.945 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003333/0.01082, allocations: 1.06 MB / 254.3 MB, free: 3.875 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002681/0.01109, allocations: 7.938 kB / 254.3 MB, free: 3.867 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003831/0.01147, allocations: 75.23 kB / 254.4 MB, free: 3.793 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000582/0.01206, allocations: 170.5 kB / 254.5 MB, free: 3.625 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001234/0.01329, allocations: 291.4 kB / 254.8 MB, free: 3.34 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001497/0.01479, allocations: 0.815 MB / 255.6 MB, free: 2.52 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003276/0.01511, allocations: 89.33 kB / 255.7 MB, free: 2.426 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001059/0.01617, allocations: 495 kB / 256.2 MB, free: 1.941 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007428/0.01692, allocations: 327.2 kB / 256.5 MB, free: 1.621 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001657/0.01708, allocations: 60 kB / 256.6 MB, free: 1.562 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000334/0.01742, allocations: 104 kB / 256.7 MB, free: 1.461 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002842/0.0177, allocations: 163.4 kB / 256.8 MB, free: 1.301 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004276/0.01813, allocations: 215.5 kB / 257.1 MB, free: 1.09 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001531/0.01966, allocations: 0.7906 MB / 257.8 MB, free: 304 kB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.01966, allocations: 0 / 257.8 MB, free: 304 kB / 234.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.01966, allocations: 0 / 257.8 MB, free: 304 kB / 234.7 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.01967, allocations: 0 / 257.8 MB, free: 304 kB / 234.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.002914/0.02259, allocations: 0.8242 MB / 258.7 MB, free: 15.44 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.02263, allocations: 15.98 kB / 258.7 MB, free: 15.43 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000339/0.02297, allocations: 96.56 kB / 258.8 MB, free: 15.33 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009106/0.02388, allocations: 301.4 kB / 259.1 MB, free: 15.01 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.628e-05/0.02396, allocations: 41.36 kB / 259.1 MB, free: 14.97 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001911/0.02415, allocations: 44.38 kB / 259.2 MB, free: 14.93 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002077/0.02623, allocations: 0.6156 MB / 259.8 MB, free: 14.3 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.666e-05/0.02627, allocations: 12.12 kB / 259.8 MB, free: 14.29 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.925e-05/0.02637, allocations: 16.12 kB / 259.8 MB, free: 14.28 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.698e-05/0.02639, allocations: 16 kB / 259.8 MB, free: 14.26 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002372/0.02876, allocations: 0.5934 MB / 260.4 MB, free: 13.67 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003951/0.03271, allocations: 1.096 MB / 261.5 MB, free: 12.54 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001747/0.03446, allocations: 433.6 kB / 261.9 MB, free: 12.11 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0011/0.03556, allocations: 286.2 kB / 262.2 MB, free: 11.82 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.429e-05/0.03564, allocations: 16.5 kB / 262.2 MB, free: 11.81 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.947e-05/0.0357, allocations: 43.05 kB / 262.3 MB, free: 11.75 MB / 250.7 MB Notification: Performance of pre-optimization done (n=58): time 3.456e-06/0.0357, allocations: 3.938 kB / 262.3 MB, free: 11.75 MB / 250.7 MB Notification: Performance of matching and sorting (n=64): time 0.01163/0.04733, allocations: 2.497 MB / 264.8 MB, free: 9.199 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.236e-05/0.04741, allocations: 56.06 kB / 264.8 MB, free: 9.133 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006592/0.04807, allocations: 328.4 kB / 265.1 MB, free: 8.809 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001245/0.04819, allocations: 49.69 kB / 265.2 MB, free: 8.754 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002623/0.04846, allocations: 197.5 kB / 265.4 MB, free: 8.559 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003779/0.04883, allocations: 234.1 kB / 265.6 MB, free: 8.328 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004253/0.04926, allocations: 138.6 kB / 265.8 MB, free: 8.184 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003175/0.04958, allocations: 354.8 kB / 266.1 MB, free: 7.828 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001197/0.05077, allocations: 317.8 kB / 266.4 MB, free: 7.52 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001328/0.0521, allocations: 377 kB / 266.8 MB, free: 7.141 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001937/0.05404, allocations: 0.5106 MB / 267.3 MB, free: 6.621 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.05404, allocations: 0 / 267.3 MB, free: 6.621 MB / 250.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.003585/0.05763, allocations: 0.939 MB / 268.2 MB, free: 5.672 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.506e-05/0.05765, allocations: 4 kB / 268.2 MB, free: 5.668 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.547e-05/0.05767, allocations: 4 kB / 268.2 MB, free: 5.664 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002439/0.06011, allocations: 0.7308 MB / 269 MB, free: 4.93 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007483/0.06086, allocations: 99.83 kB / 269.1 MB, free: 4.832 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002859/0.06371, allocations: 1.095 MB / 270.2 MB, free: 3.711 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001252/0.06497, allocations: 107.9 kB / 270.3 MB, free: 3.605 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001084/0.06507, allocations: 27.98 kB / 270.3 MB, free: 3.578 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.0005093/0.06558, allocations: 191.7 kB / 270.5 MB, free: 3.379 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003086/0.06589, allocations: 75.66 kB / 270.6 MB, free: 3.305 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000252/0.06614, allocations: 68.75 kB / 270.6 MB, free: 3.234 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.394e-05/0.06616, allocations: 8 kB / 270.6 MB, free: 3.227 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.06617, allocations: 0 / 270.6 MB, free: 3.227 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.591e-05/0.06618, allocations: 3.984 kB / 270.6 MB, free: 3.223 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005068/0.07125, allocations: 1.383 MB / 272 MB, free: 1.793 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.07126, allocations: 0 / 272 MB, free: 1.793 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007914/0.07205, allocations: 91.88 kB / 272.1 MB, free: 1.703 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002011/0.07406, allocations: 0.6994 MB / 272.8 MB, free: 1 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.445e-05/0.07415, allocations: 23.97 kB / 272.8 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002339/0.07649, allocations: 1.064 MB / 273.9 MB, free: 15.89 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.0765, allocations: 0 / 273.9 MB, free: 15.89 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003927/0.08042, allocations: 1.331 MB / 275.2 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004214/0.08085, allocations: 127.7 kB / 275.3 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001401/0.08099, allocations: 20 kB / 275.4 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009166/0.0819, allocations: 107.9 kB / 275.5 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000412/0.08231, allocations: 124.4 kB / 275.6 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.282e-05/0.08241, allocations: 27.97 kB / 275.6 MB, free: 14.14 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003894/0.0828, allocations: 227 kB / 275.8 MB, free: 13.92 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.0828, allocations: 0 / 275.8 MB, free: 13.92 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007976/0.08359, allocations: 159.9 kB / 276 MB, free: 13.76 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.000291/0.08388, allocations: 147.1 kB / 276.1 MB, free: 13.61 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001711/0.0856, allocations: 0.7256 MB / 276.9 MB, free: 12.88 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.0856, allocations: 64 / 276.9 MB, free: 12.88 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008982/0.0865, allocations: 414.1 kB / 277.3 MB, free: 12.48 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007075/0.0872, allocations: 136.3 kB / 277.4 MB, free: 12.35 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002791/0.08999, allocations: 1.231 MB / 278.6 MB, free: 11.09 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000275/0.09027, allocations: 245.6 kB / 278.9 MB, free: 10.83 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002167/0.09049, allocations: 43.45 kB / 278.9 MB, free: 10.78 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/0.09065, allocations: 48.48 kB / 279 MB, free: 10.73 MB / 266.7 MB Notification: Performance of SimCode: time 1.152e-06/0.09065, allocations: 0 / 279 MB, free: 10.73 MB / 266.7 MB Notification: Performance of Templates: time 0.02055/0.1112, allocations: 11.49 MB / 290.5 MB, free: 15.27 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.854829743038863]