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.001258/0.001258, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001179/0.001179, allocations: 167.7 kB / 24.99 MB, free: 8.219 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.099/1.099, allocations: 177 MB / 205.2 MB, free: 5.523 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.296/0.296, allocations: 34.87 MB / 296.6 MB, free: 0.5352 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.444e-06/2.444e-06, allocations: 0 / 378.7 MB, free: 2.453 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.202e-05/3.446e-05, allocations: 2.312 kB / 378.7 MB, free: 2.449 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.006019/0.006054, allocations: 4.038 MB / 382.8 MB, free: 14.38 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.002893/0.008946, allocations: 1.469 MB / 384.2 MB, free: 12.91 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003785/0.009325, allocations: 15.88 kB / 384.2 MB, free: 12.89 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004607/0.009786, allocations: 134.7 kB / 384.4 MB, free: 12.76 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006976/0.01048, allocations: 293.7 kB / 384.7 MB, free: 12.47 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007766/0.01126, allocations: 375.2 kB / 385 MB, free: 12.1 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001119/0.01238, allocations: 1.116 MB / 386.1 MB, free: 10.98 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002771/0.01266, allocations: 134.9 kB / 386.3 MB, free: 10.84 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009219/0.01358, allocations: 0.655 MB / 386.9 MB, free: 10.18 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005835/0.01416, allocations: 430.9 kB / 387.3 MB, free: 9.762 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001366/0.0143, allocations: 88 kB / 387.4 MB, free: 9.676 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002726/0.01457, allocations: 135.9 kB / 387.6 MB, free: 9.543 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002481/0.01482, allocations: 239.2 kB / 387.8 MB, free: 9.309 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003212/0.01514, allocations: 307.3 kB / 388.1 MB, free: 9.008 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00104/0.01618, allocations: 0.7824 MB / 388.9 MB, free: 8.223 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.01619, allocations: 0 / 388.9 MB, free: 8.223 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.01619, allocations: 0 / 388.9 MB, free: 8.223 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.414e-05/0.0162, allocations: 7.938 kB / 388.9 MB, free: 8.215 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.002345/0.01855, allocations: 1.146 MB / 390 MB, free: 7.031 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.0186, allocations: 8.031 kB / 390 MB, free: 7.023 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005121/0.01911, allocations: 172.3 kB / 390.2 MB, free: 6.855 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000695/0.0198, allocations: 446.7 kB / 390.6 MB, free: 6.387 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.653e-05/0.01987, allocations: 45.69 kB / 390.7 MB, free: 6.344 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001274/0.02, allocations: 76.27 kB / 390.8 MB, free: 6.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001273/0.02127, allocations: 0.7002 MB / 391.5 MB, free: 5.523 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.438e-05/0.02131, allocations: 11.95 kB / 391.5 MB, free: 5.512 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.01e-05/0.02138, allocations: 27.94 kB / 391.5 MB, free: 5.484 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.273e-05/0.0214, allocations: 16 kB / 391.5 MB, free: 5.469 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000985/0.02238, allocations: 429.4 kB / 391.9 MB, free: 5.051 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00321/0.02559, allocations: 2.507 MB / 394.4 MB, free: 2.441 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008522/0.02644, allocations: 0.5032 MB / 395 MB, free: 1.891 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003216/0.02677, allocations: 228.8 kB / 395.2 MB, free: 1.652 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.164e-05/0.02682, allocations: 20.38 kB / 395.2 MB, free: 1.633 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.113e-05/0.02685, allocations: 49.33 kB / 395.2 MB, free: 1.574 MB / 362.7 MB Notification: Performance of pre-optimization done (n=79): time 3.176e-06/0.02685, allocations: 0 / 395.2 MB, free: 1.574 MB / 362.7 MB Notification: Performance of matching and sorting (n=83): time 0.004058/0.03091, allocations: 2.414 MB / 397.7 MB, free: 15.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.949e-05/0.03097, allocations: 148.4 kB / 397.8 MB, free: 14.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003928/0.03136, allocations: 478.6 kB / 398.3 MB, free: 14.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.458e-05/0.03142, allocations: 53.69 kB / 398.3 MB, free: 14.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001567/0.03157, allocations: 335.8 kB / 398.7 MB, free: 13.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001831/0.03176, allocations: 305.6 kB / 398.9 MB, free: 13.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001914/0.03195, allocations: 176.2 kB / 399.1 MB, free: 13.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.03211, allocations: 0.5469 MB / 399.7 MB, free: 12.94 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003428/0.03246, allocations: 209.8 kB / 399.9 MB, free: 12.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004244/0.03288, allocations: 427.9 kB / 400.3 MB, free: 12.24 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005922/0.03347, allocations: 0.5183 MB / 400.8 MB, free: 11.64 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.03348, allocations: 0 / 400.8 MB, free: 11.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.001365/0.03484, allocations: 0.9357 MB / 401.7 MB, free: 10.69 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.03486, allocations: 8 kB / 401.8 MB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.03487, allocations: 4 kB / 401.8 MB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007144/0.03559, allocations: 466.4 kB / 402.2 MB, free: 10.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002893/0.03588, allocations: 147.7 kB / 402.4 MB, free: 10.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003157/0.03903, allocations: 4.756 MB / 407.1 MB, free: 5.082 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004609/0.0395, allocations: 107.7 kB / 407.2 MB, free: 4.977 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.935e-05/0.03954, allocations: 40.14 kB / 407.3 MB, free: 4.938 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.0002609/0.03981, allocations: 223 kB / 407.5 MB, free: 4.707 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001706/0.03998, allocations: 95.58 kB / 407.6 MB, free: 4.613 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001024/0.04008, allocations: 88.92 kB / 407.7 MB, free: 4.523 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.04008, allocations: 12 kB / 407.7 MB, free: 4.512 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.423e-06/0.04009, allocations: 0 / 407.7 MB, free: 4.512 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.0401, allocations: 3.984 kB / 407.7 MB, free: 4.508 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002328/0.04243, allocations: 1.813 MB / 409.5 MB, free: 2.633 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.04243, allocations: 0 / 409.5 MB, free: 2.633 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003061/0.04274, allocations: 111.9 kB / 409.6 MB, free: 2.523 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006471/0.04338, allocations: 458.3 kB / 410 MB, free: 2.059 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.285e-05/0.04344, allocations: 31.95 kB / 410.1 MB, free: 2.027 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002778/0.04622, allocations: 4.539 MB / 414.6 MB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.04622, allocations: 3.938 kB / 414.6 MB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001718/0.04794, allocations: 1.465 MB / 416.1 MB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002588/0.0482, allocations: 151.4 kB / 416.2 MB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.812e-05/0.04828, allocations: 32 kB / 416.3 MB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003603/0.04864, allocations: 79.89 kB / 416.3 MB, free: 11.51 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003254/0.04897, allocations: 199.6 kB / 416.5 MB, free: 11.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.904e-05/0.04902, allocations: 43.89 kB / 416.6 MB, free: 11.27 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000264/0.04928, allocations: 318.8 kB / 416.9 MB, free: 10.96 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.04928, allocations: 0 / 416.9 MB, free: 10.96 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007303/0.05001, allocations: 219.9 kB / 417.1 MB, free: 10.75 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.0008882/0.0509, allocations: 370.2 kB / 417.5 MB, free: 10.48 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001565/0.05247, allocations: 0.8076 MB / 418.3 MB, free: 9.648 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.05247, allocations: 4.75 kB / 418.3 MB, free: 9.645 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005843/0.05305, allocations: 0.5618 MB / 418.8 MB, free: 9.062 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000671/0.05372, allocations: 197.9 kB / 419 MB, free: 8.879 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002629/0.05635, allocations: 1.778 MB / 420.8 MB, free: 7.047 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001238/0.05648, allocations: 171 kB / 421 MB, free: 6.859 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002022/0.05668, allocations: 69.05 kB / 421 MB, free: 6.793 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.05682, allocations: 64.47 kB / 421.1 MB, free: 6.73 MB / 394.7 MB Notification: Performance of SimCode: time 1.272e-06/0.05682, allocations: 0 / 421.1 MB, free: 6.73 MB / 394.7 MB Notification: Performance of Templates: time 0.01753/0.07435, allocations: 14.28 MB / 435.4 MB, free: 8.586 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.072020130930468]