Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.001384/0.001384, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.001561/0.001561, allocations: 213.2 kB / 24.48 MB, free: 3.84 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.447/1.447, allocations: 230.6 MB / 258.2 MB, free: 7.82 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2332/0.2332, allocations: 44.94 MB / 359.6 MB, free: 6.062 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003242/0.003242, allocations: 71.89 kB / 0.4942 GB, free: 10.06 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3783/0.3815, allocations: 65.48 MB / 0.5582 GB, free: 7.5 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004755/0.3863, allocations: 2.259 MB / 0.5604 GB, free: 5.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001889/0.3882, allocations: 0.8606 MB / 0.5612 GB, free: 4.363 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002275/0.3884, allocations: 4 kB / 0.5612 GB, free: 4.359 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003536/0.3887, allocations: 55.5 kB / 0.5613 GB, free: 4.305 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000346/0.3891, allocations: 71.41 kB / 0.5614 GB, free: 4.234 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005642/0.3897, allocations: 159.6 kB / 0.5615 GB, free: 4.078 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005925/0.3902, allocations: 355.2 kB / 0.5618 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002188/0.3905, allocations: 57.12 kB / 0.5619 GB, free: 3.668 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004191/0.3909, allocations: 159.5 kB / 0.562 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003845/0.3913, allocations: 147.5 kB / 0.5622 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.373e-05/0.3914, allocations: 31.94 kB / 0.5622 GB, free: 3.336 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002573/0.3916, allocations: 79.98 kB / 0.5623 GB, free: 3.258 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001512/0.3918, allocations: 79.73 kB / 0.5624 GB, free: 3.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001904/0.392, allocations: 115.5 kB / 0.5625 GB, free: 3.066 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000659/0.3926, allocations: 393 kB / 0.5629 GB, free: 2.688 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3926, allocations: 0 / 0.5629 GB, free: 2.688 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3926, allocations: 0 / 0.5629 GB, free: 2.688 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.44e-05/0.3926, allocations: 3.938 kB / 0.5629 GB, free: 2.684 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001222/0.3939, allocations: 0.5129 MB / 0.5634 GB, free: 2.141 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.497e-05/0.3939, allocations: 15.98 kB / 0.5634 GB, free: 2.125 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00025/0.3942, allocations: 32.8 kB / 0.5634 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004846/0.3947, allocations: 202.8 kB / 0.5636 GB, free: 1.871 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.906e-05/0.3947, allocations: 16.88 kB / 0.5636 GB, free: 1.855 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.416e-05/0.3948, allocations: 24.38 kB / 0.5636 GB, free: 1.832 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006069/0.3954, allocations: 268.3 kB / 0.5639 GB, free: 1.562 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.117e-05/0.3954, allocations: 7.953 kB / 0.5639 GB, free: 1.555 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.938e-05/0.3954, allocations: 8 kB / 0.5639 GB, free: 1.547 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.3954, allocations: 8 kB / 0.5639 GB, free: 1.539 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005757/0.396, allocations: 237.8 kB / 0.5641 GB, free: 1.305 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00156/0.3976, allocations: 0.5957 MB / 0.5647 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000659/0.3982, allocations: 230.4 kB / 0.5649 GB, free: 456 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003056/0.3985, allocations: 125.2 kB / 0.5651 GB, free: 328 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.618e-05/0.3986, allocations: 11.94 kB / 0.5651 GB, free: 316 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.594e-05/0.3986, allocations: 30.56 kB / 0.5651 GB, free: 276 kB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.806e-06/0.3986, allocations: 0 / 0.5651 GB, free: 276 kB / 398.1 MB Notification: Performance of matching and sorting (n=34): time 0.003542/0.4022, allocations: 1.181 MB / 0.5663 GB, free: 15.03 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.404e-05/0.4022, allocations: 55.41 kB / 0.5663 GB, free: 14.96 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002557/0.4025, allocations: 186.9 kB / 0.5665 GB, free: 14.77 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.446e-05/0.4025, allocations: 37.7 kB / 0.5665 GB, free: 14.73 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.4026, allocations: 144.8 kB / 0.5667 GB, free: 14.58 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/0.4027, allocations: 123.1 kB / 0.5668 GB, free: 14.46 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/0.4029, allocations: 69.64 kB / 0.5669 GB, free: 14.38 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.403, allocations: 334.8 kB / 0.5672 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002877/0.4033, allocations: 112 kB / 0.5673 GB, free: 13.94 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002977/0.4036, allocations: 163.4 kB / 0.5674 GB, free: 13.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004529/0.4041, allocations: 232 kB / 0.5677 GB, free: 13.53 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.4041, allocations: 11.94 kB / 0.5677 GB, free: 13.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008986/0.405, allocations: 414.1 kB / 0.5681 GB, free: 13.1 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.405, allocations: 4 kB / 0.5681 GB, free: 13.1 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.405, allocations: 8 kB / 0.5681 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005043/0.4055, allocations: 200.5 kB / 0.5683 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002389/0.4058, allocations: 59.89 kB / 0.5683 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008398/0.4066, allocations: 0.7319 MB / 0.569 GB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002653/0.4069, allocations: 35.95 kB / 0.5691 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.116e-05/0.4069, allocations: 12 kB / 0.5691 GB, free: 12.03 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (bearingFriction1.free,bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0001835/0.4071, allocations: 153.4 kB / 0.5692 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.965e-05/0.4072, allocations: 27.92 kB / 0.5693 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.662e-05/0.4072, allocations: 38.59 kB / 0.5693 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.7e-06/0.4072, allocations: 4 kB / 0.5693 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.4073, allocations: 0 / 0.5693 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.4073, allocations: 3.984 kB / 0.5693 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00172/0.409, allocations: 0.8189 MB / 0.5701 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/0.409, allocations: 4.031 kB / 0.5701 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002296/0.4092, allocations: 51.97 kB / 0.5702 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003943/0.4096, allocations: 172.7 kB / 0.5703 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.369e-05/0.4096, allocations: 7.984 kB / 0.5703 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007052/0.4104, allocations: 0.6928 MB / 0.571 GB, free: 9.98 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.4104, allocations: 0 / 0.571 GB, free: 9.98 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001181/0.4115, allocations: 0.6162 MB / 0.5716 GB, free: 9.344 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001361/0.4117, allocations: 47.89 kB / 0.5716 GB, free: 9.297 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.491e-05/0.4117, allocations: 8 kB / 0.5717 GB, free: 9.289 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002646/0.412, allocations: 31.95 kB / 0.5717 GB, free: 9.258 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001307/0.4121, allocations: 47.91 kB / 0.5717 GB, free: 9.211 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.872e-05/0.4121, allocations: 16.05 kB / 0.5717 GB, free: 9.195 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001408/0.4123, allocations: 143.5 kB / 0.5719 GB, free: 9.055 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4123, allocations: 0 / 0.5719 GB, free: 9.055 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003944/0.4127, allocations: 75.95 kB / 0.572 GB, free: 8.98 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00155/0.4142, allocations: 386.4 kB / 0.5723 GB, free: 8.75 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007821/0.415, allocations: 291.7 kB / 0.5726 GB, free: 8.465 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.415, allocations: 4 kB / 0.5726 GB, free: 8.461 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003652/0.4154, allocations: 143.8 kB / 0.5727 GB, free: 8.32 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004293/0.4158, allocations: 47.89 kB / 0.5728 GB, free: 8.273 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002099/0.4179, allocations: 0.7986 MB / 0.5736 GB, free: 7.438 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001713/0.4181, allocations: 146.9 kB / 0.5737 GB, free: 7.273 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.462e-05/0.4182, allocations: 27.42 kB / 0.5737 GB, free: 7.246 MB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4182, allocations: 0 / 0.5737 GB, free: 7.246 MB / 414.1 MB Notification: Performance of Templates: time 0.008086/0.4263, allocations: 4.542 MB / 0.5782 GB, free: 2.695 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.92140288837254]