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.001955/0.001955, allocations: 109.1 kB / 21.84 MB, free: 88 kB / 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.00276/0.00276, allocations: 221.1 kB / 25.13 MB, free: 3.609 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.501/1.501, allocations: 230.4 MB / 258.7 MB, free: 8.047 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.2354/0.2354, allocations: 46.94 MB / 362 MB, free: 4.223 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.002316/0.002316, allocations: 79.86 kB / 0.4978 GB, free: 7.406 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3135/0.3158, allocations: 66.08 MB / 0.5623 GB, free: 4.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004726/0.3205, allocations: 2.377 MB / 0.5646 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001973/0.3225, allocations: 0.9345 MB / 0.5655 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001427/0.3226, allocations: 4 kB / 0.5655 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000336/0.323, allocations: 51.52 kB / 0.5656 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000276/0.3232, allocations: 79.39 kB / 0.5657 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004444/0.3237, allocations: 147.6 kB / 0.5658 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000435/0.3241, allocations: 351.2 kB / 0.5661 GB, free: 328 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001998/0.3243, allocations: 69.11 kB / 0.5662 GB, free: 252 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002861/0.3246, allocations: 159.5 kB / 0.5664 GB, free: 92 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002878/0.3249, allocations: 163.5 kB / 0.5665 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.502e-05/0.325, allocations: 27.94 kB / 0.5665 GB, free: 15.9 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001728/0.3251, allocations: 91.95 kB / 0.5666 GB, free: 15.81 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001365/0.3253, allocations: 75.81 kB / 0.5667 GB, free: 15.74 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001555/0.3254, allocations: 135.3 kB / 0.5668 GB, free: 15.61 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000507/0.3259, allocations: 389.1 kB / 0.5672 GB, free: 15.23 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3259, allocations: 0 / 0.5672 GB, free: 15.23 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3259, allocations: 0 / 0.5672 GB, free: 15.23 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.3259, allocations: 0 / 0.5672 GB, free: 15.23 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.00103/0.327, allocations: 0.5206 MB / 0.5677 GB, free: 14.68 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.401e-05/0.327, allocations: 8.031 kB / 0.5677 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002037/0.3272, allocations: 36.78 kB / 0.5678 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003864/0.3276, allocations: 194.8 kB / 0.5679 GB, free: 14.42 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.189e-05/0.3277, allocations: 28.81 kB / 0.568 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.523e-05/0.3277, allocations: 20.38 kB / 0.568 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005569/0.3283, allocations: 268.3 kB / 0.5682 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.317e-05/0.3283, allocations: 7.953 kB / 0.5683 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.048e-05/0.3283, allocations: 11.94 kB / 0.5683 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.3283, allocations: 4 kB / 0.5683 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005337/0.3289, allocations: 233.9 kB / 0.5685 GB, free: 13.85 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001416/0.3303, allocations: 0.6927 MB / 0.5692 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005621/0.3308, allocations: 222.5 kB / 0.5694 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002952/0.3311, allocations: 134.1 kB / 0.5695 GB, free: 12.76 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.816e-05/0.3312, allocations: 0 / 0.5695 GB, free: 12.76 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.265e-05/0.3312, allocations: 42.5 kB / 0.5695 GB, free: 12.71 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.072e-06/0.3312, allocations: 0 / 0.5695 GB, free: 12.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.003119/0.3343, allocations: 1.2 MB / 0.5707 GB, free: 11.45 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.614e-05/0.3344, allocations: 59.39 kB / 0.5708 GB, free: 11.38 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002433/0.3346, allocations: 203.9 kB / 0.571 GB, free: 11.16 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.072e-05/0.3347, allocations: 37.7 kB / 0.571 GB, free: 11.12 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.3348, allocations: 140.8 kB / 0.5711 GB, free: 10.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001468/0.3349, allocations: 122.9 kB / 0.5713 GB, free: 10.86 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.335, allocations: 65.69 kB / 0.5713 GB, free: 10.79 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.3352, allocations: 346.8 kB / 0.5717 GB, free: 10.44 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002644/0.3355, allocations: 112 kB / 0.5718 GB, free: 10.33 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002996/0.3358, allocations: 156.8 kB / 0.5719 GB, free: 10.16 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004673/0.3363, allocations: 243.9 kB / 0.5721 GB, free: 9.914 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3363, allocations: 0 / 0.5721 GB, free: 9.914 MB / 414.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000899/0.3372, allocations: 422 kB / 0.5725 GB, free: 9.492 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.3372, allocations: 10.48 kB / 0.5726 GB, free: 9.484 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.3372, allocations: 3.938 kB / 0.5726 GB, free: 9.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004999/0.3377, allocations: 192.8 kB / 0.5727 GB, free: 9.289 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002282/0.3379, allocations: 51.91 kB / 0.5728 GB, free: 9.238 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008921/0.3388, allocations: 0.7319 MB / 0.5735 GB, free: 8.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002493/0.3391, allocations: 44.05 kB / 0.5735 GB, free: 8.438 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.94e-05/0.3391, allocations: 8 kB / 0.5736 GB, free: 8.43 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.0001854/0.3393, allocations: 147.1 kB / 0.5737 GB, free: 8.277 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.345e-05/0.3393, allocations: 23.84 kB / 0.5737 GB, free: 8.254 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.661e-05/0.3394, allocations: 38.66 kB / 0.5738 GB, free: 8.219 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-06/0.3394, allocations: 0 / 0.5738 GB, free: 8.219 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.3394, allocations: 7.938 kB / 0.5738 GB, free: 8.211 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.3394, allocations: 3.984 kB / 0.5738 GB, free: 8.207 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001697/0.3411, allocations: 0.9042 MB / 0.5746 GB, free: 7.242 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.3411, allocations: 0 / 0.5746 GB, free: 7.242 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002377/0.3414, allocations: 55.91 kB / 0.5747 GB, free: 7.188 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003856/0.3418, allocations: 180.7 kB / 0.5749 GB, free: 7.008 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.679e-05/0.3418, allocations: 8 kB / 0.5749 GB, free: 7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007018/0.3425, allocations: 0.6927 MB / 0.5756 GB, free: 6.281 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/0.3425, allocations: 4.031 kB / 0.5756 GB, free: 6.277 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001172/0.3437, allocations: 0.6036 MB / 0.5762 GB, free: 5.652 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00013/0.3438, allocations: 63.72 kB / 0.5762 GB, free: 5.59 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.847e-05/0.3439, allocations: 8 kB / 0.5762 GB, free: 5.582 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002522/0.3441, allocations: 40.02 kB / 0.5763 GB, free: 5.543 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/0.3442, allocations: 47.91 kB / 0.5763 GB, free: 5.496 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.858e-05/0.3443, allocations: 15.98 kB / 0.5763 GB, free: 5.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001558/0.3444, allocations: 156.2 kB / 0.5765 GB, free: 5.328 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3444, allocations: 0 / 0.5765 GB, free: 5.328 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003495/0.3448, allocations: 72 kB / 0.5765 GB, free: 5.258 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.008584/0.3534, allocations: 359.9 kB / 0.5769 GB, free: 5.016 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008692/0.3542, allocations: 295.7 kB / 0.5772 GB, free: 4.727 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3542, allocations: 128 / 0.5772 GB, free: 4.727 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003797/0.3546, allocations: 151.8 kB / 0.5773 GB, free: 4.578 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004348/0.355, allocations: 34.64 kB / 0.5773 GB, free: 4.547 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001888/0.3569, allocations: 0.781 MB / 0.5781 GB, free: 3.734 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004042/0.3573, allocations: 0.7525 MB / 0.5788 GB, free: 2.953 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.442e-05/0.3574, allocations: 22.3 kB / 0.5789 GB, free: 2.926 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.017e-05/0.3575, allocations: 31.42 kB / 0.5789 GB, free: 2.895 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3575, allocations: 0 / 0.5789 GB, free: 2.895 MB / 414.1 MB Notification: Performance of Templates: time 0.2644/0.6219, allocations: 5.48 MB / 0.5842 GB, free: 13.43 MB / 430.1 MB " [Timeout remaining time 659] 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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.476050445111468]