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.001012/0.001012, allocations: 88.28 kB / 21.44 MB, free: 3.129 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.006848/0.006848, allocations: 153.4 kB / 24.7 MB, free: 8.898 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 0.9041/0.9041, allocations: 177 MB / 204.9 MB, free: 5.781 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.26/0.26, allocations: 34.24 MB / 295.6 MB, free: 0.6719 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.264e-06/2.264e-06, allocations: 0 / 443.4 MB, free: 1.086 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.418e-05/3.645e-05, allocations: 5.094 kB / 443.4 MB, free: 1.082 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.2014/0.2015, allocations: 3.757 MB / 447.2 MB, free: 42.51 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.00175/0.2032, allocations: 1.429 MB / 448.6 MB, free: 41.71 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002488/0.2035, allocations: 16.06 kB / 448.6 MB, free: 41.7 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000327/0.2038, allocations: 140.8 kB / 448.7 MB, free: 41.61 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004314/0.2042, allocations: 295.4 kB / 449 MB, free: 41.42 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005179/0.2047, allocations: 369.8 kB / 449.4 MB, free: 41.22 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006049/0.2053, allocations: 1.117 MB / 450.5 MB, free: 40.68 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001955/0.2055, allocations: 124.7 kB / 450.6 MB, free: 40.61 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005308/0.2061, allocations: 0.6566 MB / 451.3 MB, free: 40.33 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003414/0.2064, allocations: 432.9 kB / 451.7 MB, free: 40.19 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.911e-05/0.2065, allocations: 82.72 kB / 451.8 MB, free: 40.19 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001849/0.2067, allocations: 134.9 kB / 451.9 MB, free: 40.18 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001469/0.2068, allocations: 238.1 kB / 452.1 MB, free: 40.03 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001665/0.207, allocations: 306.8 kB / 452.4 MB, free: 39.88 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006701/0.2076, allocations: 1.091 MB / 453.5 MB, free: 39.43 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.2077, allocations: 2.75 kB / 453.5 MB, free: 39.43 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2077, allocations: 0 / 453.5 MB, free: 39.43 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.2077, allocations: 0 / 453.5 MB, free: 39.43 MB / 410.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.001208/0.2089, allocations: 1.091 MB / 454.6 MB, free: 38.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.2089, allocations: 12.72 kB / 454.6 MB, free: 38.75 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002779/0.2092, allocations: 129.1 kB / 454.8 MB, free: 38.7 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000485/0.2097, allocations: 414.4 kB / 455.2 MB, free: 38.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.541e-05/0.2097, allocations: 53.88 kB / 455.2 MB, free: 38.38 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.604e-05/0.2098, allocations: 63.95 kB / 455.3 MB, free: 38.36 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008202/0.2106, allocations: 0.8246 MB / 456.1 MB, free: 38 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.344e-05/0.2106, allocations: 9.75 kB / 456.1 MB, free: 37.99 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.392e-05/0.2107, allocations: 29.47 kB / 456.2 MB, free: 37.97 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.2107, allocations: 16.03 kB / 456.2 MB, free: 37.97 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008646/0.2115, allocations: 0.7356 MB / 456.9 MB, free: 37.74 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00198/0.2135, allocations: 2.268 MB / 459.2 MB, free: 36.22 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008033/0.2143, allocations: 0.623 MB / 459.8 MB, free: 35.93 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003824/0.2147, allocations: 346.9 kB / 460.1 MB, free: 35.78 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.435e-05/0.2148, allocations: 9.969 kB / 460.1 MB, free: 35.78 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.963e-05/0.2148, allocations: 52.22 kB / 460.2 MB, free: 35.73 MB / 410.7 MB Notification: Performance of pre-optimization done (n=79): time 2.805e-06/0.2148, allocations: 0 / 460.2 MB, free: 35.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=83): time 0.003899/0.2187, allocations: 2.954 MB / 463.1 MB, free: 34.27 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.758e-05/0.2187, allocations: 138.7 kB / 463.3 MB, free: 34.11 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003249/0.219, allocations: 481.7 kB / 463.8 MB, free: 33.88 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.466e-05/0.2191, allocations: 54.28 kB / 463.8 MB, free: 33.84 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.2192, allocations: 285.4 kB / 464.1 MB, free: 33.6 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.2193, allocations: 298.5 kB / 464.4 MB, free: 33.37 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.2195, allocations: 169.4 kB / 464.5 MB, free: 33.29 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.804e-05/0.2195, allocations: 378 kB / 464.9 MB, free: 32.94 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004237/0.2199, allocations: 367.8 kB / 465.3 MB, free: 32.81 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004693/0.2204, allocations: 0.5203 MB / 465.8 MB, free: 32.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007061/0.2211, allocations: 0.6917 MB / 466.5 MB, free: 32.11 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.2211, allocations: 3.344 kB / 466.5 MB, free: 32.11 MB / 410.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.001409/0.2225, allocations: 1.197 MB / 467.7 MB, free: 31.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.2226, allocations: 6.438 kB / 467.7 MB, free: 31.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.2226, allocations: 6.625 kB / 467.7 MB, free: 31.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007178/0.2233, allocations: 0.5702 MB / 468.3 MB, free: 31.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002594/0.2235, allocations: 147.3 kB / 468.4 MB, free: 31.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00192/0.2255, allocations: 3.719 MB / 472.1 MB, free: 28.08 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004916/0.2259, allocations: 149.4 kB / 472.3 MB, free: 28.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.202e-05/0.226, allocations: 40 kB / 472.3 MB, free: 28.04 MB / 410.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.0002658/0.2263, allocations: 220.4 kB / 472.5 MB, free: 27.86 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001088/0.2264, allocations: 78.47 kB / 472.6 MB, free: 27.81 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.187e-05/0.2264, allocations: 88.66 kB / 472.7 MB, free: 27.75 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.2265, allocations: 9.844 kB / 472.7 MB, free: 27.75 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/0.2265, allocations: 0 / 472.7 MB, free: 27.75 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.2265, allocations: 6.625 kB / 472.7 MB, free: 27.75 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00208/0.2285, allocations: 1.917 MB / 474.6 MB, free: 26.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.2286, allocations: 3 kB / 474.6 MB, free: 26.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002712/0.2288, allocations: 118.2 kB / 474.7 MB, free: 26.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005926/0.2294, allocations: 0.5301 MB / 475.3 MB, free: 26.49 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.563e-05/0.2295, allocations: 36.45 kB / 475.3 MB, free: 26.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001566/0.231, allocations: 3.514 MB / 478.8 MB, free: 23.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.231, allocations: 4.25 kB / 478.8 MB, free: 23.36 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001781/0.2328, allocations: 1.721 MB / 480.5 MB, free: 22.45 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002949/0.2331, allocations: 149.3 kB / 480.7 MB, free: 22.37 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.364e-05/0.2332, allocations: 27.78 kB / 480.7 MB, free: 22.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004246/0.2336, allocations: 127 kB / 480.8 MB, free: 22.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003063/0.2339, allocations: 200 kB / 481 MB, free: 22.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.337e-05/0.234, allocations: 39.7 kB / 481.1 MB, free: 22.28 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002819/0.2342, allocations: 324.7 kB / 481.4 MB, free: 22.14 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.2342, allocations: 0 / 481.4 MB, free: 22.14 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006483/0.2349, allocations: 210.3 kB / 481.6 MB, free: 22.11 MB / 410.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.0007159/0.2356, allocations: 430.6 kB / 482 MB, free: 21.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001335/0.2369, allocations: 0.9848 MB / 483 MB, free: 21.49 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.2369, allocations: 0.8125 kB / 483 MB, free: 21.49 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006478/0.2376, allocations: 0.5863 MB / 483.6 MB, free: 21.23 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006811/0.2383, allocations: 135.5 kB / 483.7 MB, free: 21.17 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002733/0.241, allocations: 1.942 MB / 485.7 MB, free: 20.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/0.2413, allocations: 341.6 kB / 486 MB, free: 19.99 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001716/0.2415, allocations: 69.08 kB / 486.1 MB, free: 19.97 MB / 410.7 MB Notification: Performance of SimCode: time 1.473e-06/0.2415, allocations: 0 / 486.1 MB, free: 19.97 MB / 410.7 MB Notification: Performance of Templates: time 0.02612/0.2676, allocations: 18.98 MB / 0.4932 GB, free: 15.18 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: 6.947726519778371]