Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.001773/0.001773, allocations: 110.4 kB / 21.17 MB, free: 0.7852 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.002112/0.002112, allocations: 217.4 kB / 24.47 MB, free: 4.359 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.511/1.511, allocations: 230.2 MB / 257.8 MB, free: 8.5 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2536/0.2536, allocations: 46.89 MB / 361.1 MB, free: 4.633 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-beta.om/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.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_4.1.0-beta.om_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.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002716/0.002716, allocations: 79.88 kB / 0.4967 GB, free: 7.809 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3655/0.3683, allocations: 65.98 MB / 0.5612 GB, free: 5.004 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003934/0.3722, allocations: 2.384 MB / 0.5635 GB, free: 2.609 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001574/0.3738, allocations: 0.919 MB / 0.5644 GB, free: 1.684 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001072/0.3739, allocations: 7.938 kB / 0.5644 GB, free: 1.676 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002527/0.3741, allocations: 51.58 kB / 0.5645 GB, free: 1.625 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001946/0.3743, allocations: 79.39 kB / 0.5645 GB, free: 1.547 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003664/0.3747, allocations: 151.5 kB / 0.5647 GB, free: 1.398 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004182/0.3751, allocations: 351.3 kB / 0.565 GB, free: 1.055 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001766/0.3753, allocations: 68.92 kB / 0.5651 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002713/0.3756, allocations: 155.5 kB / 0.5652 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002641/0.3758, allocations: 159.5 kB / 0.5654 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.836e-05/0.3759, allocations: 28 kB / 0.5654 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001744/0.376, allocations: 95.89 kB / 0.5655 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001157/0.3762, allocations: 75.75 kB / 0.5656 GB, free: 488 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001489/0.3763, allocations: 131.4 kB / 0.5657 GB, free: 356 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004923/0.3768, allocations: 389.2 kB / 0.5661 GB, free: 15.97 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.3768, allocations: 0 / 0.5661 GB, free: 15.97 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3768, allocations: 0 / 0.5661 GB, free: 15.97 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.3768, allocations: 0 / 0.5661 GB, free: 15.97 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.00105/0.3779, allocations: 0.5921 MB / 0.5666 GB, free: 15.33 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.3779, allocations: 8.031 kB / 0.5667 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001842/0.3781, allocations: 36.78 kB / 0.5667 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004285/0.3785, allocations: 264.5 kB / 0.5669 GB, free: 14.99 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.385e-05/0.3785, allocations: 20.94 kB / 0.567 GB, free: 14.97 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.722e-05/0.3786, allocations: 24.38 kB / 0.567 GB, free: 14.95 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005691/0.3792, allocations: 273.1 kB / 0.5672 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/0.3792, allocations: 3.953 kB / 0.5673 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.904e-05/0.3792, allocations: 16 kB / 0.5673 GB, free: 14.65 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.3792, allocations: 4 kB / 0.5673 GB, free: 14.65 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005275/0.3798, allocations: 230.1 kB / 0.5675 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001416/0.3812, allocations: 0.733 MB / 0.5682 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005726/0.3818, allocations: 234.4 kB / 0.5684 GB, free: 13.4 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002642/0.382, allocations: 120.8 kB / 0.5685 GB, free: 13.28 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.895e-05/0.382, allocations: 8 kB / 0.5686 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.3821, allocations: 34.56 kB / 0.5686 GB, free: 13.23 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.503e-06/0.3821, allocations: 0 / 0.5686 GB, free: 13.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.003378/0.3855, allocations: 1.411 MB / 0.57 GB, free: 11.71 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.438e-05/0.3855, allocations: 55.41 kB / 0.57 GB, free: 11.64 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002459/0.3857, allocations: 211.7 kB / 0.5702 GB, free: 11.42 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.366e-05/0.3858, allocations: 37.7 kB / 0.5703 GB, free: 11.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.3859, allocations: 136.9 kB / 0.5704 GB, free: 11.23 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.386, allocations: 126.9 kB / 0.5705 GB, free: 11.11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001403/0.3862, allocations: 65.69 kB / 0.5706 GB, free: 11.04 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.3863, allocations: 346.7 kB / 0.5709 GB, free: 10.69 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002693/0.3866, allocations: 116 kB / 0.571 GB, free: 10.58 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000294/0.3869, allocations: 159.4 kB / 0.5712 GB, free: 10.41 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004622/0.3873, allocations: 239.9 kB / 0.5714 GB, free: 10.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3873, allocations: 4 kB / 0.5714 GB, free: 10.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009029/0.3882, allocations: 426 kB / 0.5718 GB, free: 9.734 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.3883, allocations: 6.5 kB / 0.5718 GB, free: 9.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.615e-06/0.3883, allocations: 3.938 kB / 0.5718 GB, free: 9.727 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004803/0.3888, allocations: 196.8 kB / 0.572 GB, free: 9.531 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002382/0.389, allocations: 51.91 kB / 0.572 GB, free: 9.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008549/0.3898, allocations: 0.7319 MB / 0.5728 GB, free: 8.723 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002922/0.3901, allocations: 36 kB / 0.5728 GB, free: 8.688 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.014e-05/0.3902, allocations: 16.05 kB / 0.5728 GB, free: 8.672 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.0001949/0.3904, allocations: 150.6 kB / 0.573 GB, free: 8.516 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.629e-05/0.3904, allocations: 19.86 kB / 0.573 GB, free: 8.496 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.962e-05/0.3905, allocations: 42.64 kB / 0.573 GB, free: 8.457 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.3905, allocations: 0 / 0.573 GB, free: 8.457 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3905, allocations: 4 kB / 0.573 GB, free: 8.453 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.3905, allocations: 0 / 0.573 GB, free: 8.453 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001725/0.3923, allocations: 0.9402 MB / 0.5739 GB, free: 7.445 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.3923, allocations: 0 / 0.5739 GB, free: 7.445 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002354/0.3925, allocations: 43.97 kB / 0.574 GB, free: 7.402 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003901/0.3929, allocations: 176.7 kB / 0.5741 GB, free: 7.227 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.758e-05/0.3929, allocations: 11.98 kB / 0.5742 GB, free: 7.215 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006878/0.3936, allocations: 0.6966 MB / 0.5748 GB, free: 6.492 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3936, allocations: 64 / 0.5748 GB, free: 6.492 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001191/0.3948, allocations: 0.6155 MB / 0.5754 GB, free: 5.855 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001448/0.3949, allocations: 128.9 kB / 0.5756 GB, free: 5.711 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.591e-05/0.395, allocations: 12 kB / 0.5756 GB, free: 5.699 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002756/0.3953, allocations: 36.02 kB / 0.5756 GB, free: 5.664 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.3954, allocations: 47.92 kB / 0.5757 GB, free: 5.617 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.696e-05/0.3954, allocations: 15.98 kB / 0.5757 GB, free: 5.602 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001656/0.3956, allocations: 149.5 kB / 0.5758 GB, free: 5.457 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3956, allocations: 0 / 0.5758 GB, free: 5.457 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003534/0.3959, allocations: 71.94 kB / 0.5759 GB, free: 5.387 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.001291/0.3972, allocations: 366 kB / 0.5762 GB, free: 5.145 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007509/0.398, allocations: 295.5 kB / 0.5765 GB, free: 4.855 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.398, allocations: 0 / 0.5765 GB, free: 4.855 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003544/0.3983, allocations: 148 kB / 0.5767 GB, free: 4.711 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00042/0.3988, allocations: 45.88 kB / 0.5767 GB, free: 4.672 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00209/0.4008, allocations: 0.7721 MB / 0.5775 GB, free: 3.867 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004421/0.4013, allocations: 0.7525 MB / 0.5782 GB, free: 3.09 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001146/0.4014, allocations: 42.25 kB / 0.5782 GB, free: 3.047 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.776e-05/0.4015, allocations: 19.44 kB / 0.5782 GB, free: 3.027 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4015, allocations: 0 / 0.5782 GB, free: 3.027 MB / 414.1 MB Notification: Performance of Templates: time 0.01077/0.4122, allocations: 5.398 MB / 0.5835 GB, free: 13.64 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 5.338607580401003]