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.002177/0.002177, allocations: 92.27 kB / 20.96 MB, free: 3.441 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.002607/0.002607, allocations: 156.9 kB / 24.26 MB, free: 148 kB / 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.477/1.477, allocations: 177 MB / 204.5 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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.348/0.348, allocations: 34.25 MB / 295.2 MB, free: 0.6445 MB / 266.7 MB " [Timeout remaining time 180] 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 2.284e-06/2.284e-06, allocations: 0 / 377.2 MB, free: 2.93 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.751e-05/3.979e-05, allocations: 6.25 kB / 377.2 MB, free: 2.922 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.008426/0.008466, allocations: 3.752 MB / 380.9 MB, free: 15.14 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.003647/0.01211, allocations: 1.442 MB / 382.4 MB, free: 13.69 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006587/0.01277, allocations: 19.88 kB / 382.4 MB, free: 13.67 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006127/0.01338, allocations: 134.7 kB / 382.5 MB, free: 13.54 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001001/0.01438, allocations: 289.7 kB / 382.8 MB, free: 13.25 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001017/0.0154, allocations: 367.3 kB / 383.2 MB, free: 12.89 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.00186/0.01726, allocations: 1.112 MB / 384.3 MB, free: 11.78 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004099/0.01767, allocations: 134.9 kB / 384.4 MB, free: 11.64 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001602/0.01927, allocations: 0.6588 MB / 385.1 MB, free: 10.98 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009353/0.02021, allocations: 426.9 kB / 385.5 MB, free: 10.56 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003163/0.02053, allocations: 84 kB / 385.6 MB, free: 10.48 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004978/0.02102, allocations: 143.9 kB / 385.7 MB, free: 10.34 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003827/0.02141, allocations: 235.2 kB / 385.9 MB, free: 10.11 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005913/0.022, allocations: 303.3 kB / 386.2 MB, free: 9.809 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001765/0.02376, allocations: 1.098 MB / 387.3 MB, free: 8.707 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.02377, allocations: 0 / 387.3 MB, free: 8.707 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.02377, allocations: 0 / 387.3 MB, free: 8.707 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.772e-05/0.02381, allocations: 0 / 387.3 MB, free: 8.707 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.002774/0.02658, allocations: 1.092 MB / 388.4 MB, free: 7.582 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.02662, allocations: 8.031 kB / 388.4 MB, free: 7.574 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006679/0.02729, allocations: 180.3 kB / 388.6 MB, free: 7.398 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009047/0.0282, allocations: 427.2 kB / 389 MB, free: 6.953 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.049e-05/0.02827, allocations: 49.69 kB / 389.1 MB, free: 6.906 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001661/0.02843, allocations: 76.3 kB / 389.2 MB, free: 6.832 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001743/0.03017, allocations: 0.8266 MB / 390 MB, free: 5.969 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.925e-05/0.0302, allocations: 3.953 kB / 390 MB, free: 5.965 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.984e-05/0.03029, allocations: 28 kB / 390 MB, free: 5.938 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.981e-05/0.03032, allocations: 16 kB / 390 MB, free: 5.922 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001781/0.0321, allocations: 0.7316 MB / 390.8 MB, free: 5.191 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004831/0.03694, allocations: 2.278 MB / 393 MB, free: 2.824 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001659/0.03859, allocations: 0.6304 MB / 393.7 MB, free: 2.16 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008483/0.03944, allocations: 351.2 kB / 394 MB, free: 1.805 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.342e-05/0.03951, allocations: 12.38 kB / 394 MB, free: 1.793 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.729e-05/0.03955, allocations: 50.48 kB / 394.1 MB, free: 1.734 MB / 362.7 MB Notification: Performance of pre-optimization done (n=79): time 2.475e-06/0.03956, allocations: 3.938 kB / 394.1 MB, free: 1.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=83): time 0.00881/0.04837, allocations: 2.973 MB / 397.1 MB, free: 14.65 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001247/0.04849, allocations: 144.5 kB / 397.2 MB, free: 14.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007007/0.04919, allocations: 481.9 kB / 397.7 MB, free: 13.99 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001086/0.0493, allocations: 49.7 kB / 397.7 MB, free: 13.94 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002824/0.04958, allocations: 289.1 kB / 398 MB, free: 13.65 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003318/0.04991, allocations: 297.6 kB / 398.3 MB, free: 13.36 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003555/0.05027, allocations: 170.5 kB / 398.5 MB, free: 13.18 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002427/0.05051, allocations: 374.8 kB / 398.8 MB, free: 12.81 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008974/0.05141, allocations: 365.8 kB / 399.2 MB, free: 12.45 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001055/0.05247, allocations: 0.5175 MB / 399.7 MB, free: 11.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001585/0.05405, allocations: 0.6835 MB / 400.4 MB, free: 11.13 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.05406, allocations: 4 kB / 400.4 MB, free: 11.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003409/0.05746, allocations: 1.245 MB / 401.6 MB, free: 9.867 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.83e-05/0.05749, allocations: 8 kB / 401.6 MB, free: 9.859 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.393e-05/0.05751, allocations: 4 kB / 401.6 MB, free: 9.855 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001482/0.05899, allocations: 0.5736 MB / 402.2 MB, free: 9.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006072/0.0596, allocations: 151.7 kB / 402.4 MB, free: 9.121 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004777/0.06437, allocations: 3.732 MB / 406.1 MB, free: 5.211 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001082/0.06546, allocations: 151.8 kB / 406.2 MB, free: 5.062 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.852e-05/0.06554, allocations: 31.98 kB / 406.3 MB, free: 5.031 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.free,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * 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.0004476/0.06599, allocations: 232.1 kB / 406.5 MB, free: 4.793 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003059/0.0663, allocations: 99.53 kB / 406.6 MB, free: 4.695 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002226/0.06652, allocations: 92.92 kB / 406.7 MB, free: 4.602 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.518e-06/0.06653, allocations: 8 kB / 406.7 MB, free: 4.594 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.06654, allocations: 0 / 406.7 MB, free: 4.594 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.171e-05/0.06655, allocations: 7.984 kB / 406.7 MB, free: 4.586 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004541/0.07109, allocations: 1.908 MB / 408.6 MB, free: 2.625 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.365e-06/0.0711, allocations: 4 kB / 408.6 MB, free: 2.621 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005839/0.07168, allocations: 111.9 kB / 408.7 MB, free: 2.512 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001312/0.07299, allocations: 0.538 MB / 409.3 MB, free: 1.961 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.994e-05/0.07309, allocations: 31.95 kB / 409.3 MB, free: 1.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004268/0.07736, allocations: 3.536 MB / 412.8 MB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.07736, allocations: 0 / 412.8 MB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003857/0.08122, allocations: 1.755 MB / 414.6 MB, free: 12.43 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004386/0.08166, allocations: 155.4 kB / 414.7 MB, free: 12.28 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001432/0.0818, allocations: 32 kB / 414.8 MB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000908/0.08271, allocations: 127.8 kB / 414.9 MB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005025/0.08321, allocations: 187.6 kB / 415.1 MB, free: 11.94 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.601e-05/0.0833, allocations: 43.89 kB / 415.1 MB, free: 11.9 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004506/0.08375, allocations: 322.9 kB / 415.4 MB, free: 11.59 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.08375, allocations: 0 / 415.4 MB, free: 11.59 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001096/0.08485, allocations: 208 kB / 415.6 MB, free: 11.38 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.001786/0.08663, allocations: 412.3 kB / 416 MB, free: 11.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002567/0.0892, allocations: 0.994 MB / 417 MB, free: 10.09 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.0892, allocations: 0 / 417 MB, free: 10.09 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001492/0.09069, allocations: 0.6115 MB / 417.6 MB, free: 9.473 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001208/0.0919, allocations: 186.4 kB / 417.8 MB, free: 9.297 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005023/0.09692, allocations: 1.914 MB / 419.7 MB, free: 7.336 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004195/0.09734, allocations: 342.6 kB / 420.1 MB, free: 6.977 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003351/0.09768, allocations: 81.03 kB / 420.2 MB, free: 6.898 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002468/0.09793, allocations: 64.47 kB / 420.2 MB, free: 6.836 MB / 394.7 MB Notification: Performance of SimCode: time 1.312e-06/0.09793, allocations: 0 / 420.2 MB, free: 6.836 MB / 394.7 MB Notification: Performance of Templates: time 0.02741/0.1253, allocations: 14.2 MB / 434.4 MB, free: 8.754 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.776311347959563]