Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009434/0.0009434, allocations: 82.59 kB / 21.43 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001068/0.001068, allocations: 165.3 kB / 24.82 MB, free: 9.301 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.05/1.05, allocations: 177 MB / 205.1 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3335/0.3335, allocations: 34.87 MB / 296.6 MB, free: 0.5234 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5020,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction") translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5020,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 5.431e-06/5.431e-06, allocations: 3.984 kB / 379.2 MB, free: 1.867 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.074e-05/3.617e-05, allocations: 2.312 kB / 379.2 MB, free: 1.863 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005138/0.005174, allocations: 4.003 MB / 383.2 MB, free: 13.83 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.003098/0.008272, allocations: 1.465 MB / 384.7 MB, free: 12.36 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003754/0.008647, allocations: 19.88 kB / 384.7 MB, free: 12.34 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004277/0.009075, allocations: 134.7 kB / 384.8 MB, free: 12.21 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005092/0.009584, allocations: 297.7 kB / 385.1 MB, free: 11.91 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005153/0.0101, allocations: 367.2 kB / 385.5 MB, free: 11.55 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008402/0.01094, allocations: 1.124 MB / 386.6 MB, free: 10.43 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002128/0.01115, allocations: 127 kB / 386.7 MB, free: 10.29 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006952/0.01185, allocations: 0.6589 MB / 387.4 MB, free: 9.633 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004564/0.0123, allocations: 431 kB / 387.8 MB, free: 9.211 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001168/0.01242, allocations: 87.98 kB / 387.9 MB, free: 9.125 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001921/0.01261, allocations: 131.9 kB / 388 MB, free: 8.996 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001825/0.0128, allocations: 231.2 kB / 388.2 MB, free: 8.77 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002177/0.01301, allocations: 315.2 kB / 388.5 MB, free: 8.461 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006488/0.01366, allocations: 0.7863 MB / 389.3 MB, free: 7.672 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.01366, allocations: 0 / 389.3 MB, free: 7.672 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.72e-07/0.01366, allocations: 0 / 389.3 MB, free: 7.672 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.195e-06/0.01367, allocations: 3.984 kB / 389.3 MB, free: 7.668 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001229/0.0149, allocations: 1.165 MB / 390.5 MB, free: 6.465 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.01495, allocations: 8.031 kB / 390.5 MB, free: 6.457 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003406/0.01529, allocations: 168.3 kB / 390.7 MB, free: 6.293 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004664/0.01575, allocations: 438.7 kB / 391.1 MB, free: 5.832 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.48e-05/0.0158, allocations: 53.69 kB / 391.2 MB, free: 5.781 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004169/0.01622, allocations: 68.27 kB / 391.2 MB, free: 5.715 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006672/0.01688, allocations: 0.6338 MB / 391.9 MB, free: 5.035 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.528e-05/0.01691, allocations: 15.88 kB / 391.9 MB, free: 5.02 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.35e-05/0.01695, allocations: 28 kB / 391.9 MB, free: 4.992 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.01696, allocations: 12 kB / 391.9 MB, free: 4.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004723/0.01744, allocations: 358.5 kB / 392.3 MB, free: 4.633 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002372/0.01981, allocations: 2.429 MB / 394.7 MB, free: 2.109 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005528/0.02036, allocations: 471.9 kB / 395.1 MB, free: 1.598 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002062/0.02057, allocations: 186.6 kB / 395.3 MB, free: 1.398 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.585e-05/0.02061, allocations: 16 kB / 395.3 MB, free: 1.383 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.991e-05/0.02064, allocations: 49.7 kB / 395.4 MB, free: 1.324 MB / 362.7 MB Notification: Performance of pre-optimization done (n=79): time 2.034e-06/0.02064, allocations: 0 / 395.4 MB, free: 1.324 MB / 362.7 MB Notification: Performance of matching and sorting (n=83): time 0.002936/0.02358, allocations: 1.929 MB / 397.3 MB, free: 15.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.971e-05/0.02365, allocations: 136.5 kB / 397.5 MB, free: 15.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003452/0.02399, allocations: 490.2 kB / 397.9 MB, free: 14.61 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.655e-05/0.02405, allocations: 57.7 kB / 398 MB, free: 14.55 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005837/0.02464, allocations: 331.8 kB / 398.3 MB, free: 14.22 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001795/0.02481, allocations: 313.5 kB / 398.6 MB, free: 13.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002007/0.02502, allocations: 176.1 kB / 398.8 MB, free: 13.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002144/0.02523, allocations: 0.5507 MB / 399.3 MB, free: 13.17 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002368/0.02547, allocations: 161.9 kB / 399.5 MB, free: 13.01 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003184/0.02579, allocations: 379.8 kB / 399.9 MB, free: 12.56 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004736/0.02626, allocations: 484.1 kB / 400.3 MB, free: 12.01 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.02626, allocations: 7.938 kB / 400.4 MB, free: 12 MB / 378.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.001059/0.02732, allocations: 0.8378 MB / 401.2 MB, free: 11.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.02735, allocations: 8 kB / 401.2 MB, free: 11.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.02736, allocations: 7.984 kB / 401.2 MB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006286/0.02799, allocations: 450.8 kB / 401.6 MB, free: 10.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002645/0.02825, allocations: 143.7 kB / 401.8 MB, free: 10.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004468/0.03272, allocations: 4.694 MB / 406.5 MB, free: 5.625 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006361/0.03335, allocations: 103.9 kB / 406.6 MB, free: 5.523 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.495e-05/0.03341, allocations: 31.98 kB / 406.6 MB, free: 5.492 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 (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,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,bearingFriction.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,8), (1,10), (1,6), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002973/0.03371, allocations: 215 kB / 406.8 MB, free: 5.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001898/0.0339, allocations: 107.5 kB / 406.9 MB, free: 5.164 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001123/0.03401, allocations: 88.94 kB / 407 MB, free: 5.074 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/0.03402, allocations: 12 kB / 407 MB, free: 5.062 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.03403, allocations: 0 / 407 MB, free: 5.062 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.348e-06/0.03404, allocations: 3.984 kB / 407 MB, free: 5.059 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002251/0.03629, allocations: 1.665 MB / 408.7 MB, free: 3.344 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/0.0363, allocations: 0 / 408.7 MB, free: 3.344 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003001/0.0366, allocations: 115.8 kB / 408.8 MB, free: 3.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006694/0.03726, allocations: 446.4 kB / 409.2 MB, free: 2.777 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.965e-05/0.03733, allocations: 31.95 kB / 409.3 MB, free: 2.746 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002713/0.04005, allocations: 4.478 MB / 413.8 MB, free: 14.06 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.04005, allocations: 4 kB / 413.8 MB, free: 14.06 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001551/0.0416, allocations: 1.355 MB / 415.1 MB, free: 12.67 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002785/0.04188, allocations: 159.3 kB / 415.3 MB, free: 12.51 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.612e-05/0.04197, allocations: 32 kB / 415.3 MB, free: 12.48 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003326/0.0423, allocations: 83.89 kB / 415.4 MB, free: 12.4 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002805/0.04258, allocations: 199.6 kB / 415.6 MB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.049e-05/0.04262, allocations: 27.97 kB / 415.6 MB, free: 12.18 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002035/0.04283, allocations: 302.7 kB / 415.9 MB, free: 11.88 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04283, allocations: 0 / 415.9 MB, free: 11.88 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007516/0.04358, allocations: 215.9 kB / 416.1 MB, free: 11.67 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,6), (1,10), (1,7), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000902/0.04448, allocations: 383.8 kB / 416.5 MB, free: 11.39 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001058/0.04554, allocations: 0.7451 MB / 417.2 MB, free: 10.62 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.04554, allocations: 0 / 417.2 MB, free: 10.62 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005697/0.04611, allocations: 0.5148 MB / 417.7 MB, free: 10.09 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007173/0.04683, allocations: 196.8 kB / 417.9 MB, free: 9.898 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002831/0.04966, allocations: 1.769 MB / 419.7 MB, free: 8.082 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001399/0.0498, allocations: 163.1 kB / 419.9 MB, free: 7.902 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002252/0.05002, allocations: 77.05 kB / 419.9 MB, free: 7.828 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000288/0.05031, allocations: 210.1 kB / 420.1 MB, free: 7.621 MB / 394.7 MB Notification: Performance of SimCode: time 1.092e-06/0.05031, allocations: 0 / 420.1 MB, free: 7.621 MB / 394.7 MB Notification: Performance of Templates: time 0.02152/0.07183, allocations: 15.53 MB / 435.7 MB, free: 8.25 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestFriction/TestFriction.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: 4.061519790906459]