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.001431/0.001431, allocations: 109.1 kB / 21.19 MB, free: 0.7617 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.00158/0.00158, allocations: 217 kB / 24.5 MB, free: 4.133 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.31/1.31, allocations: 230.5 MB / 258.1 MB, free: 7.992 MB / 206.1 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.2036/0.2036, allocations: 46.92 MB / 361.5 MB, free: 4.16 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 0.002263/0.002263, allocations: 75.88 kB / 0.4974 GB, free: 7.238 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.277, allocations: 66.08 MB / 0.5619 GB, free: 4.199 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005297/0.2823, allocations: 4.148 MB / 0.566 GB, free: 28 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002439/0.2847, allocations: 1.492 MB / 0.5675 GB, free: 14.53 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002278/0.2849, allocations: 19.88 kB / 0.5675 GB, free: 14.51 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000354/0.2853, allocations: 134.8 kB / 0.5676 GB, free: 14.38 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004988/0.2858, allocations: 285.9 kB / 0.5679 GB, free: 14.09 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005874/0.2864, allocations: 355.4 kB / 0.5682 GB, free: 13.75 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001045/0.2874, allocations: 1.093 MB / 0.5693 GB, free: 12.65 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002374/0.2877, allocations: 138.9 kB / 0.5694 GB, free: 12.5 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005994/0.2883, allocations: 494.5 kB / 0.5699 GB, free: 12.02 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006542/0.2889, allocations: 0.5216 MB / 0.5704 GB, free: 11.49 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001207/0.289, allocations: 80 kB / 0.5705 GB, free: 11.41 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002464/0.2893, allocations: 144 kB / 0.5706 GB, free: 11.27 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002371/0.2895, allocations: 239.2 kB / 0.5708 GB, free: 11.04 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003827/0.2899, allocations: 429.9 kB / 0.5712 GB, free: 10.62 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001039/0.2909, allocations: 1.026 MB / 0.5722 GB, free: 9.594 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.2909, allocations: 3.938 kB / 0.5722 GB, free: 9.59 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.2909, allocations: 3.984 kB / 0.5723 GB, free: 9.586 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.498e-06/0.291, allocations: 0 / 0.5723 GB, free: 9.586 MB / 414.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.002085/0.293, allocations: 1.108 MB / 0.5733 GB, free: 8.445 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/0.2931, allocations: 16.02 kB / 0.5734 GB, free: 8.43 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004548/0.2935, allocations: 120.3 kB / 0.5735 GB, free: 8.312 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006924/0.2942, allocations: 412 kB / 0.5739 GB, free: 7.887 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.893e-05/0.2943, allocations: 57.69 kB / 0.5739 GB, free: 7.828 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.2944, allocations: 71.88 kB / 0.574 GB, free: 7.758 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001398/0.2958, allocations: 0.8145 MB / 0.5748 GB, free: 6.91 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.992e-05/0.2958, allocations: 7.938 kB / 0.5748 GB, free: 6.902 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.056e-05/0.2959, allocations: 28 kB / 0.5748 GB, free: 6.875 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.727e-05/0.2959, allocations: 12 kB / 0.5748 GB, free: 6.863 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001523/0.2974, allocations: 0.7401 MB / 0.5755 GB, free: 6.125 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004031/0.3015, allocations: 2.518 MB / 0.578 GB, free: 3.496 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001341/0.3028, allocations: 0.629 MB / 0.5786 GB, free: 2.832 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006818/0.3035, allocations: 352.4 kB / 0.579 GB, free: 2.477 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.107e-05/0.3036, allocations: 11.98 kB / 0.579 GB, free: 2.465 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.909e-05/0.3036, allocations: 38.56 kB / 0.579 GB, free: 2.418 MB / 414.1 MB Notification: Performance of pre-optimization done (n=79): time 1.923e-06/0.3036, allocations: 0 / 0.579 GB, free: 2.418 MB / 414.1 MB Notification: Performance of matching and sorting (n=83): time 0.007076/0.3107, allocations: 2.948 MB / 0.5819 GB, free: 15.36 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.376e-05/0.3108, allocations: 140.5 kB / 0.582 GB, free: 15.19 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005357/0.3113, allocations: 474 kB / 0.5825 GB, free: 14.72 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.224e-05/0.3114, allocations: 53.69 kB / 0.5825 GB, free: 14.66 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002052/0.3116, allocations: 293.1 kB / 0.5828 GB, free: 14.37 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002444/0.3118, allocations: 297.6 kB / 0.5831 GB, free: 14.07 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002698/0.3121, allocations: 174.5 kB / 0.5832 GB, free: 13.89 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.3123, allocations: 374.8 kB / 0.5836 GB, free: 13.52 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007651/0.313, allocations: 361.8 kB / 0.584 GB, free: 13.17 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008769/0.3139, allocations: 0.5215 MB / 0.5845 GB, free: 12.59 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001277/0.3152, allocations: 0.7019 MB / 0.5851 GB, free: 11.83 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.3152, allocations: 0 / 0.5851 GB, free: 11.83 MB / 430.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002484/0.3177, allocations: 1.183 MB / 0.5863 GB, free: 10.62 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.3177, allocations: 8 kB / 0.5863 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.3177, allocations: 7.984 kB / 0.5863 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001204/0.3189, allocations: 0.5814 MB / 0.5869 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004883/0.3194, allocations: 139.7 kB / 0.587 GB, free: 9.879 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003632/0.323, allocations: 3.761 MB / 0.5907 GB, free: 5.934 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007841/0.3238, allocations: 143.8 kB / 0.5908 GB, free: 5.793 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.661e-05/0.3239, allocations: 35.98 kB / 0.5909 GB, free: 5.758 MB / 430.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.0003254/0.3242, allocations: 224.2 kB / 0.5911 GB, free: 5.531 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001882/0.3244, allocations: 67.58 kB / 0.5911 GB, free: 5.465 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001894/0.3246, allocations: 92.92 kB / 0.5912 GB, free: 5.371 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.827e-06/0.3246, allocations: 11.94 kB / 0.5912 GB, free: 5.359 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/0.3246, allocations: 0 / 0.5912 GB, free: 5.359 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/0.3246, allocations: 11.98 kB / 0.5913 GB, free: 5.348 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003757/0.3284, allocations: 2.109 MB / 0.5933 GB, free: 3.176 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.3284, allocations: 4 kB / 0.5933 GB, free: 3.172 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005141/0.3289, allocations: 111.9 kB / 0.5934 GB, free: 3.062 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001078/0.33, allocations: 0.5422 MB / 0.594 GB, free: 2.508 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-05/0.33, allocations: 43.89 kB / 0.594 GB, free: 2.465 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00342/0.3335, allocations: 3.546 MB / 0.5975 GB, free: 14.72 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3335, allocations: 0 / 0.5975 GB, free: 14.72 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003043/0.3365, allocations: 1.718 MB / 0.5991 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003343/0.3368, allocations: 155.3 kB / 0.5993 GB, free: 12.83 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001233/0.337, allocations: 28 kB / 0.5993 GB, free: 12.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007868/0.3377, allocations: 127.8 kB / 0.5994 GB, free: 12.68 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003878/0.3381, allocations: 195.6 kB / 0.5996 GB, free: 12.49 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.316e-05/0.3382, allocations: 35.95 kB / 0.5997 GB, free: 12.45 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003575/0.3386, allocations: 322.9 kB / 0.6 GB, free: 12.14 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3386, allocations: 0 / 0.6 GB, free: 12.14 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000789/0.3393, allocations: 208 kB / 0.6002 GB, free: 11.94 MB / 446.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.001329/0.3407, allocations: 412.3 kB / 0.6006 GB, free: 11.64 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002116/0.3428, allocations: 0.9902 MB / 0.6015 GB, free: 10.64 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3428, allocations: 4.125 kB / 0.6015 GB, free: 10.63 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001202/0.344, allocations: 0.5963 MB / 0.6021 GB, free: 10.02 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009852/0.345, allocations: 144.4 kB / 0.6022 GB, free: 9.883 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004501/0.3495, allocations: 2.201 MB / 0.6044 GB, free: 7.637 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005641/0.35, allocations: 0.9226 MB / 0.6053 GB, free: 6.688 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002074/0.3503, allocations: 71.39 kB / 0.6054 GB, free: 6.617 MB / 446.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3503, allocations: 0 / 0.6054 GB, free: 6.617 MB / 446.1 MB Notification: Performance of Templates: time 0.02374/0.374, allocations: 18.68 MB / 0.6236 GB, free: 3.941 MB / 462.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins1/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: 8.848107917001471]