Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.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.001632/0.001632, allocations: 112.2 kB / 21.19 MB, free: 0.7578 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.001533/0.001533, allocations: 209.8 kB / 24.49 MB, free: 4.133 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.53/1.53, allocations: 230.6 MB / 258.3 MB, free: 8.227 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.233/0.233, allocations: 44.91 MB / 359.6 MB, free: 6.336 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.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking") translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking") [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.00213/0.00213, allocations: 67.89 kB / 0.4943 GB, free: 10.26 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.325/0.3271, allocations: 65.46 MB / 0.5582 GB, free: 7.734 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004727/0.3318, allocations: 2.827 MB / 0.561 GB, free: 4.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002092/0.3339, allocations: 1.028 MB / 0.562 GB, free: 3.898 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001726/0.3341, allocations: 11.94 kB / 0.562 GB, free: 3.887 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002061/0.3343, allocations: 47.45 kB / 0.562 GB, free: 3.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002085/0.3345, allocations: 107 kB / 0.5621 GB, free: 3.734 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005271/0.335, allocations: 151.6 kB / 0.5623 GB, free: 3.586 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004602/0.3355, allocations: 382.2 kB / 0.5627 GB, free: 3.211 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000192/0.3357, allocations: 65.33 kB / 0.5627 GB, free: 3.141 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001852/0.3359, allocations: 143.5 kB / 0.5629 GB, free: 3 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002179/0.3361, allocations: 143.3 kB / 0.563 GB, free: 2.859 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.279e-05/0.3361, allocations: 24 kB / 0.563 GB, free: 2.836 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000134/0.3363, allocations: 51.97 kB / 0.5631 GB, free: 2.785 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.412e-05/0.3363, allocations: 67.77 kB / 0.5631 GB, free: 2.719 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001666/0.3365, allocations: 167.2 kB / 0.5633 GB, free: 2.555 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005042/0.337, allocations: 380.8 kB / 0.5637 GB, free: 2.188 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.337, allocations: 0 / 0.5637 GB, free: 2.188 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.337, allocations: 0 / 0.5637 GB, free: 2.188 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.337, allocations: 0 / 0.5637 GB, free: 2.188 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: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.0009816/0.338, allocations: 0.5325 MB / 0.5642 GB, free: 1.625 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.558e-05/0.338, allocations: 12.03 kB / 0.5642 GB, free: 1.613 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002989/0.3383, allocations: 56.69 kB / 0.5642 GB, free: 1.559 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000398/0.3387, allocations: 218.7 kB / 0.5644 GB, free: 1.316 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.693e-05/0.3388, allocations: 25.03 kB / 0.5645 GB, free: 1.293 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.584e-05/0.3388, allocations: 36.33 kB / 0.5645 GB, free: 1.258 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004985/0.3393, allocations: 306.2 kB / 0.5648 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.825e-05/0.3394, allocations: 7.953 kB / 0.5648 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.152e-05/0.3394, allocations: 16 kB / 0.5648 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.131e-05/0.3394, allocations: 8 kB / 0.5648 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003348/0.3397, allocations: 175.8 kB / 0.565 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002007/0.3417, allocations: 1.288 MB / 0.5663 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004581/0.3422, allocations: 237 kB / 0.5665 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001161/0.3423, allocations: 80.28 kB / 0.5666 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.454e-05/0.3423, allocations: 4 kB / 0.5666 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.133e-05/0.3424, allocations: 42.48 kB / 0.5666 GB, free: 14.93 MB / 414.1 MB Notification: Performance of pre-optimization done (n=22): time 1.813e-06/0.3424, allocations: 0 / 0.5666 GB, free: 14.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005196/0.3429, allocations: 225.9 kB / 0.5668 GB, free: 14.7 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.343, allocations: 158.2 kB / 0.567 GB, free: 14.51 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000231/0.3432, allocations: 220.9 kB / 0.5672 GB, free: 14.28 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.476e-05/0.3433, allocations: 29.7 kB / 0.5672 GB, free: 14.25 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.3434, allocations: 192.4 kB / 0.5674 GB, free: 14.05 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.26e-05/0.3435, allocations: 103.4 kB / 0.5675 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.266e-05/0.3436, allocations: 57.7 kB / 0.5675 GB, free: 13.89 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.3437, allocations: 338.8 kB / 0.5679 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001226/0.3438, allocations: 67.97 kB / 0.5679 GB, free: 13.48 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002309/0.3441, allocations: 201.9 kB / 0.5681 GB, free: 13.22 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003788/0.3445, allocations: 297.7 kB / 0.5684 GB, free: 12.87 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.3445, allocations: 4 kB / 0.5684 GB, free: 12.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004908/0.3449, allocations: 320.9 kB / 0.5687 GB, free: 12.54 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.035e-05/0.345, allocations: 11.94 kB / 0.5687 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.345, allocations: 4 kB / 0.5687 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.088e-05/0.345, allocations: 8 kB / 0.5687 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003015/0.3453, allocations: 91.83 kB / 0.5688 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.3453, allocations: 4.531 kB / 0.5688 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001737/0.3455, allocations: 39.72 kB / 0.5689 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.496e-05/0.3455, allocations: 20 kB / 0.5689 GB, free: 12.37 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001511/0.3457, allocations: 149.7 kB / 0.569 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001281/0.3458, allocations: 35.73 kB / 0.5691 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001886/0.346, allocations: 91.58 kB / 0.5692 GB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.346, allocations: 0 / 0.5692 GB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.346, allocations: 4 kB / 0.5692 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.346, allocations: 3.938 kB / 0.5692 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006072/0.3466, allocations: 296.5 kB / 0.5694 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.3466, allocations: 4 kB / 0.5694 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003253/0.3469, allocations: 59.97 kB / 0.5695 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.716e-06/0.347, allocations: 7.938 kB / 0.5695 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.003e-05/0.347, allocations: 4 kB / 0.5695 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.439e-06/0.347, allocations: 4 kB / 0.5695 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.347, allocations: 3.938 kB / 0.5695 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006199/0.3476, allocations: 0.6432 MB / 0.5702 GB, free: 11 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.37e-05/0.3476, allocations: 27.73 kB / 0.5702 GB, free: 10.97 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.01e-05/0.3477, allocations: 11.98 kB / 0.5702 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000261/0.3479, allocations: 4 kB / 0.5702 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.12e-05/0.348, allocations: 19.91 kB / 0.5702 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.273e-05/0.348, allocations: 8 kB / 0.5702 GB, free: 10.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001445/0.3481, allocations: 156.5 kB / 0.5704 GB, free: 10.77 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3481, allocations: 0 / 0.5704 GB, free: 10.77 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005392/0.3487, allocations: 79.89 kB / 0.5704 GB, free: 10.7 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 11 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001234/0.3488, allocations: 103.2 kB / 0.5705 GB, free: 10.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003585/0.3492, allocations: 184.6 kB / 0.5707 GB, free: 10.41 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3492, allocations: 0 / 0.5707 GB, free: 10.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000113/0.3493, allocations: 71.91 kB / 0.5708 GB, free: 10.34 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008212/0.3501, allocations: 69.75 kB / 0.5709 GB, free: 10.27 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001867/0.352, allocations: 1.164 MB / 0.572 GB, free: 9.066 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004267/0.3524, allocations: 0.7716 MB / 0.5727 GB, free: 8.27 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.09e-05/0.3525, allocations: 27.44 kB / 0.5728 GB, free: 8.242 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3525, allocations: 0 / 0.5728 GB, free: 8.242 MB / 414.1 MB Notification: Performance of Templates: time 0.00617/0.3586, allocations: 3.503 MB / 0.5762 GB, free: 4.754 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.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.049400909105316]