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.0009429/0.0009429, allocations: 78.97 kB / 21.42 MB, free: 3.074 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.001896/0.001896, allocations: 150.1 kB / 24.81 MB, free: 9.332 MB / 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.9722/0.9722, allocations: 173.3 MB / 201.4 MB, free: 9.211 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.743e-06/1.743e-06, allocations: 0 / 268.4 MB, free: 6.211 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.312e-05/1.487e-05, allocations: 2.312 kB / 268.4 MB, free: 6.207 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.002738/0.002752, allocations: 3.004 MB / 271.4 MB, free: 3.184 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001265/0.004018, allocations: 0.9153 MB / 272.3 MB, free: 2.262 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001433/0.004161, allocations: 7.938 kB / 272.3 MB, free: 2.254 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001937/0.004355, allocations: 67.38 kB / 272.4 MB, free: 2.188 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001815/0.004536, allocations: 150.7 kB / 272.5 MB, free: 2.039 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003921/0.004929, allocations: 223.5 kB / 272.8 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004049/0.005333, allocations: 0.6547 MB / 273.4 MB, free: 1.164 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.005476, allocations: 92.64 kB / 273.5 MB, free: 1.07 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003181/0.005794, allocations: 383.2 kB / 273.9 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002282/0.006022, allocations: 251.4 kB / 274.1 MB, free: 460 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.555e-05/0.006078, allocations: 48 kB / 274.2 MB, free: 412 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001307/0.006208, allocations: 99.89 kB / 274.3 MB, free: 312 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.56e-05/0.006294, allocations: 127.5 kB / 274.4 MB, free: 184 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000112/0.006406, allocations: 179.5 kB / 274.6 MB, free: 4 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000378/0.006784, allocations: 482.5 kB / 275 MB, free: 15.53 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.502e-06/0.006785, allocations: 0 / 275 MB, free: 15.53 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.006786, allocations: 0 / 275 MB, free: 15.53 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.006791, allocations: 0 / 275 MB, free: 15.53 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.0007474/0.007538, allocations: 0.7919 MB / 275.8 MB, free: 14.7 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.007572, allocations: 12.92 kB / 275.8 MB, free: 14.69 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.432e-05/0.007666, allocations: 84.61 kB / 275.9 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002428/0.007909, allocations: 275.2 kB / 276.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.736e-05/0.007936, allocations: 33.38 kB / 276.2 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.3e-05/0.007989, allocations: 44.33 kB / 276.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003736/0.008363, allocations: 347.6 kB / 276.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.008376, allocations: 192 / 276.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.591e-05/0.008402, allocations: 20.36 kB / 276.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.008412, allocations: 19.92 kB / 276.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002695/0.008682, allocations: 234.8 kB / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009855/0.009667, allocations: 0.8651 MB / 277.7 MB, free: 12.71 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003381/0.01001, allocations: 270.5 kB / 278 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.01017, allocations: 141.1 kB / 278.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.818e-05/0.0102, allocations: 8.5 kB / 278.2 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.164e-05/0.01022, allocations: 41.89 kB / 278.2 MB, free: 12.24 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.473e-06/0.01022, allocations: 0 / 278.2 MB, free: 12.24 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001889/0.01211, allocations: 1.431 MB / 279.6 MB, free: 10.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.465e-05/0.01214, allocations: 55.91 kB / 279.7 MB, free: 10.68 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001512/0.01229, allocations: 312.1 kB / 280 MB, free: 10.36 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.218e-05/0.01232, allocations: 37.7 kB / 280 MB, free: 10.32 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.868e-05/0.01241, allocations: 236.2 kB / 280.2 MB, free: 10.08 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.01251, allocations: 202.3 kB / 280.4 MB, free: 9.879 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001093/0.01262, allocations: 115.9 kB / 280.6 MB, free: 9.758 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.01274, allocations: 0.5273 MB / 281.1 MB, free: 9.219 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001382/0.01288, allocations: 113.2 kB / 281.2 MB, free: 9.109 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001533/0.01303, allocations: 170.4 kB / 281.4 MB, free: 8.934 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002271/0.01326, allocations: 239.7 kB / 281.6 MB, free: 8.691 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.01326, allocations: 0 / 281.6 MB, free: 8.691 MB / 266.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0006225/0.01389, allocations: 0.5469 MB / 282.1 MB, free: 8.129 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.0139, allocations: 4 kB / 282.1 MB, free: 8.125 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.01391, allocations: 4 kB / 282.2 MB, free: 8.121 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004379/0.01434, allocations: 438.9 kB / 282.6 MB, free: 7.684 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001623/0.01451, allocations: 83.91 kB / 282.7 MB, free: 7.602 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007269/0.01523, allocations: 1.764 MB / 284.4 MB, free: 5.773 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000163/0.0154, allocations: 55.94 kB / 284.5 MB, free: 5.719 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.34e-05/0.01542, allocations: 15.98 kB / 284.5 MB, free: 5.703 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.0001137/0.01553, allocations: 188.6 kB / 284.7 MB, free: 5.508 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.346e-05/0.0156, allocations: 59.77 kB / 284.7 MB, free: 5.449 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.517e-05/0.01565, allocations: 59.55 kB / 284.8 MB, free: 5.391 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.01566, allocations: 8 kB / 284.8 MB, free: 5.383 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.01566, allocations: 0 / 284.8 MB, free: 5.383 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.01566, allocations: 3.984 kB / 284.8 MB, free: 5.379 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001165/0.01683, allocations: 1.055 MB / 285.9 MB, free: 4.266 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.01683, allocations: 160 / 285.9 MB, free: 4.266 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000184/0.01701, allocations: 87.89 kB / 286 MB, free: 4.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003909/0.0174, allocations: 411 kB / 286.4 MB, free: 3.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.674e-05/0.01743, allocations: 19.98 kB / 286.4 MB, free: 3.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006809/0.01811, allocations: 1.768 MB / 288.1 MB, free: 1.918 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.01811, allocations: 0 / 288.1 MB, free: 1.918 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008227/0.01894, allocations: 0.8222 MB / 289 MB, free: 1.051 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000117/0.01905, allocations: 91.66 kB / 289.1 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.586e-05/0.0191, allocations: 20 kB / 289.1 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001553/0.01926, allocations: 43.95 kB / 289.1 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/0.01938, allocations: 100.2 kB / 289.2 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.616e-05/0.01941, allocations: 19.97 kB / 289.2 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.756e-05/0.01949, allocations: 197.1 kB / 289.4 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01949, allocations: 0 / 289.4 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002707/0.01976, allocations: 135.9 kB / 289.6 MB, free: 464 kB / 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.0001418/0.01991, allocations: 151 kB / 289.7 MB, free: 304 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.08925/0.1092, allocations: 373.8 kB / 290.1 MB, free: 30.77 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.1092, allocations: 1.312 kB / 290.1 MB, free: 30.77 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003457/0.1095, allocations: 227.9 kB / 290.3 MB, free: 30.76 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004201/0.1099, allocations: 99.55 kB / 290.4 MB, free: 30.75 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001754/0.1117, allocations: 1.189 MB / 291.6 MB, free: 30.24 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.344e-05/0.1117, allocations: 114.3 kB / 291.7 MB, free: 30.17 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.657e-05/0.1118, allocations: 41.47 kB / 291.7 MB, free: 30.16 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001601/0.112, allocations: 148.1 kB / 291.9 MB, free: 30.1 MB / 266.7 MB Notification: Performance of SimCode: time 6.32e-07/0.112, allocations: 0 / 291.9 MB, free: 30.1 MB / 266.7 MB Notification: Performance of Templates: time 0.01062/0.1226, allocations: 9.389 MB / 301.3 MB, free: 27.41 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.869138805195689]