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.002295/0.002295, allocations: 103.5 kB / 21.73 MB, free: 2.684 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.001866/0.001866, allocations: 161.2 kB / 25.03 MB, free: 8.945 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.33/1.33, allocations: 158.6 MB / 186.8 MB, free: 2.906 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.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.903e-06/1.903e-06, allocations: 0 / 250.4 MB, free: 7.844 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.015e-05/3.205e-05, allocations: 2.312 kB / 250.4 MB, free: 7.84 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.00755/0.007582, allocations: 3.001 MB / 253.4 MB, free: 4.82 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00297/0.01055, allocations: 0.9668 MB / 254.3 MB, free: 3.84 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002489/0.0108, allocations: 11.94 kB / 254.3 MB, free: 3.828 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003325/0.01113, allocations: 67.31 kB / 254.4 MB, free: 3.762 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004732/0.01161, allocations: 142.8 kB / 254.5 MB, free: 3.621 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008856/0.01249, allocations: 223.5 kB / 254.8 MB, free: 3.402 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001179/0.01367, allocations: 0.6586 MB / 255.4 MB, free: 2.742 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003069/0.01398, allocations: 88.69 kB / 255.5 MB, free: 2.652 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008464/0.01482, allocations: 387.2 kB / 255.9 MB, free: 2.273 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006079/0.01543, allocations: 247.4 kB / 256.1 MB, free: 2.031 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001423/0.01557, allocations: 48 kB / 256.2 MB, free: 1.984 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003127/0.01589, allocations: 103.9 kB / 256.3 MB, free: 1.883 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000242/0.01613, allocations: 127.6 kB / 256.4 MB, free: 1.758 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003362/0.01647, allocations: 179.5 kB / 256.6 MB, free: 1.582 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001274/0.01774, allocations: 0.6464 MB / 257.2 MB, free: 0.9336 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.01774, allocations: 0 / 257.2 MB, free: 0.9336 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.01775, allocations: 0 / 257.2 MB, free: 0.9336 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.767e-06/0.01775, allocations: 4 kB / 257.2 MB, free: 0.9297 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.002449/0.0202, allocations: 0.8035 MB / 258 MB, free: 92 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.02025, allocations: 11.98 kB / 258 MB, free: 80 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002913/0.02054, allocations: 83.84 kB / 258.1 MB, free: 16 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007149/0.02126, allocations: 287.1 kB / 258.4 MB, free: 15.69 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.357e-05/0.02131, allocations: 29.38 kB / 258.4 MB, free: 15.66 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000141/0.02145, allocations: 44.38 kB / 258.5 MB, free: 15.62 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/0.02287, allocations: 458.9 kB / 258.9 MB, free: 15.16 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.306e-05/0.02292, allocations: 8.125 kB / 258.9 MB, free: 15.16 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.3e-05/0.02299, allocations: 17.12 kB / 258.9 MB, free: 15.14 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.781e-05/0.02301, allocations: 15.94 kB / 259 MB, free: 15.12 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001622/0.02463, allocations: 447.7 kB / 259.4 MB, free: 14.69 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003344/0.02797, allocations: 1.018 MB / 260.4 MB, free: 13.63 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.02927, allocations: 369 kB / 260.8 MB, free: 13.26 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000874/0.03015, allocations: 241.1 kB / 261 MB, free: 13.02 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.69e-05/0.03021, allocations: 8.5 kB / 261 MB, free: 13.01 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.155e-05/0.03027, allocations: 41.89 kB / 261.1 MB, free: 12.96 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 2.736e-06/0.03027, allocations: 0 / 261.1 MB, free: 12.96 MB / 250.7 MB Notification: Performance of matching and sorting (n=56): time 0.008531/0.0388, allocations: 1.997 MB / 263.1 MB, free: 10.9 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.381e-05/0.03887, allocations: 55.91 kB / 263.1 MB, free: 10.83 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004615/0.03933, allocations: 340.3 kB / 263.4 MB, free: 10.48 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 7.378e-05/0.03941, allocations: 49.69 kB / 263.5 MB, free: 10.43 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002529/0.03966, allocations: 244.2 kB / 263.7 MB, free: 10.18 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003147/0.03998, allocations: 222.2 kB / 264 MB, free: 9.965 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003459/0.04032, allocations: 123.9 kB / 264.1 MB, free: 9.836 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0004459/0.04077, allocations: 0.5391 MB / 264.6 MB, free: 9.285 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008062/0.04157, allocations: 233.2 kB / 264.8 MB, free: 9.059 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009939/0.04257, allocations: 294.5 kB / 265.1 MB, free: 8.762 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001368/0.04394, allocations: 431.7 kB / 265.5 MB, free: 8.332 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.04394, allocations: 4 kB / 265.6 MB, free: 8.328 MB / 250.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00272/0.04666, allocations: 0.8008 MB / 266.4 MB, free: 7.512 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.04669, allocations: 8 kB / 266.4 MB, free: 7.504 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.0467, allocations: 0 / 266.4 MB, free: 7.504 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001651/0.04835, allocations: 0.4912 MB / 266.9 MB, free: 7.004 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006055/0.04895, allocations: 87.89 kB / 266.9 MB, free: 6.918 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002729/0.05168, allocations: 1.951 MB / 268.9 MB, free: 4.902 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006542/0.05234, allocations: 47.94 kB / 268.9 MB, free: 4.855 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.971e-05/0.05242, allocations: 20 kB / 269 MB, free: 4.836 MB / 250.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.0004125/0.05283, allocations: 208.6 kB / 269.2 MB, free: 4.621 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002086/0.05304, allocations: 55.77 kB / 269.2 MB, free: 4.566 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002325/0.05327, allocations: 59.61 kB / 269.3 MB, free: 4.508 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-05/0.05329, allocations: 7.938 kB / 269.3 MB, free: 4.5 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.05329, allocations: 0 / 269.3 MB, free: 4.5 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.274e-05/0.05331, allocations: 3.984 kB / 269.3 MB, free: 4.496 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003548/0.05685, allocations: 1.382 MB / 270.7 MB, free: 3.047 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.05686, allocations: 0 / 270.7 MB, free: 3.047 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003857/0.05724, allocations: 84.06 kB / 270.7 MB, free: 2.965 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009425/0.05819, allocations: 475 kB / 271.2 MB, free: 2.492 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.536e-05/0.05824, allocations: 23.98 kB / 271.2 MB, free: 2.469 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00211/0.06035, allocations: 1.912 MB / 273.1 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.06035, allocations: 0 / 273.1 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002389/0.06274, allocations: 1.154 MB / 274.3 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002424/0.06299, allocations: 87.67 kB / 274.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.897e-05/0.06307, allocations: 20 kB / 274.4 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003682/0.06344, allocations: 35.95 kB / 274.4 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002457/0.06369, allocations: 112.2 kB / 274.6 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.622e-05/0.06374, allocations: 27.97 kB / 274.6 MB, free: 15.01 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002488/0.06399, allocations: 237 kB / 274.8 MB, free: 14.78 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.06399, allocations: 0 / 274.8 MB, free: 14.78 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005256/0.06452, allocations: 132 kB / 274.9 MB, free: 14.65 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,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002749/0.06479, allocations: 147 kB / 275.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001408/0.0662, allocations: 0.5841 MB / 275.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.0662, allocations: 0 / 275.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007209/0.06692, allocations: 324.1 kB / 276 MB, free: 13.59 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006688/0.06759, allocations: 105.5 kB / 276.1 MB, free: 13.48 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00343/0.07102, allocations: 1.253 MB / 277.3 MB, free: 12.18 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002523/0.07128, allocations: 224.9 kB / 277.6 MB, free: 11.93 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001632/0.07144, allocations: 35.28 kB / 277.6 MB, free: 11.9 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.07156, allocations: 40.48 kB / 277.6 MB, free: 11.86 MB / 266.7 MB Notification: Performance of SimCode: time 7.81e-07/0.07156, allocations: 0 / 277.6 MB, free: 11.86 MB / 266.7 MB Notification: Performance of Templates: time 0.03214/0.1037, allocations: 8.457 MB / 286.1 MB, free: 3.43 MB / 266.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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.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.697338068042882]