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.001105/0.001105, allocations: 84.06 kB / 21.19 MB, free: 3.379 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.001731/0.001731, allocations: 145.1 kB / 24.54 MB, free: 28 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 0.8855/0.8855, allocations: 173.3 MB / 201.1 MB, free: 9.004 MB / 186.7 MB " [Timeout remaining time 179] 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.383e-06/1.383e-06, allocations: 0 / 268 MB, free: 6.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.968e-05/2.106e-05, allocations: 6.25 kB / 268 MB, free: 6.312 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004545/0.004566, allocations: 3.035 MB / 271 MB, free: 3.262 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001197/0.005763, allocations: 0.9309 MB / 272 MB, free: 2.324 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.005888, allocations: 7.938 kB / 272 MB, free: 2.316 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002099/0.006098, allocations: 67.38 kB / 272 MB, free: 2.25 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001776/0.006276, allocations: 142.7 kB / 272.2 MB, free: 2.109 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000458/0.006734, allocations: 231.5 kB / 272.4 MB, free: 1.883 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004259/0.00716, allocations: 0.6508 MB / 273 MB, free: 1.23 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001494/0.007309, allocations: 88.69 kB / 273.1 MB, free: 1.141 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003403/0.007649, allocations: 391.2 kB / 273.5 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002342/0.007884, allocations: 251.4 kB / 273.8 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.336e-05/0.007937, allocations: 48 kB / 273.8 MB, free: 476 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00013/0.008067, allocations: 95.95 kB / 273.9 MB, free: 380 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.06e-05/0.008158, allocations: 131.5 kB / 274 MB, free: 248 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.008272, allocations: 179.6 kB / 274.2 MB, free: 68 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004045/0.008676, allocations: 470.3 kB / 274.7 MB, free: 15.61 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.008679, allocations: 4 kB / 274.7 MB, free: 15.6 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.00868, allocations: 0 / 274.7 MB, free: 15.6 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.008687, allocations: 3.984 kB / 274.7 MB, free: 15.6 MB / 266.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.000789/0.009476, allocations: 0.792 MB / 275.5 MB, free: 14.77 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.009512, allocations: 12.92 kB / 275.5 MB, free: 14.76 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.009616, allocations: 80.61 kB / 275.6 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000269/0.009885, allocations: 275.2 kB / 275.8 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.848e-05/0.009913, allocations: 37.38 kB / 275.9 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.393e-05/0.009967, allocations: 40.33 kB / 275.9 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004856/0.01045, allocations: 399.5 kB / 276.3 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.01047, allocations: 8.172 kB / 276.3 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.526e-05/0.0105, allocations: 16.38 kB / 276.3 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.01051, allocations: 11.94 kB / 276.3 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003931/0.01091, allocations: 313.7 kB / 276.6 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001097/0.012, allocations: 0.9116 MB / 277.5 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004513/0.01245, allocations: 309.6 kB / 277.8 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002416/0.0127, allocations: 181.1 kB / 278 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.948e-05/0.01273, allocations: 12.5 kB / 278 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.01275, allocations: 41.89 kB / 278.1 MB, free: 12.05 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.435e-06/0.01275, allocations: 3.984 kB / 278.1 MB, free: 12.05 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.002368/0.01512, allocations: 1.684 MB / 279.8 MB, free: 10.3 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.79e-05/0.01515, allocations: 59.91 kB / 279.8 MB, free: 10.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001794/0.01533, allocations: 316.2 kB / 280.1 MB, free: 9.906 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.375e-05/0.01536, allocations: 37.7 kB / 280.2 MB, free: 9.863 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.757e-05/0.01546, allocations: 240.2 kB / 280.4 MB, free: 9.621 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.01556, allocations: 198.3 kB / 280.6 MB, free: 9.426 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/0.01568, allocations: 115.9 kB / 280.7 MB, free: 9.305 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.01579, allocations: 0.5157 MB / 281.2 MB, free: 8.777 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000216/0.01601, allocations: 161.2 kB / 281.4 MB, free: 8.621 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002269/0.01623, allocations: 210.5 kB / 281.6 MB, free: 8.406 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003403/0.01657, allocations: 303.7 kB / 281.9 MB, free: 8.102 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.01658, allocations: 0 / 281.9 MB, free: 8.102 MB / 266.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008011/0.01738, allocations: 0.6368 MB / 282.5 MB, free: 7.449 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.01739, allocations: 8 kB / 282.5 MB, free: 7.441 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.01739, allocations: 0 / 282.5 MB, free: 7.441 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005063/0.0179, allocations: 442.9 kB / 283 MB, free: 7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001817/0.01808, allocations: 87.89 kB / 283 MB, free: 6.914 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008057/0.01889, allocations: 1.822 MB / 284.9 MB, free: 5.027 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001779/0.01907, allocations: 51.94 kB / 284.9 MB, free: 4.977 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.765e-05/0.01909, allocations: 23.94 kB / 284.9 MB, free: 4.953 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.000122/0.01922, allocations: 192.3 kB / 285.1 MB, free: 4.754 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.821e-05/0.01928, allocations: 59.7 kB / 285.2 MB, free: 4.695 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.604e-05/0.01934, allocations: 59.55 kB / 285.2 MB, free: 4.637 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.01934, allocations: 4 kB / 285.2 MB, free: 4.633 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.01935, allocations: 0 / 285.2 MB, free: 4.633 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.01935, allocations: 3.984 kB / 285.3 MB, free: 4.629 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001368/0.02072, allocations: 1.179 MB / 286.4 MB, free: 3.383 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.02072, allocations: 0 / 286.4 MB, free: 3.383 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000196/0.02092, allocations: 83.98 kB / 286.5 MB, free: 3.301 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004253/0.02134, allocations: 435 kB / 286.9 MB, free: 2.867 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.632e-05/0.02138, allocations: 23.97 kB / 287 MB, free: 2.844 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007512/0.02213, allocations: 1.807 MB / 288.8 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.02214, allocations: 7.984 kB / 288.8 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1062/0.1283, allocations: 0.936 MB / 289.7 MB, free: 30.24 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003353/0.1286, allocations: 84.81 kB / 289.8 MB, free: 30.24 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.467e-05/0.1287, allocations: 19.03 kB / 289.8 MB, free: 30.24 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003264/0.1291, allocations: 40.36 kB / 289.9 MB, free: 30.24 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002425/0.1293, allocations: 97.97 kB / 289.9 MB, free: 30.24 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.217e-05/0.1294, allocations: 25.66 kB / 290 MB, free: 30.24 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001477/0.1295, allocations: 213.3 kB / 290.2 MB, free: 30.12 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1295, allocations: 0.7188 kB / 290.2 MB, free: 30.12 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000468/0.13, allocations: 131.7 kB / 290.3 MB, free: 30.12 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.0002045/0.1302, allocations: 143.6 kB / 290.5 MB, free: 30.03 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008709/0.131, allocations: 452.2 kB / 290.9 MB, free: 30.02 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.131, allocations: 0 / 290.9 MB, free: 30.02 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004052/0.1315, allocations: 269.1 kB / 291.2 MB, free: 30 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005044/0.132, allocations: 102.2 kB / 291.3 MB, free: 29.99 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00282/0.1348, allocations: 1.211 MB / 292.5 MB, free: 29.46 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.114e-05/0.1349, allocations: 117 kB / 292.6 MB, free: 29.39 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001545/0.135, allocations: 39.61 kB / 292.6 MB, free: 29.39 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001166/0.1351, allocations: 37.28 kB / 292.7 MB, free: 29.39 MB / 266.7 MB Notification: Performance of SimCode: time 9.62e-07/0.1351, allocations: 0 / 292.7 MB, free: 29.39 MB / 266.7 MB Notification: Performance of Templates: time 0.01432/0.1495, allocations: 9.223 MB / 301.9 MB, free: 26.55 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 240] 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","",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.901205790694803]