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.001141/0.001141, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001422/0.002563, allocations: 445.7 kB / 10.37 MB, free: 328 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.0008009/0.0008009, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001013/0.001814, allocations: 463.6 kB / 11.71 MB, free: 2.453 MB / 13.93 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.841/0.841, allocations: 158.6 MB / 171.1 MB, free: 2.582 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.145/0.9861, allocations: 49.49 MB / 220.6 MB, free: 1.449 MB / 218.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.533e-06/1.533e-06, allocations: 0 / 221.8 MB, free: 176 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.3e-05/1.453e-05, allocations: 2.312 kB / 221.8 MB, free: 172 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002698/0.002713, allocations: 3.09 MB / 224.9 MB, free: 13.05 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001263/0.003976, allocations: 1.107 MB / 226 MB, free: 11.94 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001119/0.004088, allocations: 7.938 kB / 226 MB, free: 11.93 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001398/0.004227, allocations: 75.25 kB / 226.1 MB, free: 11.86 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001818/0.004409, allocations: 170.5 kB / 226.3 MB, free: 11.69 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003455/0.004755, allocations: 291.4 kB / 226.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004628/0.005217, allocations: 0.7995 MB / 227.4 MB, free: 10.6 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001296/0.005347, allocations: 101.9 kB / 227.5 MB, free: 10.5 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003918/0.005739, allocations: 0.5191 MB / 228 MB, free: 9.977 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000252/0.005991, allocations: 315.3 kB / 228.3 MB, free: 9.668 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.842e-05/0.006049, allocations: 60 kB / 228.4 MB, free: 9.609 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001493/0.006199, allocations: 115.9 kB / 228.5 MB, free: 9.496 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.675e-05/0.006285, allocations: 103.6 kB / 228.6 MB, free: 9.395 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001341/0.006419, allocations: 163.7 kB / 228.7 MB, free: 9.234 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000383/0.006802, allocations: 494.3 kB / 229.2 MB, free: 8.75 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.748e-06/0.006812, allocations: 0 / 229.2 MB, free: 8.75 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.22e-07/0.006813, allocations: 4 kB / 229.2 MB, free: 8.746 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.006824, allocations: 0 / 229.2 MB, free: 8.746 MB / 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.0008335/0.007657, allocations: 0.885 MB / 230.1 MB, free: 7.836 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.358e-05/0.007681, allocations: 15.89 kB / 230.1 MB, free: 7.82 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.039e-05/0.007761, allocations: 68.88 kB / 230.2 MB, free: 7.754 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000248/0.008009, allocations: 261.4 kB / 230.4 MB, free: 7.473 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.563e-05/0.008035, allocations: 29.38 kB / 230.5 MB, free: 7.445 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.107e-05/0.008086, allocations: 44.38 kB / 230.5 MB, free: 7.402 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004574/0.008543, allocations: 475 kB / 231 MB, free: 6.918 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.008558, allocations: 12.12 kB / 231 MB, free: 6.906 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.178e-05/0.00859, allocations: 28.11 kB / 231 MB, free: 6.879 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.008598, allocations: 12 kB / 231 MB, free: 6.867 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002914/0.008889, allocations: 246.7 kB / 231.3 MB, free: 6.629 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009182/0.009807, allocations: 0.8073 MB / 232.1 MB, free: 5.797 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003468/0.01015, allocations: 261.6 kB / 232.3 MB, free: 5.535 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001451/0.0103, allocations: 142.2 kB / 232.5 MB, free: 5.395 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.367e-05/0.01033, allocations: 8.5 kB / 232.5 MB, free: 5.387 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.076e-05/0.01035, allocations: 43.06 kB / 232.5 MB, free: 5.332 MB / 234.7 MB Notification: Performance of pre-optimization done (n=58): time 1.322e-06/0.01035, allocations: 0 / 232.5 MB, free: 5.332 MB / 234.7 MB Notification: Performance of matching and sorting (n=64): time 0.002074/0.01243, allocations: 1.589 MB / 234.1 MB, free: 3.695 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.557e-05/0.01245, allocations: 60.06 kB / 234.2 MB, free: 3.625 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001457/0.0126, allocations: 282.9 kB / 234.4 MB, free: 3.332 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.139e-05/0.01264, allocations: 53.69 kB / 234.5 MB, free: 3.273 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.82e-05/0.01271, allocations: 174 kB / 234.7 MB, free: 3.098 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001156/0.01282, allocations: 234.1 kB / 234.9 MB, free: 2.867 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000118/0.01294, allocations: 130.5 kB / 235 MB, free: 2.734 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 9.271e-05/0.01304, allocations: 354.7 kB / 235.4 MB, free: 2.379 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001572/0.01319, allocations: 133.9 kB / 235.5 MB, free: 2.25 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002182/0.01341, allocations: 197 kB / 235.7 MB, free: 2.051 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002618/0.01367, allocations: 290.8 kB / 236 MB, free: 1.762 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.01367, allocations: 0 / 236 MB, free: 1.762 MB / 234.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.0004794/0.01415, allocations: 481.9 kB / 236.4 MB, free: 1.281 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/0.01416, allocations: 8 kB / 236.5 MB, free: 1.273 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-06/0.01417, allocations: 0 / 236.5 MB, free: 1.273 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005846/0.01475, allocations: 0.5745 MB / 237 MB, free: 0.6953 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001989/0.01495, allocations: 103.9 kB / 237.1 MB, free: 0.5938 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000542/0.01549, allocations: 0.8019 MB / 237.9 MB, free: 15.77 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002069/0.0157, allocations: 83.84 kB / 238 MB, free: 15.68 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.633e-05/0.01573, allocations: 12 kB / 238 MB, free: 15.67 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.0001174/0.01585, allocations: 150.6 kB / 238.2 MB, free: 15.51 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.215e-05/0.01591, allocations: 51.95 kB / 238.2 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.774e-05/0.01597, allocations: 68.8 kB / 238.3 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.01598, allocations: 7.984 kB / 238.3 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.01599, allocations: 7.938 kB / 238.3 MB, free: 15.38 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.01599, allocations: 3.984 kB / 238.3 MB, free: 15.38 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009032/0.01689, allocations: 0.7983 MB / 239.1 MB, free: 14.55 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.0169, allocations: 0 / 239.1 MB, free: 14.55 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002213/0.01712, allocations: 103.9 kB / 239.2 MB, free: 14.45 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001202/0.01724, allocations: 79.56 kB / 239.3 MB, free: 14.37 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005373/0.01778, allocations: 0.5627 MB / 239.8 MB, free: 13.8 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.96e-05/0.0178, allocations: 27.97 kB / 239.9 MB, free: 13.77 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005139/0.01832, allocations: 0.7864 MB / 240.7 MB, free: 12.96 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.01832, allocations: 4 kB / 240.7 MB, free: 12.96 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007165/0.01904, allocations: 0.7221 MB / 241.4 MB, free: 12.22 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.207e-05/0.0191, allocations: 24 kB / 241.4 MB, free: 12.2 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002065/0.0193, allocations: 67.92 kB / 241.5 MB, free: 12.13 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001576/0.01946, allocations: 140.2 kB / 241.6 MB, free: 11.99 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.777e-05/0.01949, allocations: 20.02 kB / 241.6 MB, free: 11.97 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.658e-05/0.01957, allocations: 116.6 kB / 241.7 MB, free: 11.86 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01957, allocations: 0 / 241.7 MB, free: 11.86 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002634/0.01983, allocations: 156 kB / 241.9 MB, free: 11.7 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.0001478/0.01998, allocations: 136.2 kB / 242 MB, free: 11.56 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004969/0.02047, allocations: 441.8 kB / 242.5 MB, free: 11.13 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.032e-05/0.02048, allocations: 7.984 kB / 242.5 MB, free: 11.12 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002694/0.02075, allocations: 276.2 kB / 242.7 MB, free: 10.85 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003395/0.02109, allocations: 184.2 kB / 242.9 MB, free: 10.67 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003961/0.02505, allocations: 1.003 MB / 243.9 MB, free: 9.633 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.68e-05/0.02513, allocations: 130.6 kB / 244.1 MB, free: 9.48 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001089/0.02524, allocations: 51.45 kB / 244.1 MB, free: 9.43 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001871/0.02543, allocations: 151.2 kB / 244.2 MB, free: 9.281 MB / 250.7 MB Notification: Performance of SimCode: time 7.62e-07/0.02543, allocations: 0 / 244.2 MB, free: 9.281 MB / 250.7 MB Notification: Performance of Templates: time 0.01279/0.03821, allocations: 12.8 MB / 257.1 MB, free: 12.48 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 -ignoreHideResult -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.6895643919706345]