Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009234/0.0009234, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001053/0.001976, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007196/0.0007196, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009604/0.00168, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9035/0.9035, allocations: 177.4 MB / 189.9 MB, free: 4.844 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08382/0.9873, allocations: 53.86 MB / 243.7 MB, free: 14.93 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 245 MB, free: 13.67 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.329e-05/1.469e-05, allocations: 9.266 kB / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.002924/0.002939, allocations: 3.19 MB / 248.2 MB, free: 10.45 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001469/0.004408, allocations: 1.153 MB / 249.4 MB, free: 9.293 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001448/0.004552, allocations: 11.94 kB / 249.4 MB, free: 9.281 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002102/0.004763, allocations: 83.22 kB / 249.5 MB, free: 9.199 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002759/0.005038, allocations: 198.5 kB / 249.6 MB, free: 9.004 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000248/0.005286, allocations: 211.5 kB / 249.9 MB, free: 8.797 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004212/0.005708, allocations: 0.6665 MB / 250.5 MB, free: 8.129 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001521/0.00586, allocations: 97.31 kB / 250.6 MB, free: 8.031 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003799/0.006239, allocations: 463.7 kB / 251.1 MB, free: 7.578 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002497/0.006489, allocations: 259.3 kB / 251.3 MB, free: 7.324 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.448e-05/0.006544, allocations: 52 kB / 251.4 MB, free: 7.273 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001522/0.006696, allocations: 107.9 kB / 251.5 MB, free: 7.168 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.006805, allocations: 95.69 kB / 251.6 MB, free: 7.074 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001163/0.006922, allocations: 143.7 kB / 251.7 MB, free: 6.934 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000403/0.007325, allocations: 454.3 kB / 252.2 MB, free: 6.488 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.352e-05/0.007338, allocations: 0 / 252.2 MB, free: 6.488 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.007339, allocations: 0 / 252.2 MB, free: 6.488 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.007353, allocations: 0 / 252.2 MB, free: 6.488 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.0009177/0.008271, allocations: 0.8149 MB / 253 MB, free: 5.645 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.008308, allocations: 12.62 kB / 253 MB, free: 5.633 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002019/0.00851, allocations: 154 kB / 253.1 MB, free: 5.465 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002967/0.008807, allocations: 258.3 kB / 253.4 MB, free: 5.184 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.122e-05/0.008838, allocations: 37.31 kB / 253.4 MB, free: 5.148 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.106e-05/0.008889, allocations: 48.33 kB / 253.5 MB, free: 5.102 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003376/0.009226, allocations: 334.8 kB / 253.8 MB, free: 4.77 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.009242, allocations: 12.16 kB / 253.8 MB, free: 4.758 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.01e-05/0.009272, allocations: 16.38 kB / 253.8 MB, free: 4.742 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.00928, allocations: 15.88 kB / 253.8 MB, free: 4.727 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002457/0.009526, allocations: 194.8 kB / 254 MB, free: 4.535 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009075/0.01043, allocations: 0.6616 MB / 254.7 MB, free: 3.852 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003684/0.0108, allocations: 272.5 kB / 255 MB, free: 3.574 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001542/0.01096, allocations: 122.3 kB / 255.1 MB, free: 3.453 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.212e-05/0.01099, allocations: 8.5 kB / 255.1 MB, free: 3.445 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.514e-05/0.01101, allocations: 43.05 kB / 255.1 MB, free: 3.395 MB / 250.7 MB Notification: Performance of pre-optimization done (n=55): time 1.463e-06/0.01101, allocations: 0 / 255.1 MB, free: 3.395 MB / 250.7 MB Notification: Performance of matching and sorting (n=61): time 0.001875/0.01289, allocations: 1.344 MB / 256.5 MB, free: 2 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.24e-05/0.01292, allocations: 55.91 kB / 256.5 MB, free: 1.93 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000157/0.01308, allocations: 260.7 kB / 256.8 MB, free: 1.656 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.845e-05/0.01312, allocations: 45.7 kB / 256.8 MB, free: 1.605 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.681e-05/0.01318, allocations: 166 kB / 257 MB, free: 1.441 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.01329, allocations: 218.2 kB / 257.2 MB, free: 1.227 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.878e-05/0.01339, allocations: 110.2 kB / 257.3 MB, free: 1.113 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.038e-05/0.01347, allocations: 362.7 kB / 257.7 MB, free: 0.75 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.01358, allocations: 85.28 kB / 257.7 MB, free: 0.668 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001367/0.01372, allocations: 144.8 kB / 257.9 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002126/0.01393, allocations: 236.8 kB / 258.1 MB, free: 296 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.01393, allocations: 0 / 258.1 MB, free: 296 kB / 250.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0004967/0.01443, allocations: 422.7 kB / 258.5 MB, free: 15.86 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.01444, allocations: 7.938 kB / 258.5 MB, free: 15.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.01445, allocations: 4 kB / 258.5 MB, free: 15.85 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003741/0.01482, allocations: 265.5 kB / 258.8 MB, free: 15.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001802/0.015, allocations: 95.83 kB / 258.9 MB, free: 15.49 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006183/0.01562, allocations: 1.194 MB / 260.1 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001617/0.01578, allocations: 60 kB / 260.1 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.051e-05/0.0158, allocations: 12 kB / 260.2 MB, free: 14.17 MB / 266.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 (55): * Single equations (assignments): 53 * 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,10), (1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0001159/0.01592, allocations: 145.4 kB / 260.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.49e-05/0.01598, allocations: 47.95 kB / 260.3 MB, free: 13.97 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.179e-05/0.01604, allocations: 59.69 kB / 260.4 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.01604, allocations: 8 kB / 260.4 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.634e-06/0.01604, allocations: 3.938 kB / 260.4 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.01605, allocations: 7.984 kB / 260.4 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009503/0.017, allocations: 0.7763 MB / 261.2 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.92e-06/0.01701, allocations: 16 kB / 261.2 MB, free: 13.05 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002006/0.01721, allocations: 91.89 kB / 261.3 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.647e-05/0.0173, allocations: 51.73 kB / 261.4 MB, free: 12.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003172/0.01762, allocations: 265.4 kB / 261.6 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.741e-05/0.01765, allocations: 19.97 kB / 261.6 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005594/0.01821, allocations: 1.197 MB / 262.8 MB, free: 11.37 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.01821, allocations: 7.938 kB / 262.8 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006679/0.01888, allocations: 0.6185 MB / 263.5 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.579e-05/0.01893, allocations: 23.98 kB / 263.5 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001553/0.01909, allocations: 44.02 kB / 263.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/0.01921, allocations: 100.3 kB / 263.6 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.222e-05/0.01923, allocations: 15.98 kB / 263.6 MB, free: 10.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.639e-05/0.0193, allocations: 92.62 kB / 263.7 MB, free: 10.43 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0193, allocations: 3.938 kB / 263.7 MB, free: 10.43 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002427/0.01954, allocations: 132 kB / 263.9 MB, free: 10.3 MB / 266.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,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001038/0.02058, allocations: 0.4922 MB / 264.4 MB, free: 9.996 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004558/0.02104, allocations: 339.6 kB / 264.7 MB, free: 9.664 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.324e-05/0.02105, allocations: 11.94 kB / 264.7 MB, free: 9.652 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002215/0.02127, allocations: 206.2 kB / 264.9 MB, free: 9.453 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003561/0.02163, allocations: 173 kB / 265.1 MB, free: 9.281 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0042/0.02583, allocations: 1.099 MB / 266.2 MB, free: 8.133 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.069e-05/0.0259, allocations: 122.8 kB / 266.3 MB, free: 7.992 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000102/0.026, allocations: 47.28 kB / 266.3 MB, free: 7.941 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001664/0.02617, allocations: 131.2 kB / 266.5 MB, free: 7.812 MB / 266.7 MB Notification: Performance of SimCode: time 7.21e-07/0.02617, allocations: 0 / 266.5 MB, free: 7.812 MB / 266.7 MB Notification: Performance of Templates: time 0.1093/0.1355, allocations: 9.502 MB / 276 MB, free: 22.98 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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.8415843416005373]