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.001939/0.001939, allocations: 99.53 kB / 20.97 MB, free: 3.457 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.002827/0.002827, allocations: 160.8 kB / 24.27 MB, free: 152 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.645/1.645, allocations: 177 MB / 204.5 MB, free: 5.605 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.3673/0.3673, allocations: 34.26 MB / 295.2 MB, free: 0.6328 MB / 266.7 MB " [Timeout remaining time 179] 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.473e-06/1.473e-06, allocations: 0 / 377.2 MB, free: 2.945 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.668e-05/3.815e-05, allocations: 8.5 kB / 377.2 MB, free: 2.938 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.006793/0.006831, allocations: 4.017 MB / 381.2 MB, free: 14.89 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.004727/0.01156, allocations: 1.462 MB / 382.7 MB, free: 13.42 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006339/0.01219, allocations: 15.88 kB / 382.7 MB, free: 13.41 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005337/0.01273, allocations: 138.7 kB / 382.8 MB, free: 13.27 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008123/0.01354, allocations: 293.7 kB / 383.1 MB, free: 12.98 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009254/0.01446, allocations: 367.3 kB / 383.5 MB, free: 12.62 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001691/0.01615, allocations: 1.116 MB / 384.6 MB, free: 11.5 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000316/0.01647, allocations: 130.9 kB / 384.7 MB, free: 11.36 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001156/0.01763, allocations: 0.655 MB / 385.4 MB, free: 10.71 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007644/0.01839, allocations: 430.9 kB / 385.8 MB, free: 10.29 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001825/0.01857, allocations: 84 kB / 385.9 MB, free: 10.2 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003659/0.01894, allocations: 143.9 kB / 386 MB, free: 10.06 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003386/0.01928, allocations: 239.2 kB / 386.2 MB, free: 9.828 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004494/0.01973, allocations: 307.3 kB / 386.5 MB, free: 9.527 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001617/0.02134, allocations: 1.094 MB / 387.6 MB, free: 8.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.02135, allocations: 3.984 kB / 387.6 MB, free: 8.426 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.02135, allocations: 0 / 387.6 MB, free: 8.426 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.959e-05/0.02137, allocations: 0 / 387.6 MB, free: 8.426 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.002595/0.02397, allocations: 1.192 MB / 388.8 MB, free: 7.195 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.02402, allocations: 8.031 kB / 388.8 MB, free: 7.188 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006173/0.02463, allocations: 168.3 kB / 389 MB, free: 7.023 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008654/0.0255, allocations: 442 kB / 389.4 MB, free: 6.562 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.863e-05/0.02557, allocations: 49.69 kB / 389.5 MB, free: 6.516 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001404/0.02571, allocations: 64.33 kB / 389.5 MB, free: 6.453 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001744/0.02745, allocations: 0.8409 MB / 390.4 MB, free: 5.566 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.191e-05/0.02749, allocations: 7.938 kB / 390.4 MB, free: 5.559 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.889e-05/0.02758, allocations: 28 kB / 390.4 MB, free: 5.531 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.304e-05/0.02761, allocations: 20 kB / 390.4 MB, free: 5.512 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001819/0.02943, allocations: 0.677 MB / 391.1 MB, free: 4.836 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00527/0.0347, allocations: 2.708 MB / 393.8 MB, free: 2.023 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001605/0.0363, allocations: 0.6288 MB / 394.4 MB, free: 1.344 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007696/0.03707, allocations: 322.6 kB / 394.8 MB, free: 1.012 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.162e-05/0.03715, allocations: 20.38 kB / 394.8 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.239e-05/0.0372, allocations: 49.52 kB / 394.8 MB, free: 0.9336 MB / 362.7 MB Notification: Performance of pre-optimization done (n=79): time 3.136e-06/0.03721, allocations: 0 / 394.8 MB, free: 0.9336 MB / 362.7 MB Notification: Performance of matching and sorting (n=83): time 0.008348/0.04556, allocations: 2.847 MB / 397.7 MB, free: 13.96 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/0.04567, allocations: 152.3 kB / 397.8 MB, free: 13.78 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/0.04668, allocations: 0.5612 MB / 398.4 MB, free: 13.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000107/0.04678, allocations: 53.69 kB / 398.4 MB, free: 13.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003116/0.04709, allocations: 347.8 kB / 398.8 MB, free: 12.8 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003529/0.04745, allocations: 317.6 kB / 399.1 MB, free: 12.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004341/0.04788, allocations: 192.2 kB / 399.3 MB, free: 12.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003815/0.04826, allocations: 0.5782 MB / 399.9 MB, free: 11.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000826/0.04909, allocations: 337.9 kB / 400.2 MB, free: 11.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00106/0.05015, allocations: 0.5778 MB / 400.8 MB, free: 10.71 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001467/0.05162, allocations: 0.7203 MB / 401.5 MB, free: 9.91 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.05162, allocations: 0 / 401.5 MB, free: 9.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003012/0.05463, allocations: 1.221 MB / 402.7 MB, free: 8.668 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.326e-05/0.05467, allocations: 7.984 kB / 402.7 MB, free: 8.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.05468, allocations: 11.94 kB / 402.7 MB, free: 8.648 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001464/0.05614, allocations: 0.5691 MB / 403.3 MB, free: 8.062 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005656/0.05671, allocations: 147.8 kB / 403.4 MB, free: 7.918 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005472/0.06218, allocations: 5.095 MB / 408.5 MB, free: 2.605 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008917/0.06307, allocations: 115.8 kB / 408.6 MB, free: 2.492 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.932e-05/0.06316, allocations: 39.98 kB / 408.7 MB, free: 2.453 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.0004255/0.06359, allocations: 251 kB / 408.9 MB, free: 2.195 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002692/0.06385, allocations: 95.58 kB / 409 MB, free: 2.102 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002422/0.0641, allocations: 96.92 kB / 409.1 MB, free: 2.008 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.928e-06/0.06411, allocations: 8 kB / 409.1 MB, free: 2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.06411, allocations: 0 / 409.1 MB, free: 2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.06412, allocations: 3.984 kB / 409.1 MB, free: 1.996 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004451/0.06857, allocations: 2.145 MB / 411.3 MB, free: 15.79 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/0.06858, allocations: 7.938 kB / 411.3 MB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000558/0.06914, allocations: 103.9 kB / 411.4 MB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001289/0.07043, allocations: 0.5296 MB / 411.9 MB, free: 15.13 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.144e-05/0.07052, allocations: 31.95 kB / 411.9 MB, free: 15.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005071/0.07559, allocations: 4.829 MB / 416.8 MB, free: 10.06 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.07559, allocations: 0 / 416.8 MB, free: 10.06 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003765/0.07936, allocations: 1.859 MB / 418.6 MB, free: 8.16 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004503/0.07981, allocations: 147.4 kB / 418.8 MB, free: 8.016 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001488/0.07996, allocations: 27.98 kB / 418.8 MB, free: 7.988 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007585/0.08072, allocations: 87.91 kB / 418.9 MB, free: 7.902 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004988/0.08122, allocations: 211.5 kB / 419.1 MB, free: 7.695 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.944e-05/0.08131, allocations: 47.88 kB / 419.1 MB, free: 7.648 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005095/0.08181, allocations: 366.8 kB / 419.5 MB, free: 7.293 MB / 394.7 MB Notification: Performance of sort global known variables: time 9e-08/0.08181, allocations: 0 / 419.5 MB, free: 7.293 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009194/0.08273, allocations: 207.9 kB / 419.7 MB, free: 7.09 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.002908/0.08564, allocations: 413.9 kB / 420.1 MB, free: 6.805 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002595/0.08824, allocations: 1.069 MB / 421.2 MB, free: 5.715 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.08824, allocations: 0 / 421.2 MB, free: 5.715 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001415/0.08966, allocations: 0.6675 MB / 421.8 MB, free: 5.023 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001183/0.09084, allocations: 183.2 kB / 422 MB, free: 4.848 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004597/0.09544, allocations: 1.844 MB / 423.9 MB, free: 2.953 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000428/0.09586, allocations: 334.6 kB / 424.2 MB, free: 2.598 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003286/0.09619, allocations: 77.03 kB / 424.3 MB, free: 2.523 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002194/0.09641, allocations: 64.47 kB / 424.3 MB, free: 2.461 MB / 394.7 MB Notification: Performance of SimCode: time 1.212e-06/0.09641, allocations: 0 / 424.3 MB, free: 2.461 MB / 394.7 MB Notification: Performance of Templates: time 0.02756/0.124, allocations: 14.25 MB / 438.6 MB, free: 4.336 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","/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.9095217670546845]