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.00141/0.00141, allocations: 91.5 kB / 21.2 MB, free: 3.375 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.001608/0.001608, allocations: 160.5 kB / 24.55 MB, free: 20 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 0.9838/0.9838, allocations: 177 MB / 204.8 MB, free: 5.582 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.2742/0.2742, allocations: 34.87 MB / 296.3 MB, free: 0.5469 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 1.833e-06/1.833e-06, allocations: 0 / 378.7 MB, free: 2.129 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.794e-05/2.978e-05, allocations: 2.312 kB / 378.7 MB, free: 2.125 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005752/0.005782, allocations: 4.046 MB / 382.8 MB, free: 14.05 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.003069/0.008851, allocations: 1.481 MB / 384.3 MB, free: 12.56 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000458/0.009309, allocations: 19.88 kB / 384.3 MB, free: 12.54 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004593/0.009768, allocations: 130.8 kB / 384.4 MB, free: 12.41 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001038/0.01081, allocations: 297.7 kB / 384.7 MB, free: 12.12 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008458/0.01165, allocations: 371.2 kB / 385.1 MB, free: 11.76 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001192/0.01284, allocations: 1.124 MB / 386.2 MB, free: 10.63 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002869/0.01313, allocations: 127 kB / 386.3 MB, free: 10.5 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001075/0.01421, allocations: 0.6549 MB / 387 MB, free: 9.84 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000645/0.01485, allocations: 435 kB / 387.4 MB, free: 9.414 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001827/0.01503, allocations: 84 kB / 387.5 MB, free: 9.332 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003216/0.01536, allocations: 135.9 kB / 387.6 MB, free: 9.199 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000247/0.0156, allocations: 231.2 kB / 387.8 MB, free: 8.973 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000333/0.01594, allocations: 311.2 kB / 388.1 MB, free: 8.668 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001086/0.01702, allocations: 0.7824 MB / 388.9 MB, free: 7.883 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.01703, allocations: 4 kB / 388.9 MB, free: 7.879 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.01703, allocations: 0 / 388.9 MB, free: 7.879 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.482e-05/0.01706, allocations: 0 / 388.9 MB, free: 7.879 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.001897/0.01895, allocations: 1.153 MB / 390.1 MB, free: 6.688 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.019, allocations: 12.03 kB / 390.1 MB, free: 6.676 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000502/0.0195, allocations: 168.3 kB / 390.3 MB, free: 6.512 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007031/0.0202, allocations: 446.7 kB / 390.7 MB, free: 6.043 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.063e-05/0.02027, allocations: 53.62 kB / 390.7 MB, free: 5.992 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001227/0.0204, allocations: 68.33 kB / 390.8 MB, free: 5.926 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00126/0.02166, allocations: 0.6963 MB / 391.5 MB, free: 5.184 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.447e-05/0.0217, allocations: 11.94 kB / 391.5 MB, free: 5.172 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.058e-05/0.02177, allocations: 28 kB / 391.5 MB, free: 5.145 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.232e-05/0.02179, allocations: 20 kB / 391.6 MB, free: 5.125 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001277/0.02307, allocations: 433.3 kB / 392 MB, free: 4.703 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003252/0.02632, allocations: 2.495 MB / 394.5 MB, free: 2.105 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001061/0.02738, allocations: 0.5038 MB / 395 MB, free: 1.551 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004168/0.0278, allocations: 234.6 kB / 395.2 MB, free: 1.305 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.79e-05/0.02786, allocations: 12.38 kB / 395.2 MB, free: 1.293 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.615e-05/0.02789, allocations: 45.33 kB / 395.3 MB, free: 1.238 MB / 362.7 MB Notification: Performance of pre-optimization done (n=79): time 4.007e-06/0.0279, allocations: 0 / 395.3 MB, free: 1.238 MB / 362.7 MB Notification: Performance of matching and sorting (n=83): time 0.005034/0.03293, allocations: 2.426 MB / 397.7 MB, free: 14.69 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.798e-05/0.03301, allocations: 144.5 kB / 397.8 MB, free: 14.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005262/0.03354, allocations: 478.6 kB / 398.3 MB, free: 14.03 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.538e-05/0.03361, allocations: 61.69 kB / 398.4 MB, free: 13.96 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002156/0.03383, allocations: 331.8 kB / 398.7 MB, free: 13.63 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005101/0.03434, allocations: 301.6 kB / 399 MB, free: 13.34 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002651/0.0346, allocations: 172.2 kB / 399.2 MB, free: 13.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001894/0.03479, allocations: 0.543 MB / 399.7 MB, free: 12.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000496/0.03529, allocations: 209.9 kB / 399.9 MB, free: 12.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005685/0.03586, allocations: 431.8 kB / 400.3 MB, free: 11.9 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007807/0.03664, allocations: 0.5266 MB / 400.8 MB, free: 11.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.03664, allocations: 0 / 400.8 MB, free: 11.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.00183/0.03847, allocations: 0.9282 MB / 401.8 MB, free: 10.35 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.167e-05/0.0385, allocations: 8 kB / 401.8 MB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.711e-05/0.03852, allocations: 4 kB / 401.8 MB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009961/0.03952, allocations: 478.7 kB / 402.3 MB, free: 9.852 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000405/0.03992, allocations: 131.8 kB / 402.4 MB, free: 9.723 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003377/0.0433, allocations: 4.766 MB / 407.2 MB, free: 4.738 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005979/0.0439, allocations: 107.9 kB / 407.3 MB, free: 4.633 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.104e-05/0.04397, allocations: 36 kB / 407.3 MB, free: 4.598 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.0003055/0.04427, allocations: 223 kB / 407.5 MB, free: 4.367 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002338/0.04451, allocations: 99.52 kB / 407.6 MB, free: 4.27 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001178/0.04462, allocations: 92.98 kB / 407.7 MB, free: 4.176 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-06/0.04463, allocations: 12 kB / 407.7 MB, free: 4.164 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.04464, allocations: 4 kB / 407.7 MB, free: 4.16 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.04465, allocations: 3.984 kB / 407.7 MB, free: 4.156 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002831/0.04748, allocations: 1.805 MB / 409.5 MB, free: 2.293 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.04749, allocations: 7.984 kB / 409.5 MB, free: 2.285 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004105/0.0479, allocations: 103.9 kB / 409.6 MB, free: 2.184 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008485/0.04875, allocations: 454.3 kB / 410.1 MB, free: 1.723 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.269e-05/0.04882, allocations: 35.95 kB / 410.1 MB, free: 1.688 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003133/0.05195, allocations: 4.536 MB / 414.6 MB, free: 12.94 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.05195, allocations: 0 / 414.6 MB, free: 12.94 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002154/0.05411, allocations: 1.469 MB / 416.1 MB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003275/0.05444, allocations: 155.4 kB / 416.3 MB, free: 11.28 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001269/0.05456, allocations: 28 kB / 416.3 MB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000546/0.05511, allocations: 91.89 kB / 416.4 MB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003792/0.05549, allocations: 199.6 kB / 416.6 MB, free: 10.97 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.582e-05/0.05555, allocations: 35.91 kB / 416.6 MB, free: 10.93 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003025/0.05586, allocations: 314.8 kB / 416.9 MB, free: 10.63 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.05586, allocations: 0 / 416.9 MB, free: 10.63 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009155/0.05677, allocations: 215.9 kB / 417.1 MB, free: 10.42 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.00108/0.05785, allocations: 375.6 kB / 417.5 MB, free: 10.14 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001577/0.05943, allocations: 0.8197 MB / 418.3 MB, free: 9.297 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.05943, allocations: 0 / 418.3 MB, free: 9.297 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008107/0.06024, allocations: 0.5544 MB / 418.9 MB, free: 8.723 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009888/0.06123, allocations: 195.9 kB / 419.1 MB, free: 8.539 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00404/0.06527, allocations: 1.773 MB / 420.8 MB, free: 6.715 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001704/0.06544, allocations: 175 kB / 421 MB, free: 6.523 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002896/0.06573, allocations: 73.05 kB / 421.1 MB, free: 6.453 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001921/0.06592, allocations: 72.41 kB / 421.1 MB, free: 6.383 MB / 394.7 MB Notification: Performance of SimCode: time 1.794e-06/0.06593, allocations: 0 / 421.1 MB, free: 6.383 MB / 394.7 MB Notification: Performance of Templates: time 0.02557/0.09149, allocations: 15.36 MB / 436.5 MB, free: 7.164 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: 3.79692344320938]