Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009996/0.0009996, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001253/0.001253, allocations: 168.7 kB / 24.91 MB, free: 9.18 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.031/1.031, allocations: 177.1 MB / 205.3 MB, free: 5.461 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 273.4 MB, free: 1.289 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.758e-05/1.909e-05, allocations: 2.312 kB / 273.4 MB, free: 1.285 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003429/0.003448, allocations: 3.139 MB / 276.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001741/0.005188, allocations: 1.13 MB / 277.7 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000198/0.005386, allocations: 11.94 kB / 277.7 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002951/0.005681, allocations: 87.16 kB / 277.8 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003611/0.006042, allocations: 198.5 kB / 278 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006264/0.006669, allocations: 207.6 kB / 278.2 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005882/0.007257, allocations: 0.6898 MB / 278.9 MB, free: 11.8 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001991/0.007456, allocations: 93.33 kB / 279 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006517/0.008108, allocations: 415.1 kB / 279.4 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003665/0.008474, allocations: 263.3 kB / 279.6 MB, free: 11.04 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.687e-05/0.008541, allocations: 52 kB / 279.7 MB, free: 10.99 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001685/0.00871, allocations: 111.9 kB / 279.8 MB, free: 10.88 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001256/0.008835, allocations: 135.5 kB / 279.9 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00014/0.008975, allocations: 191.5 kB / 280.1 MB, free: 10.56 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004931/0.009468, allocations: 0.506 MB / 280.6 MB, free: 10.05 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.009471, allocations: 0 / 280.6 MB, free: 10.05 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.009473, allocations: 7.938 kB / 280.6 MB, free: 10.05 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.254e-06/0.00948, allocations: 0 / 280.6 MB, free: 10.05 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.0008159/0.0103, allocations: 0.706 MB / 281.3 MB, free: 9.316 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.01033, allocations: 8.031 kB / 281.4 MB, free: 9.309 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001676/0.0105, allocations: 76.88 kB / 281.4 MB, free: 9.234 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003036/0.0108, allocations: 270.2 kB / 281.7 MB, free: 8.941 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.111e-05/0.01083, allocations: 29.38 kB / 281.7 MB, free: 8.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.616e-05/0.01089, allocations: 52.31 kB / 281.8 MB, free: 8.859 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003822/0.01127, allocations: 338.8 kB / 282.1 MB, free: 8.523 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.01128, allocations: 192 / 282.1 MB, free: 8.523 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.778e-05/0.01131, allocations: 24.31 kB / 282.1 MB, free: 8.5 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.01132, allocations: 15.94 kB / 282.1 MB, free: 8.484 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002712/0.01159, allocations: 194.8 kB / 282.3 MB, free: 8.297 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001024/0.01262, allocations: 0.6694 MB / 283 MB, free: 7.605 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003746/0.01299, allocations: 255.1 kB / 283.2 MB, free: 7.344 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001706/0.01316, allocations: 126.3 kB / 283.4 MB, free: 7.219 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.739e-05/0.0132, allocations: 8.5 kB / 283.4 MB, free: 7.211 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.229e-05/0.01322, allocations: 39.06 kB / 283.4 MB, free: 7.164 MB / 266.7 MB Notification: Performance of pre-optimization done (n=55): time 1.753e-06/0.01322, allocations: 0 / 283.4 MB, free: 7.164 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.002006/0.01523, allocations: 1.344 MB / 284.8 MB, free: 5.77 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.092e-05/0.01526, allocations: 55.91 kB / 284.8 MB, free: 5.703 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001694/0.01543, allocations: 264.6 kB / 285.1 MB, free: 5.43 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.07e-05/0.01548, allocations: 45.7 kB / 285.1 MB, free: 5.379 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003463/0.01583, allocations: 170 kB / 285.3 MB, free: 5.203 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.01594, allocations: 226.2 kB / 285.5 MB, free: 4.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.01605, allocations: 102.2 kB / 285.6 MB, free: 4.875 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.847e-05/0.01615, allocations: 362.6 kB / 286 MB, free: 4.512 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000135/0.01629, allocations: 93.22 kB / 286.1 MB, free: 4.422 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000138/0.01643, allocations: 140.8 kB / 286.2 MB, free: 4.277 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002262/0.01665, allocations: 232.8 kB / 286.4 MB, free: 4.047 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.01665, allocations: 4 kB / 286.4 MB, free: 4.043 MB / 266.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0005378/0.01719, allocations: 414.8 kB / 286.8 MB, free: 3.625 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.01721, allocations: 7.938 kB / 286.8 MB, free: 3.617 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.01721, allocations: 4.031 kB / 286.8 MB, free: 3.613 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004322/0.01764, allocations: 277.4 kB / 287.1 MB, free: 3.336 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001731/0.01782, allocations: 75.91 kB / 287.2 MB, free: 3.262 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006391/0.01846, allocations: 1.198 MB / 288.4 MB, free: 2.008 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000185/0.01864, allocations: 60 kB / 288.4 MB, free: 1.949 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.201e-05/0.01866, allocations: 15.98 kB / 288.5 MB, free: 1.934 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 (55): * Single equations (assignments): 53 * 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,10), (1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0001174/0.01878, allocations: 140.6 kB / 288.6 MB, free: 1.785 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.129e-05/0.01884, allocations: 43.97 kB / 288.6 MB, free: 1.742 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.93e-05/0.0189, allocations: 63.69 kB / 288.7 MB, free: 1.68 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.01891, allocations: 8 kB / 288.7 MB, free: 1.672 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.01891, allocations: 7.922 kB / 288.7 MB, free: 1.664 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.369e-06/0.01892, allocations: 3.938 kB / 288.7 MB, free: 1.66 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00104/0.01996, allocations: 0.784 MB / 289.5 MB, free: 0.8281 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.01996, allocations: 4 kB / 289.5 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001878/0.02015, allocations: 83.84 kB / 289.6 MB, free: 0.7422 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003557/0.0205, allocations: 272.5 kB / 289.9 MB, free: 480 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.756e-05/0.02054, allocations: 27.91 kB / 289.9 MB, free: 452 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1094/0.1299, allocations: 1.175 MB / 291.1 MB, free: 24.48 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.1299, allocations: 2.094 kB / 291.1 MB, free: 24.48 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008339/0.1307, allocations: 0.6097 MB / 291.7 MB, free: 24.29 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001522/0.1309, allocations: 63.08 kB / 291.7 MB, free: 24.29 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.549e-05/0.131, allocations: 21.78 kB / 291.8 MB, free: 24.29 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002038/0.1312, allocations: 43.58 kB / 291.8 MB, free: 24.29 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001591/0.1313, allocations: 100.3 kB / 291.9 MB, free: 24.29 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.852e-05/0.1313, allocations: 19.16 kB / 291.9 MB, free: 24.29 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.859e-05/0.1314, allocations: 97.03 kB / 292 MB, free: 24.27 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1314, allocations: 0.9062 kB / 292 MB, free: 24.27 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003502/0.1318, allocations: 129.8 kB / 292.1 MB, free: 24.27 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,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001013/0.1328, allocations: 470.6 kB / 292.6 MB, free: 24.18 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005933/0.1334, allocations: 335.8 kB / 292.9 MB, free: 24.16 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.333e-06/0.1334, allocations: 5.781 kB / 292.9 MB, free: 24.16 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002826/0.1337, allocations: 213.9 kB / 293.1 MB, free: 24.14 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003813/0.1341, allocations: 124.3 kB / 293.3 MB, free: 24.14 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001964/0.136, allocations: 1.126 MB / 294.4 MB, free: 23.67 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.002e-05/0.1361, allocations: 123.5 kB / 294.5 MB, free: 23.6 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001284/0.1363, allocations: 40.59 kB / 294.5 MB, free: 23.59 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001855/0.1364, allocations: 124.2 kB / 294.7 MB, free: 23.54 MB / 266.7 MB Notification: Performance of SimCode: time 1.422e-06/0.1364, allocations: 1.281 kB / 294.7 MB, free: 23.54 MB / 266.7 MB Notification: Performance of Templates: time 0.01208/0.1485, allocations: 9.347 MB / 304 MB, free: 20.55 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 3.1396741969510913]