Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.TestFriction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001547/0.001547, allocations: 106.8 kB / 21.19 MB, free: 0.6406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001875/0.001875, allocations: 214.8 kB / 24.49 MB, free: 3.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.47/1.47, allocations: 230.6 MB / 258.3 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.236/0.236, allocations: 46.96 MB / 361.6 MB, free: 4.031 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_ModelicaTest.Rotational.TestFriction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00219/0.00219, allocations: 67.91 kB / 0.4973 GB, free: 7.219 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3532/0.3554, allocations: 66.03 MB / 0.5618 GB, free: 4.172 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005603/0.361, allocations: 3.732 MB / 0.5655 GB, free: 424 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002847/0.3639, allocations: 1.442 MB / 0.5669 GB, free: 14.96 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002911/0.3642, allocations: 15.88 kB / 0.5669 GB, free: 14.95 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000409/0.3646, allocations: 130.8 kB / 0.567 GB, free: 14.82 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006536/0.3652, allocations: 289.9 kB / 0.5673 GB, free: 14.54 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007526/0.366, allocations: 363.4 kB / 0.5676 GB, free: 14.18 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0011/0.3671, allocations: 1.093 MB / 0.5687 GB, free: 13.08 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002662/0.3673, allocations: 138.9 kB / 0.5688 GB, free: 12.93 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006217/0.368, allocations: 0.4946 MB / 0.5693 GB, free: 12.44 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005985/0.3686, allocations: 0.5177 MB / 0.5698 GB, free: 11.92 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001296/0.3687, allocations: 80 kB / 0.5699 GB, free: 11.84 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002738/0.369, allocations: 147.9 kB / 0.57 GB, free: 11.7 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002407/0.3692, allocations: 231.3 kB / 0.5703 GB, free: 11.47 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003505/0.3695, allocations: 374.3 kB / 0.5706 GB, free: 11.1 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001107/0.3707, allocations: 1.026 MB / 0.5716 GB, free: 10.08 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.3707, allocations: 4 kB / 0.5716 GB, free: 10.07 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3707, allocations: 0 / 0.5716 GB, free: 10.07 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.473e-05/0.3707, allocations: 0 / 0.5716 GB, free: 10.07 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.002323/0.373, allocations: 1.108 MB / 0.5727 GB, free: 8.934 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.373, allocations: 8.031 kB / 0.5727 GB, free: 8.926 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005252/0.3736, allocations: 128.3 kB / 0.5728 GB, free: 8.801 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008236/0.3744, allocations: 420 kB / 0.5732 GB, free: 8.367 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.376e-05/0.3745, allocations: 53.69 kB / 0.5733 GB, free: 8.312 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001562/0.3746, allocations: 67.89 kB / 0.5733 GB, free: 8.246 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001658/0.3763, allocations: 0.8223 MB / 0.5742 GB, free: 7.391 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.394e-05/0.3763, allocations: 4 kB / 0.5742 GB, free: 7.387 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.26e-05/0.3764, allocations: 28 kB / 0.5742 GB, free: 7.359 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.165e-05/0.3764, allocations: 16 kB / 0.5742 GB, free: 7.344 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001693/0.3781, allocations: 0.7283 MB / 0.5749 GB, free: 6.617 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00424/0.3823, allocations: 2.269 MB / 0.5771 GB, free: 4.25 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001534/0.3839, allocations: 0.6195 MB / 0.5777 GB, free: 3.594 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007483/0.3846, allocations: 355.2 kB / 0.5781 GB, free: 3.234 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.003e-05/0.3847, allocations: 8 kB / 0.5781 GB, free: 3.227 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.983e-05/0.3847, allocations: 46.55 kB / 0.5781 GB, free: 3.172 MB / 414.1 MB Notification: Performance of pre-optimization done (n=79): time 3.306e-06/0.3847, allocations: 0 / 0.5781 GB, free: 3.172 MB / 414.1 MB Notification: Performance of matching and sorting (n=83): time 0.007776/0.3925, allocations: 2.962 MB / 0.581 GB, free: 108 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.3926, allocations: 136.5 kB / 0.5811 GB, free: 15.94 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006166/0.3932, allocations: 477.9 kB / 0.5816 GB, free: 15.46 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.307e-05/0.3933, allocations: 53.69 kB / 0.5817 GB, free: 15.41 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000243/0.3936, allocations: 289.1 kB / 0.5819 GB, free: 15.12 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000275/0.3938, allocations: 305.6 kB / 0.5822 GB, free: 14.82 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003309/0.3942, allocations: 174.5 kB / 0.5824 GB, free: 14.64 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001989/0.3944, allocations: 374.8 kB / 0.5827 GB, free: 14.26 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007998/0.3952, allocations: 361.8 kB / 0.5831 GB, free: 13.91 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009362/0.3961, allocations: 0.5176 MB / 0.5836 GB, free: 13.33 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001391/0.3975, allocations: 0.6963 MB / 0.5843 GB, free: 12.58 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.233e-06/0.3975, allocations: 4 kB / 0.5843 GB, free: 12.58 MB / 430.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002899/0.4004, allocations: 1.185 MB / 0.5854 GB, free: 11.38 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.387e-05/0.4004, allocations: 8 kB / 0.5854 GB, free: 11.37 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.4004, allocations: 7.938 kB / 0.5854 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001378/0.4018, allocations: 0.5775 MB / 0.586 GB, free: 10.77 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005874/0.4024, allocations: 147.7 kB / 0.5862 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004074/0.4065, allocations: 3.716 MB / 0.5898 GB, free: 6.734 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009739/0.4074, allocations: 143.9 kB / 0.5899 GB, free: 6.594 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.6e-05/0.4075, allocations: 43.92 kB / 0.59 GB, free: 6.551 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.0004118/0.4079, allocations: 216.3 kB / 0.5902 GB, free: 6.328 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002114/0.4081, allocations: 71.58 kB / 0.5902 GB, free: 6.258 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002045/0.4084, allocations: 96.92 kB / 0.5903 GB, free: 6.16 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.4084, allocations: 3.984 kB / 0.5903 GB, free: 6.156 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.4084, allocations: 0 / 0.5903 GB, free: 6.156 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003584/0.4087, allocations: 151.4 kB / 0.5905 GB, free: 6.008 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000143/0.4089, allocations: 35.88 kB / 0.5905 GB, free: 5.973 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000894/0.4098, allocations: 119.8 kB / 0.5906 GB, free: 5.855 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003552/0.4101, allocations: 163.7 kB / 0.5908 GB, free: 5.695 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003627/0.4137, allocations: 1.371 MB / 0.5921 GB, free: 4.305 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002781/0.4165, allocations: 1.556 MB / 0.5936 GB, free: 2.738 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000898/0.4174, allocations: 352.2 kB / 0.594 GB, free: 2.395 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004283/0.4178, allocations: 326.9 kB / 0.5943 GB, free: 2.078 MB / 430.1 MB Notification: Performance of Backend: time 3.51e-07/0.4178, allocations: 0 / 0.5943 GB, free: 2.078 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004568/0.4224, allocations: 1.25 MB / 0.5955 GB, free: 1.059 MB / 430.1 MB Notification: Performance of SimCode: time 0.003466/0.4259, allocations: 2.422 MB / 0.5979 GB, free: 14.59 MB / 446.1 MB Notification: Performance of Templates: time 0.03332/0.4592, allocations: 16.33 MB / 0.6138 GB, free: 14.37 MB / 462.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestFriction.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_4.1.0_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Rotational.TestFriction.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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.682135629002005]