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.001841/0.001841, allocations: 90.23 kB / 20.69 MB, free: 1.02 MB / 14.72 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.002103/0.002103, allocations: 158.5 kB / 23.95 MB, free: 4.152 MB / 14.72 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.463/1.463, allocations: 177 MB / 204.1 MB, free: 9.145 MB / 190.1 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.2148/0.2148, allocations: 34.27 MB / 294.8 MB, free: 14.51 MB / 286.1 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 1.743e-06/1.743e-06, allocations: 0 / 442.6 MB, free: 5.309 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.093e-05/4.267e-05, allocations: 4.812 kB / 442.6 MB, free: 5.305 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005671/0.005713, allocations: 3.748 MB / 446.4 MB, free: 1.531 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003279/0.008992, allocations: 1.438 MB / 447.8 MB, free: 92 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003233/0.009315, allocations: 15.88 kB / 447.8 MB, free: 76 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2088/0.2181, allocations: 133.9 kB / 448 MB, free: 15.26 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009783/0.2191, allocations: 302.4 kB / 448.3 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000768/0.2199, allocations: 359.8 kB / 448.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009258/0.2208, allocations: 1.118 MB / 449.7 MB, free: 15 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002487/0.221, allocations: 129.7 kB / 449.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007915/0.2218, allocations: 0.6592 MB / 450.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005632/0.2224, allocations: 429.3 kB / 450.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001341/0.2225, allocations: 84.03 kB / 451 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002626/0.2228, allocations: 137.1 kB / 451.2 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000248/0.223, allocations: 236.3 kB / 451.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000341/0.2234, allocations: 306.4 kB / 451.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001213/0.2246, allocations: 1.091 MB / 452.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2246, allocations: 0 / 452.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.2246, allocations: 4 kB / 452.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.118e-05/0.2246, allocations: 1.375 kB / 452.8 MB, free: 14.34 MB / 366.1 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.002242/0.2269, allocations: 1.102 MB / 453.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.2269, allocations: 8.781 kB / 453.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005411/0.2274, allocations: 124.1 kB / 454 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007422/0.2282, allocations: 418.9 kB / 454.4 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.611e-05/0.2282, allocations: 49.88 kB / 454.5 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001347/0.2284, allocations: 70.8 kB / 454.5 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001636/0.23, allocations: 0.8169 MB / 455.4 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.494e-05/0.23, allocations: 12.11 kB / 455.4 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001093/0.2301, allocations: 30.48 kB / 455.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.14e-05/0.2302, allocations: 15.12 kB / 455.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001784/0.232, allocations: 0.7326 MB / 456.1 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004163/0.2361, allocations: 2.27 MB / 458.4 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001467/0.2376, allocations: 0.6224 MB / 459 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007262/0.2383, allocations: 352.2 kB / 459.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.146e-05/0.2384, allocations: 8.812 kB / 459.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.468e-05/0.2384, allocations: 47.14 kB / 459.4 MB, free: 10.72 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.284e-06/0.2384, allocations: 0 / 459.4 MB, free: 10.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=83): time 0.008105/0.2465, allocations: 2.952 MB / 462.4 MB, free: 9.281 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.046e-05/0.2466, allocations: 139.3 kB / 462.5 MB, free: 9.125 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006403/0.2472, allocations: 483.6 kB / 463 MB, free: 8.898 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.822e-05/0.2473, allocations: 54.08 kB / 463 MB, free: 8.852 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001989/0.2475, allocations: 288.3 kB / 463.3 MB, free: 8.617 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000253/0.2477, allocations: 304.5 kB / 463.6 MB, free: 8.391 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003294/0.2481, allocations: 171 kB / 463.8 MB, free: 8.305 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.2482, allocations: 375.4 kB / 464.2 MB, free: 7.965 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008089/0.249, allocations: 360.4 kB / 464.5 MB, free: 7.836 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009335/0.2499, allocations: 0.5225 MB / 465 MB, free: 7.527 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001318/0.2513, allocations: 0.6818 MB / 465.7 MB, free: 7.156 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.2513, allocations: 1.25 kB / 465.7 MB, free: 7.156 MB / 366.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002707/0.254, allocations: 1.194 MB / 466.9 MB, free: 6.684 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.544e-05/0.254, allocations: 7.469 kB / 466.9 MB, free: 6.684 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/0.254, allocations: 8.016 kB / 466.9 MB, free: 6.684 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001373/0.2554, allocations: 0.5742 MB / 467.5 MB, free: 6.477 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005766/0.256, allocations: 143.1 kB / 467.6 MB, free: 6.473 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003178/0.2591, allocations: 3.729 MB / 471.4 MB, free: 3.188 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00101/0.2601, allocations: 144.3 kB / 471.5 MB, free: 3.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.777e-05/0.2602, allocations: 33.97 kB / 471.5 MB, free: 3.156 MB / 366.1 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.0004247/0.2607, allocations: 217.5 kB / 471.8 MB, free: 2.984 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002356/0.2609, allocations: 81.3 kB / 471.8 MB, free: 2.941 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001747/0.2611, allocations: 93.52 kB / 471.9 MB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.2611, allocations: 9 kB / 471.9 MB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/0.2611, allocations: 5.031 kB / 471.9 MB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.2611, allocations: 3.828 kB / 471.9 MB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003838/0.265, allocations: 1.925 MB / 473.9 MB, free: 1.855 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.265, allocations: 1.188 kB / 473.9 MB, free: 1.855 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005706/0.2655, allocations: 115.8 kB / 474 MB, free: 1.852 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001165/0.2667, allocations: 0.5286 MB / 474.5 MB, free: 1.656 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.399e-05/0.2668, allocations: 33.75 kB / 474.5 MB, free: 1.641 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003432/0.2702, allocations: 3.521 MB / 478.1 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.2702, allocations: 1.188 kB / 478.1 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003624/0.2738, allocations: 1.722 MB / 479.8 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003889/0.2742, allocations: 158 kB / 479.9 MB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001559/0.2744, allocations: 26.19 kB / 480 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009737/0.2754, allocations: 122.7 kB / 480.1 MB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004975/0.2758, allocations: 195 kB / 480.3 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.57e-05/0.2759, allocations: 33.22 kB / 480.3 MB, free: 13.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004537/0.2764, allocations: 329 kB / 480.6 MB, free: 12.83 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2764, allocations: 1.094 kB / 480.6 MB, free: 12.83 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009906/0.2774, allocations: 215.3 kB / 480.8 MB, free: 12.8 MB / 382.1 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.001651/0.279, allocations: 432 kB / 481.3 MB, free: 12.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002344/0.2814, allocations: 0.9789 MB / 482.2 MB, free: 12.06 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.2814, allocations: 0 / 482.2 MB, free: 12.06 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001358/0.2827, allocations: 0.608 MB / 482.9 MB, free: 11.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.2838, allocations: 137.6 kB / 483 MB, free: 11.62 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004652/0.2885, allocations: 1.898 MB / 484.9 MB, free: 10.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004245/0.2889, allocations: 335.8 kB / 485.2 MB, free: 10.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002833/0.2892, allocations: 73.03 kB / 485.3 MB, free: 10.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001849/0.2894, allocations: 60.47 kB / 485.3 MB, free: 9.957 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2894, allocations: 0 / 485.3 MB, free: 9.957 MB / 382.1 MB Notification: Performance of Templates: time 0.02578/0.3151, allocations: 14.13 MB / 499.5 MB, free: 11.97 MB / 398.1 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.680860806256533]