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.001854/0.001854, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.002254/0.002254, allocations: 209.8 kB / 24.48 MB, free: 3.934 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.458/1.458, allocations: 230.5 MB / 258.1 MB, free: 7.781 MB / 206.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.2342/0.2342, allocations: 46.95 MB / 361.6 MB, free: 3.91 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.002443/0.002443, allocations: 79.88 kB / 0.4974 GB, free: 7.035 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3339/0.3363, allocations: 66.09 MB / 0.5619 GB, free: 3.938 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005843/0.3422, allocations: 3.742 MB / 0.5656 GB, free: 180 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003103/0.3453, allocations: 1.442 MB / 0.567 GB, free: 14.73 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003294/0.3456, allocations: 19.88 kB / 0.567 GB, free: 14.71 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004488/0.3461, allocations: 134.7 kB / 0.5671 GB, free: 14.57 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006582/0.3467, allocations: 285.9 kB / 0.5674 GB, free: 14.29 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008218/0.3475, allocations: 363.4 kB / 0.5677 GB, free: 13.94 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001205/0.3488, allocations: 1.089 MB / 0.5688 GB, free: 12.84 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002851/0.349, allocations: 130.9 kB / 0.5689 GB, free: 12.7 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007026/0.3497, allocations: 494.5 kB / 0.5694 GB, free: 12.22 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006572/0.3504, allocations: 486.1 kB / 0.5699 GB, free: 11.74 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001448/0.3505, allocations: 84 kB / 0.5699 GB, free: 11.66 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003016/0.3508, allocations: 140 kB / 0.5701 GB, free: 11.52 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002733/0.3511, allocations: 239.3 kB / 0.5703 GB, free: 11.29 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003974/0.3515, allocations: 358.4 kB / 0.5706 GB, free: 10.94 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001369/0.3529, allocations: 1.041 MB / 0.5717 GB, free: 9.898 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.3529, allocations: 3.984 kB / 0.5717 GB, free: 9.895 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3529, allocations: 0 / 0.5717 GB, free: 9.895 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.298e-05/0.3529, allocations: 0 / 0.5717 GB, free: 9.895 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.002449/0.3554, allocations: 1.108 MB / 0.5727 GB, free: 8.754 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.3554, allocations: 8.031 kB / 0.5727 GB, free: 8.746 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005015/0.3559, allocations: 124.3 kB / 0.5729 GB, free: 8.625 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008732/0.3568, allocations: 420 kB / 0.5733 GB, free: 8.191 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.153e-05/0.3568, allocations: 45.69 kB / 0.5733 GB, free: 8.145 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000142/0.357, allocations: 83.88 kB / 0.5734 GB, free: 8.062 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001564/0.3585, allocations: 0.8106 MB / 0.5742 GB, free: 7.219 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.931e-05/0.3586, allocations: 4 kB / 0.5742 GB, free: 7.215 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.322e-05/0.3586, allocations: 28 kB / 0.5742 GB, free: 7.188 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.3587, allocations: 12 kB / 0.5742 GB, free: 7.176 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001671/0.3603, allocations: 0.7361 MB / 0.5749 GB, free: 6.441 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004382/0.3647, allocations: 2.269 MB / 0.5772 GB, free: 4.074 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/0.3662, allocations: 0.6195 MB / 0.5778 GB, free: 3.418 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007562/0.367, allocations: 346.6 kB / 0.5781 GB, free: 3.07 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.828e-05/0.367, allocations: 16 kB / 0.5781 GB, free: 3.055 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.983e-05/0.3671, allocations: 50.42 kB / 0.5782 GB, free: 2.996 MB / 414.1 MB Notification: Performance of pre-optimization done (n=79): time 2.895e-06/0.3671, allocations: 4 kB / 0.5782 GB, free: 2.992 MB / 414.1 MB Notification: Performance of matching and sorting (n=83): time 0.007868/0.3749, allocations: 2.944 MB / 0.581 GB, free: 15.94 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.367e-05/0.375, allocations: 144.5 kB / 0.5812 GB, free: 15.77 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006186/0.3757, allocations: 481.9 kB / 0.5816 GB, free: 15.29 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.974e-05/0.3757, allocations: 49.7 kB / 0.5817 GB, free: 15.23 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002331/0.376, allocations: 297 kB / 0.582 GB, free: 14.94 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002865/0.3763, allocations: 301.5 kB / 0.5822 GB, free: 14.64 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002943/0.3766, allocations: 170.6 kB / 0.5824 GB, free: 14.46 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000207/0.3768, allocations: 378.8 kB / 0.5828 GB, free: 14.09 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008123/0.3776, allocations: 361.8 kB / 0.5831 GB, free: 13.73 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009466/0.3785, allocations: 0.5099 MB / 0.5836 GB, free: 13.16 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001404/0.3799, allocations: 0.7053 MB / 0.5843 GB, free: 12.4 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.3799, allocations: 0 / 0.5843 GB, free: 12.4 MB / 430.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002792/0.3827, allocations: 1.191 MB / 0.5855 GB, free: 11.19 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.3828, allocations: 4 kB / 0.5855 GB, free: 11.19 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/0.3828, allocations: 8 kB / 0.5855 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001317/0.3841, allocations: 0.5737 MB / 0.586 GB, free: 10.59 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005441/0.3846, allocations: 143.8 kB / 0.5862 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004025/0.3887, allocations: 3.716 MB / 0.5898 GB, free: 6.562 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009842/0.3896, allocations: 151.9 kB / 0.5899 GB, free: 6.414 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.717e-05/0.3897, allocations: 43.92 kB / 0.59 GB, free: 6.371 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.0003968/0.3901, allocations: 212.3 kB / 0.5902 GB, free: 6.152 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002017/0.3903, allocations: 75.56 kB / 0.5903 GB, free: 6.078 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001758/0.3905, allocations: 84.94 kB / 0.5903 GB, free: 5.992 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.3905, allocations: 12 kB / 0.5904 GB, free: 5.98 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.3905, allocations: 0 / 0.5904 GB, free: 5.98 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/0.3905, allocations: 7.922 kB / 0.5904 GB, free: 5.973 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003944/0.3945, allocations: 1.927 MB / 0.5922 GB, free: 3.996 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.3945, allocations: 8 kB / 0.5923 GB, free: 3.988 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005672/0.395, allocations: 123.8 kB / 0.5924 GB, free: 3.867 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001177/0.3962, allocations: 0.5421 MB / 0.5929 GB, free: 3.312 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.256e-05/0.3963, allocations: 27.97 kB / 0.5929 GB, free: 3.285 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003708/0.4, allocations: 3.52 MB / 0.5964 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.4, allocations: 4.031 kB / 0.5964 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003379/0.4034, allocations: 1.707 MB / 0.598 GB, free: 13.85 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004355/0.4038, allocations: 155.4 kB / 0.5982 GB, free: 13.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001447/0.404, allocations: 24 kB / 0.5982 GB, free: 13.67 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008864/0.4048, allocations: 123.8 kB / 0.5983 GB, free: 13.55 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000442/0.4053, allocations: 199.7 kB / 0.5985 GB, free: 13.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.64e-05/0.4054, allocations: 35.91 kB / 0.5986 GB, free: 13.32 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004878/0.4058, allocations: 330.9 kB / 0.5989 GB, free: 13 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4058, allocations: 0 / 0.5989 GB, free: 13 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001035/0.4069, allocations: 207.9 kB / 0.5991 GB, free: 12.8 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.001823/0.4087, allocations: 416 kB / 0.5995 GB, free: 12.51 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002666/0.4114, allocations: 0.9901 MB / 0.6004 GB, free: 11.51 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.4114, allocations: 128 / 0.6004 GB, free: 11.51 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001433/0.4128, allocations: 0.6036 MB / 0.601 GB, free: 10.89 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001194/0.414, allocations: 137.9 kB / 0.6012 GB, free: 10.76 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005675/0.4197, allocations: 2.211 MB / 0.6033 GB, free: 8.496 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005032/0.4202, allocations: 334.6 kB / 0.6036 GB, free: 8.145 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002779/0.4205, allocations: 63.41 kB / 0.6037 GB, free: 8.082 MB / 446.1 MB Notification: Performance of SimCode: time 2.114e-06/0.4205, allocations: 4 kB / 0.6037 GB, free: 8.078 MB / 446.1 MB Notification: Performance of Templates: time 0.02905/0.4495, allocations: 18.95 MB / 0.6222 GB, free: 5.137 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: 9.994882302824408]