Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001514/0.001514, allocations: 84.66 kB / 20.95 MB, free: 3.461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001468/0.001468, allocations: 145.1 kB / 24.25 MB, free: 164 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 173.4 MB / 200.8 MB, free: 9.289 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 267.3 MB, free: 6.715 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.635e-05/2.779e-05, allocations: 5.688 kB / 267.3 MB, free: 6.711 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004729/0.004756, allocations: 2.835 MB / 270.2 MB, free: 3.855 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001918/0.006674, allocations: 0.9115 MB / 271.1 MB, free: 2.938 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001709/0.006845, allocations: 7.938 kB / 271.1 MB, free: 2.93 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002566/0.007102, allocations: 75.25 kB / 271.1 MB, free: 2.855 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002929/0.007394, allocations: 134.8 kB / 271.3 MB, free: 2.723 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006406/0.008035, allocations: 235.5 kB / 271.5 MB, free: 2.492 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000789/0.008824, allocations: 0.6469 MB / 272.2 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002351/0.009059, allocations: 92.67 kB / 272.2 MB, free: 1.75 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005661/0.009625, allocations: 387.2 kB / 272.6 MB, free: 1.371 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003722/0.009997, allocations: 247.4 kB / 272.9 MB, free: 1.129 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.468e-05/0.01008, allocations: 48 kB / 272.9 MB, free: 1.082 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001988/0.01028, allocations: 99.94 kB / 273 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001611/0.01044, allocations: 127.5 kB / 273.1 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002284/0.01067, allocations: 179.6 kB / 273.3 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008249/0.0115, allocations: 0.6386 MB / 273.9 MB, free: 44 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.0115, allocations: 0 / 273.9 MB, free: 44 kB / 250.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.0115, allocations: 0 / 273.9 MB, free: 44 kB / 250.7 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.01151, allocations: 0 / 273.9 MB, free: 44 kB / 250.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.001572/0.01308, allocations: 0.7157 MB / 274.7 MB, free: 15.29 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.01311, allocations: 8.922 kB / 274.7 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001905/0.0133, allocations: 92.55 kB / 274.8 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000525/0.01383, allocations: 268.5 kB / 275 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.494e-05/0.01387, allocations: 29.38 kB / 275.1 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.01398, allocations: 48.33 kB / 275.1 MB, free: 14.83 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000981/0.01496, allocations: 470.9 kB / 275.6 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.946e-05/0.01498, allocations: 192 / 275.6 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.608e-05/0.01502, allocations: 16.38 kB / 275.6 MB, free: 14.35 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.949e-05/0.01504, allocations: 15.94 kB / 275.6 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001072/0.01611, allocations: 483.6 kB / 276.1 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002366/0.01848, allocations: 0.9123 MB / 277 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008924/0.01937, allocations: 376.5 kB / 277.3 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005729/0.01994, allocations: 253.7 kB / 277.6 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.339e-05/0.02, allocations: 12.48 kB / 277.6 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.546e-05/0.02003, allocations: 43 kB / 277.6 MB, free: 12.22 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.653e-06/0.02004, allocations: 0 / 277.6 MB, free: 12.22 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.005514/0.02555, allocations: 2.049 MB / 279.7 MB, free: 10.11 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.857e-05/0.02561, allocations: 59.91 kB / 279.8 MB, free: 10.04 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003441/0.02595, allocations: 265.8 kB / 280 MB, free: 9.777 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.138e-05/0.02601, allocations: 41.7 kB / 280.1 MB, free: 9.73 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001794/0.02619, allocations: 197.4 kB / 280.2 MB, free: 9.531 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001994/0.02639, allocations: 194.4 kB / 280.4 MB, free: 9.34 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002171/0.02661, allocations: 110.3 kB / 280.5 MB, free: 9.227 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002221/0.02683, allocations: 354.8 kB / 280.9 MB, free: 8.871 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005188/0.02735, allocations: 237.2 kB / 281.1 MB, free: 8.641 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005701/0.02792, allocations: 288.8 kB / 281.4 MB, free: 8.352 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008643/0.02878, allocations: 418 kB / 281.8 MB, free: 7.938 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.02879, allocations: 0 / 281.8 MB, free: 7.938 MB / 266.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001862/0.03065, allocations: 0.803 MB / 282.6 MB, free: 7.121 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.03067, allocations: 4 kB / 282.6 MB, free: 7.117 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.03068, allocations: 0 / 282.6 MB, free: 7.117 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001023/0.0317, allocations: 0.5052 MB / 283.1 MB, free: 6.605 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003628/0.03206, allocations: 91.83 kB / 283.2 MB, free: 6.516 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001893/0.03396, allocations: 1.405 MB / 284.6 MB, free: 5.059 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004893/0.03444, allocations: 80.06 kB / 284.7 MB, free: 4.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.15e-05/0.0345, allocations: 16 kB / 284.7 MB, free: 4.965 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 (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.000273/0.03477, allocations: 173.7 kB / 284.9 MB, free: 4.785 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001395/0.03491, allocations: 59.7 kB / 284.9 MB, free: 4.727 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001386/0.03505, allocations: 55.61 kB / 285 MB, free: 4.672 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.006e-06/0.03506, allocations: 4 kB / 285 MB, free: 4.668 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.278e-06/0.03507, allocations: 0 / 285 MB, free: 4.668 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.03507, allocations: 3.984 kB / 285 MB, free: 4.664 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003098/0.03817, allocations: 1.293 MB / 286.3 MB, free: 3.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.03818, allocations: 4 kB / 286.3 MB, free: 3.316 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003859/0.03857, allocations: 79.89 kB / 286.4 MB, free: 3.238 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009223/0.03949, allocations: 481.5 kB / 286.8 MB, free: 2.762 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.858e-05/0.03955, allocations: 23.97 kB / 286.9 MB, free: 2.738 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001532/0.04108, allocations: 1.39 MB / 288.3 MB, free: 1.297 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.389e-06/0.04108, allocations: 3.984 kB / 288.3 MB, free: 1.293 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002344/0.04343, allocations: 1.099 MB / 289.4 MB, free: 160 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002414/0.04367, allocations: 95.75 kB / 289.5 MB, free: 64 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.08e-05/0.04376, allocations: 20 kB / 289.5 MB, free: 44 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.1361/0.1799, allocations: 48.61 kB / 289.5 MB, free: 33.32 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004231/0.1803, allocations: 102.2 kB / 289.6 MB, free: 33.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-05/0.1804, allocations: 27.2 kB / 289.7 MB, free: 33.32 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002998/0.1807, allocations: 186.4 kB / 289.8 MB, free: 33.24 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1807, allocations: 0 / 289.8 MB, free: 33.24 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006372/0.1813, allocations: 135.7 kB / 290 MB, free: 33.24 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.0002352/0.1815, allocations: 143.5 kB / 290.1 MB, free: 33.15 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001329/0.1829, allocations: 0.5568 MB / 290.7 MB, free: 33.14 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1829, allocations: 0 / 290.7 MB, free: 33.14 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007309/0.1836, allocations: 331.8 kB / 291 MB, free: 33.14 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009835/0.1846, allocations: 96.53 kB / 291.1 MB, free: 33.14 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003719/0.1883, allocations: 1.307 MB / 292.4 MB, free: 32.64 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002125/0.1885, allocations: 218.7 kB / 292.6 MB, free: 32.55 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001562/0.1887, allocations: 37.78 kB / 292.6 MB, free: 32.55 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001175/0.1888, allocations: 43.14 kB / 292.7 MB, free: 32.53 MB / 266.7 MB Notification: Performance of SimCode: time 9.92e-07/0.1888, allocations: 0 / 292.7 MB, free: 32.53 MB / 266.7 MB Notification: Performance of Templates: time 0.01489/0.2037, allocations: 8.477 MB / 301.2 MB, free: 29.72 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.861444972004392]