Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.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.001124/0.001124, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001608/0.002732, 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.00111/0.00111, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001287/0.002397, 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.8838/0.8838, allocations: 158.6 MB / 171.1 MB, free: 2.578 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1392/1.023, allocations: 49.49 MB / 220.5 MB, free: 1.453 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.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.694e-06/1.694e-06, allocations: 0 / 221.8 MB, free: 184 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.308e-05/2.478e-05, allocations: 6.25 kB / 221.8 MB, free: 176 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.00454/0.004564, allocations: 3.052 MB / 224.9 MB, free: 13.1 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002047/0.006611, allocations: 0.9976 MB / 225.9 MB, free: 12.09 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002461/0.006857, allocations: 7.938 kB / 225.9 MB, free: 12.08 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002189/0.007076, allocations: 67.31 kB / 226 MB, free: 12.02 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003359/0.007412, allocations: 146.7 kB / 226.1 MB, free: 11.87 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006367/0.008049, allocations: 219.5 kB / 226.3 MB, free: 11.66 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007521/0.008801, allocations: 0.6431 MB / 227 MB, free: 11.01 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002194/0.00902, allocations: 89.28 kB / 227 MB, free: 10.92 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006791/0.009699, allocations: 423.8 kB / 227.5 MB, free: 10.51 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004016/0.0101, allocations: 247.4 kB / 227.7 MB, free: 10.27 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001009/0.0102, allocations: 48 kB / 227.7 MB, free: 10.22 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002817/0.01048, allocations: 111.9 kB / 227.9 MB, free: 10.11 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001241/0.01061, allocations: 79.75 kB / 227.9 MB, free: 10.03 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002122/0.01082, allocations: 135.8 kB / 228.1 MB, free: 9.898 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006909/0.01151, allocations: 406.5 kB / 228.5 MB, free: 9.5 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.921e-05/0.01154, allocations: 0 / 228.5 MB, free: 9.5 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.01154, allocations: 0 / 228.5 MB, free: 9.5 MB / 234.7 MB Notification: Performance of Transformations before backend: time 2.98e-05/0.01157, allocations: 0 / 228.5 MB, free: 9.5 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001313/0.01288, allocations: 0.7646 MB / 229.2 MB, free: 8.711 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.01292, allocations: 12.03 kB / 229.2 MB, free: 8.699 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.01306, allocations: 64.88 kB / 229.3 MB, free: 8.637 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004006/0.01346, allocations: 240.4 kB / 229.5 MB, free: 8.375 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.503e-05/0.0135, allocations: 33.38 kB / 229.6 MB, free: 8.344 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.453e-05/0.01359, allocations: 40.38 kB / 229.6 MB, free: 8.305 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006139/0.0142, allocations: 347.5 kB / 229.9 MB, free: 7.957 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.387e-05/0.01422, allocations: 4.141 kB / 230 MB, free: 7.953 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.971e-05/0.01426, allocations: 16.38 kB / 230 MB, free: 7.938 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.532e-05/0.01428, allocations: 19.92 kB / 230 MB, free: 7.918 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004232/0.0147, allocations: 198.8 kB / 230.2 MB, free: 7.723 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001504/0.01621, allocations: 0.6551 MB / 230.8 MB, free: 7.051 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005542/0.01676, allocations: 236.5 kB / 231.1 MB, free: 6.812 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002489/0.01701, allocations: 130.3 kB / 231.2 MB, free: 6.684 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.323e-05/0.01705, allocations: 16.5 kB / 231.2 MB, free: 6.668 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.01709, allocations: 39.05 kB / 231.2 MB, free: 6.621 MB / 234.7 MB Notification: Performance of pre-optimization done (n=50): time 2.926e-06/0.01709, allocations: 0 / 231.2 MB, free: 6.621 MB / 234.7 MB Notification: Performance of matching and sorting (n=56): time 0.003107/0.0202, allocations: 1.351 MB / 232.6 MB, free: 5.215 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.838e-05/0.02023, allocations: 59.91 kB / 232.7 MB, free: 5.145 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002129/0.02045, allocations: 240.9 kB / 232.9 MB, free: 4.898 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 5.988e-05/0.02051, allocations: 45.7 kB / 232.9 MB, free: 4.848 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.887e-05/0.02061, allocations: 170 kB / 233.1 MB, free: 4.68 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001497/0.02075, allocations: 206.3 kB / 233.3 MB, free: 4.477 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001606/0.02092, allocations: 106.2 kB / 233.4 MB, free: 4.363 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.02103, allocations: 354.7 kB / 233.8 MB, free: 4.008 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002149/0.02125, allocations: 105.2 kB / 233.9 MB, free: 3.906 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002212/0.02147, allocations: 140.8 kB / 234 MB, free: 3.762 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003349/0.0218, allocations: 242 kB / 234.2 MB, free: 3.52 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.02181, allocations: 0 / 234.2 MB, free: 3.52 MB / 234.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008392/0.02265, allocations: 442.7 kB / 234.7 MB, free: 3.074 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.02266, allocations: 4 kB / 234.7 MB, free: 3.07 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.02267, allocations: 4 kB / 234.7 MB, free: 3.066 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006806/0.02335, allocations: 401.3 kB / 235.1 MB, free: 2.668 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003086/0.02366, allocations: 99.84 kB / 235.2 MB, free: 2.57 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008473/0.02451, allocations: 1.198 MB / 236.4 MB, free: 1.32 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000266/0.02477, allocations: 56 kB / 236.4 MB, free: 1.266 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.706e-05/0.02481, allocations: 15.98 kB / 236.4 MB, free: 1.25 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,8), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.000149/0.02496, allocations: 144.5 kB / 236.6 MB, free: 1.098 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.511e-05/0.02505, allocations: 47.95 kB / 236.6 MB, free: 1.051 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.446e-05/0.02513, allocations: 47.62 kB / 236.7 MB, free: 1.004 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.02514, allocations: 15.94 kB / 236.7 MB, free: 0.9883 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.02514, allocations: 3.938 kB / 236.7 MB, free: 0.9844 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.513e-06/0.02515, allocations: 3.984 kB / 236.7 MB, free: 0.9805 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001578/0.02672, allocations: 0.8107 MB / 237.5 MB, free: 128 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.02673, allocations: 0 / 237.5 MB, free: 128 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003196/0.02705, allocations: 95.88 kB / 237.6 MB, free: 32 kB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001695/0.02722, allocations: 63.89 kB / 237.7 MB, free: 15.96 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005813/0.0278, allocations: 397.6 kB / 238 MB, free: 15.57 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.48e-05/0.02783, allocations: 19.98 kB / 238.1 MB, free: 15.55 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007398/0.02857, allocations: 1.206 MB / 239.3 MB, free: 14.3 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.02858, allocations: 0 / 239.3 MB, free: 14.3 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/0.02959, allocations: 0.6474 MB / 239.9 MB, free: 13.61 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.139e-05/0.02966, allocations: 20 kB / 239.9 MB, free: 13.59 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002479/0.0299, allocations: 43.95 kB / 240 MB, free: 13.55 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001781/0.03008, allocations: 96.25 kB / 240.1 MB, free: 13.46 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-05/0.03012, allocations: 19.97 kB / 240.1 MB, free: 13.44 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001015/0.03022, allocations: 82.77 kB / 240.2 MB, free: 13.35 MB / 250.7 MB Notification: Performance of sort global known variables: time 1e-07/0.03022, allocations: 4 kB / 240.2 MB, free: 13.35 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004187/0.03064, allocations: 135.9 kB / 240.3 MB, free: 13.21 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002191/0.03086, allocations: 128.2 kB / 240.4 MB, free: 13.08 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006528/0.03151, allocations: 343.4 kB / 240.8 MB, free: 12.75 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.786e-05/0.03153, allocations: 8 kB / 240.8 MB, free: 12.74 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003587/0.03189, allocations: 213.4 kB / 241 MB, free: 12.53 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004839/0.03237, allocations: 139.4 kB / 241.1 MB, free: 12.39 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006518/0.03889, allocations: 1.077 MB / 242.2 MB, free: 11.27 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001104/0.039, allocations: 118.4 kB / 242.3 MB, free: 11.12 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001812/0.03918, allocations: 39.34 kB / 242.4 MB, free: 11.09 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002303/0.03941, allocations: 123.3 kB / 242.5 MB, free: 10.96 MB / 250.7 MB Notification: Performance of SimCode: time 9.42e-07/0.03941, allocations: 0 / 242.5 MB, free: 10.96 MB / 250.7 MB Notification: Performance of Templates: time 0.01592/0.05533, allocations: 9.447 MB / 251.9 MB, free: 1.535 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.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.6613299641758204]