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.001554/0.001554, allocations: 84.39 kB / 22.21 MB, free: 2.289 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.002155/0.002155, allocations: 166.9 kB / 25.61 MB, free: 8.91 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 0.9575/0.9575, allocations: 158.6 MB / 187.5 MB, free: 2.797 MB / 170.7 MB " [Timeout remaining time 179] 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 2.194e-06/2.194e-06, allocations: 0 / 251.5 MB, free: 7.266 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.582e-05/2.801e-05, allocations: 2.312 kB / 251.5 MB, free: 7.262 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003743/0.003771, allocations: 3.001 MB / 254.5 MB, free: 4.238 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001233/0.005004, allocations: 0.9708 MB / 255.4 MB, free: 3.258 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001222/0.005126, allocations: 7.938 kB / 255.4 MB, free: 3.25 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002065/0.005333, allocations: 59.38 kB / 255.5 MB, free: 3.191 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000173/0.005506, allocations: 146.7 kB / 255.6 MB, free: 3.047 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003772/0.005883, allocations: 231.5 kB / 255.9 MB, free: 2.82 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004105/0.006293, allocations: 0.6508 MB / 256.5 MB, free: 2.168 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001474/0.006441, allocations: 88.69 kB / 256.6 MB, free: 2.074 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003079/0.006749, allocations: 387.2 kB / 257 MB, free: 1.695 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002198/0.006968, allocations: 247.4 kB / 257.2 MB, free: 1.453 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.146e-05/0.00702, allocations: 48 kB / 257.3 MB, free: 1.406 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001351/0.007155, allocations: 99.94 kB / 257.4 MB, free: 1.309 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.375e-05/0.007249, allocations: 131.5 kB / 257.5 MB, free: 1.18 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001161/0.007365, allocations: 179.6 kB / 257.7 MB, free: 1.004 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003838/0.007749, allocations: 478.3 kB / 258.1 MB, free: 0.5352 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.007753, allocations: 3.984 kB / 258.1 MB, free: 0.5312 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.007754, allocations: 4 kB / 258.2 MB, free: 0.5273 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.007759, allocations: 0 / 258.2 MB, free: 0.5273 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.0007764/0.008535, allocations: 0.7957 MB / 258.9 MB, free: 15.7 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.008568, allocations: 15.98 kB / 259 MB, free: 15.68 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.709e-05/0.008655, allocations: 76.66 kB / 259 MB, free: 15.61 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002423/0.008898, allocations: 279.2 kB / 259.3 MB, free: 15.3 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.373e-05/0.008921, allocations: 29.38 kB / 259.3 MB, free: 15.28 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.991e-05/0.008971, allocations: 40.38 kB / 259.4 MB, free: 15.24 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003834/0.009355, allocations: 351.5 kB / 259.7 MB, free: 14.89 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.009371, allocations: 8.141 kB / 259.7 MB, free: 14.88 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.726e-05/0.009398, allocations: 16.38 kB / 259.7 MB, free: 14.86 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.009407, allocations: 11.94 kB / 259.8 MB, free: 14.85 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002661/0.009673, allocations: 230.8 kB / 260 MB, free: 14.62 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001016/0.01069, allocations: 0.8575 MB / 260.8 MB, free: 13.73 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000335/0.01102, allocations: 272.9 kB / 261.1 MB, free: 13.46 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001656/0.01119, allocations: 141.1 kB / 261.2 MB, free: 13.32 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.904e-05/0.01122, allocations: 8.5 kB / 261.3 MB, free: 13.31 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.203e-05/0.01124, allocations: 37.89 kB / 261.3 MB, free: 13.26 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 1.723e-06/0.01124, allocations: 4 kB / 261.3 MB, free: 13.26 MB / 250.7 MB Notification: Performance of matching and sorting (n=56): time 0.001887/0.01313, allocations: 1.435 MB / 262.7 MB, free: 11.76 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.705e-05/0.01316, allocations: 63.91 kB / 262.8 MB, free: 11.68 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001522/0.01331, allocations: 300.1 kB / 263.1 MB, free: 11.38 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.204e-05/0.01334, allocations: 41.7 kB / 263.1 MB, free: 11.33 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.068e-05/0.01343, allocations: 236.2 kB / 263.4 MB, free: 11.09 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001032/0.01353, allocations: 206.3 kB / 263.6 MB, free: 10.89 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.01365, allocations: 115.9 kB / 263.7 MB, free: 10.77 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.01379, allocations: 0.5234 MB / 264.2 MB, free: 10.23 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000138/0.01392, allocations: 117.2 kB / 264.3 MB, free: 10.12 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001598/0.01408, allocations: 166.4 kB / 264.5 MB, free: 9.945 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002313/0.01431, allocations: 247.7 kB / 264.7 MB, free: 9.699 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.01432, allocations: 0 / 264.7 MB, free: 9.699 MB / 250.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0006234/0.01494, allocations: 0.547 MB / 265.3 MB, free: 9.137 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.01495, allocations: 4 kB / 265.3 MB, free: 9.133 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.01496, allocations: 0 / 265.3 MB, free: 9.133 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004377/0.01539, allocations: 422.9 kB / 265.7 MB, free: 8.711 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001605/0.01556, allocations: 83.89 kB / 265.8 MB, free: 8.629 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007197/0.01628, allocations: 1.764 MB / 267.5 MB, free: 6.801 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001642/0.01644, allocations: 59.94 kB / 267.6 MB, free: 6.742 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.448e-05/0.01646, allocations: 19.98 kB / 267.6 MB, free: 6.723 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.0001237/0.01659, allocations: 184.5 kB / 267.8 MB, free: 6.531 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.311e-05/0.01665, allocations: 55.77 kB / 267.8 MB, free: 6.477 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.932e-05/0.01671, allocations: 59.55 kB / 267.9 MB, free: 6.418 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.01671, allocations: 11.94 kB / 267.9 MB, free: 6.406 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-06/0.01671, allocations: 4 kB / 267.9 MB, free: 6.402 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.01672, allocations: 7.984 kB / 267.9 MB, free: 6.395 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001191/0.01791, allocations: 1.055 MB / 269 MB, free: 5.277 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.01792, allocations: 4 kB / 269 MB, free: 5.273 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000179/0.01809, allocations: 83.83 kB / 269.1 MB, free: 5.191 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004036/0.0185, allocations: 411.2 kB / 269.5 MB, free: 4.781 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.561e-05/0.01852, allocations: 19.97 kB / 269.5 MB, free: 4.762 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007695/0.01929, allocations: 1.775 MB / 271.3 MB, free: 2.922 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.0193, allocations: 0 / 271.3 MB, free: 2.922 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008076/0.0201, allocations: 0.8182 MB / 272.1 MB, free: 2.055 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001125/0.02022, allocations: 95.69 kB / 272.2 MB, free: 1.961 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.193e-05/0.02026, allocations: 12 kB / 272.2 MB, free: 1.949 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001493/0.02041, allocations: 43.95 kB / 272.2 MB, free: 1.906 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001167/0.02052, allocations: 100.3 kB / 272.3 MB, free: 1.809 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.201e-05/0.02055, allocations: 19.98 kB / 272.3 MB, free: 1.789 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.921e-05/0.02062, allocations: 201.1 kB / 272.5 MB, free: 1.59 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02062, allocations: 0 / 272.5 MB, free: 1.59 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004096/0.02103, allocations: 131.9 kB / 272.7 MB, free: 1.461 MB / 250.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.0001642/0.0212, allocations: 147 kB / 272.8 MB, free: 1.309 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004293/0.02163, allocations: 374.2 kB / 273.2 MB, free: 0.9414 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.02163, allocations: 0 / 273.2 MB, free: 0.9414 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002352/0.02186, allocations: 240.4 kB / 273.4 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003585/0.02222, allocations: 101 kB / 273.5 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001725/0.02395, allocations: 1.202 MB / 274.7 MB, free: 15.34 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.351e-05/0.02401, allocations: 110.5 kB / 274.8 MB, free: 15.22 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.992e-05/0.0241, allocations: 43.25 kB / 274.9 MB, free: 15.18 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001574/0.02426, allocations: 146.2 kB / 275 MB, free: 15.03 MB / 266.7 MB Notification: Performance of SimCode: time 9.51e-07/0.02426, allocations: 4 kB / 275 MB, free: 15.03 MB / 266.7 MB Notification: Performance of Templates: time 0.01023/0.03449, allocations: 9.374 MB / 284.4 MB, free: 5.684 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","",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.944663306232542]