Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.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.008562/0.008562, allocations: 107.4 kB / 21.84 MB, free: 5.277 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.001983/0.001983, allocations: 219.1 kB / 25.14 MB, free: 3.234 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.462/1.462, allocations: 230.4 MB / 258.7 MB, free: 8.039 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.2348/0.2348, allocations: 46.95 MB / 362.1 MB, free: 4.203 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.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking") translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking") [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.002309/0.002309, allocations: 80.14 kB / 0.4978 GB, free: 7.395 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.346/0.3483, allocations: 66.09 MB / 0.5623 GB, free: 4.254 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004482/0.3528, allocations: 3.046 MB / 0.5653 GB, free: 1.191 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002109/0.3549, allocations: 1.071 MB / 0.5663 GB, free: 120 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001805/0.3551, allocations: 11.94 kB / 0.5663 GB, free: 108 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002183/0.3553, allocations: 63.38 kB / 0.5664 GB, free: 44 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002491/0.3555, allocations: 122.9 kB / 0.5665 GB, free: 15.92 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006052/0.3561, allocations: 183.4 kB / 0.5667 GB, free: 15.74 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005284/0.3567, allocations: 457.8 kB / 0.5671 GB, free: 15.29 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002/0.3569, allocations: 83.92 kB / 0.5672 GB, free: 15.2 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002228/0.3571, allocations: 167.4 kB / 0.5674 GB, free: 15.04 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002302/0.3573, allocations: 175.2 kB / 0.5675 GB, free: 14.87 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.672e-05/0.3574, allocations: 28 kB / 0.5676 GB, free: 14.84 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001374/0.3575, allocations: 55.98 kB / 0.5676 GB, free: 14.79 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.533e-05/0.3576, allocations: 75.69 kB / 0.5677 GB, free: 14.71 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001983/0.3578, allocations: 191.1 kB / 0.5679 GB, free: 14.52 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000549/0.3583, allocations: 448.5 kB / 0.5683 GB, free: 14.09 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3583, allocations: 3.938 kB / 0.5683 GB, free: 14.09 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3583, allocations: 7.938 kB / 0.5683 GB, free: 14.08 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.3583, allocations: 0 / 0.5683 GB, free: 14.08 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001114/0.3595, allocations: 0.5911 MB / 0.5689 GB, free: 13.46 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.3595, allocations: 8.031 kB / 0.5689 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003058/0.3598, allocations: 72.62 kB / 0.569 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004609/0.3603, allocations: 233.6 kB / 0.5692 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.597e-05/0.3603, allocations: 29.38 kB / 0.5692 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.848e-05/0.3604, allocations: 40.33 kB / 0.5693 GB, free: 13.05 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006632/0.3611, allocations: 367.6 kB / 0.5696 GB, free: 12.67 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.814e-05/0.3611, allocations: 3.938 kB / 0.5696 GB, free: 12.67 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.415e-05/0.3611, allocations: 16 kB / 0.5696 GB, free: 12.65 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.256e-05/0.3611, allocations: 15.98 kB / 0.5696 GB, free: 12.64 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004588/0.3616, allocations: 219.8 kB / 0.5698 GB, free: 12.42 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002394/0.364, allocations: 1.498 MB / 0.5713 GB, free: 10.82 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006361/0.3646, allocations: 299.7 kB / 0.5716 GB, free: 10.47 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001955/0.3648, allocations: 93.06 kB / 0.5717 GB, free: 10.36 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/0.3649, allocations: 4 kB / 0.5717 GB, free: 10.36 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.651e-05/0.3649, allocations: 42.56 kB / 0.5717 GB, free: 10.31 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 5.039e-06/0.3649, allocations: 3.984 kB / 0.5717 GB, free: 10.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007232/0.3656, allocations: 273.3 kB / 0.572 GB, free: 10.03 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.3657, allocations: 183.9 kB / 0.5722 GB, free: 9.809 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002601/0.366, allocations: 253.9 kB / 0.5724 GB, free: 9.551 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.283e-05/0.366, allocations: 29.7 kB / 0.5724 GB, free: 9.516 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001476/0.3662, allocations: 212.3 kB / 0.5726 GB, free: 9.305 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/0.3663, allocations: 115 kB / 0.5728 GB, free: 9.191 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.3664, allocations: 74.09 kB / 0.5728 GB, free: 9.109 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.3666, allocations: 342.8 kB / 0.5732 GB, free: 8.766 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001776/0.3667, allocations: 80.84 kB / 0.5732 GB, free: 8.688 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003013/0.367, allocations: 249.7 kB / 0.5735 GB, free: 8.371 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000525/0.3676, allocations: 373 kB / 0.5738 GB, free: 7.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.155e-06/0.3676, allocations: 0 / 0.5738 GB, free: 7.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006643/0.3682, allocations: 389.7 kB / 0.5742 GB, free: 7.543 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.3683, allocations: 11.94 kB / 0.5742 GB, free: 7.531 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.3683, allocations: 4 kB / 0.5742 GB, free: 7.527 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.516e-05/0.3683, allocations: 11.98 kB / 0.5742 GB, free: 7.516 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000397/0.3687, allocations: 107.8 kB / 0.5743 GB, free: 7.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.615e-05/0.3687, allocations: 8 kB / 0.5743 GB, free: 7.402 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002183/0.3689, allocations: 35.73 kB / 0.5744 GB, free: 7.367 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.302e-05/0.369, allocations: 23.98 kB / 0.5744 GB, free: 7.344 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (52): * Single equations (assignments): 52 * 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.0001802/0.3691, allocations: 170.5 kB / 0.5745 GB, free: 7.168 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001339/0.3693, allocations: 27.81 kB / 0.5746 GB, free: 7.141 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001996/0.3695, allocations: 95.33 kB / 0.5747 GB, free: 7.039 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.3695, allocations: 4 kB / 0.5747 GB, free: 7.035 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.3695, allocations: 0 / 0.5747 GB, free: 7.035 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.3695, allocations: 7.984 kB / 0.5747 GB, free: 7.027 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007128/0.3702, allocations: 312.4 kB / 0.575 GB, free: 6.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.3702, allocations: 0 / 0.575 GB, free: 6.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004038/0.3706, allocations: 83.89 kB / 0.5751 GB, free: 6.598 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.3706, allocations: 4 kB / 0.5751 GB, free: 6.594 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.874e-05/0.3706, allocations: 15.98 kB / 0.5751 GB, free: 6.578 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.3707, allocations: 4 kB / 0.5751 GB, free: 6.574 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3707, allocations: 0 / 0.5751 GB, free: 6.574 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000833/0.3715, allocations: 0.7742 MB / 0.5758 GB, free: 5.777 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.109e-05/0.3715, allocations: 27.8 kB / 0.5759 GB, free: 5.75 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.357e-05/0.3716, allocations: 8.094 kB / 0.5759 GB, free: 5.742 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003092/0.3719, allocations: 11.94 kB / 0.5759 GB, free: 5.73 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.1e-05/0.372, allocations: 23.95 kB / 0.5759 GB, free: 5.707 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.571e-05/0.372, allocations: 8.75 kB / 0.5759 GB, free: 5.699 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001796/0.3721, allocations: 173.2 kB / 0.5761 GB, free: 5.527 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3721, allocations: 4 kB / 0.5761 GB, free: 5.523 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006239/0.3728, allocations: 99.78 kB / 0.5762 GB, free: 5.426 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,inertia6.w,inverseSpeedDependentTorque.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 (27): * Single equations (assignments): 27 * 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.0001307/0.3729, allocations: 107.2 kB / 0.5763 GB, free: 5.312 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005146/0.3734, allocations: 225.2 kB / 0.5765 GB, free: 5.094 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3734, allocations: 4.125 kB / 0.5765 GB, free: 5.09 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001839/0.3736, allocations: 96.31 kB / 0.5766 GB, free: 4.996 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008724/0.3745, allocations: 76.05 kB / 0.5767 GB, free: 4.926 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002131/0.3766, allocations: 1.308 MB / 0.5779 GB, free: 3.57 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004855/0.3771, allocations: 0.7951 MB / 0.5787 GB, free: 2.75 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001403/0.3772, allocations: 43.12 kB / 0.5788 GB, free: 2.711 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.532e-05/0.3773, allocations: 23.44 kB / 0.5788 GB, free: 2.688 MB / 414.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3773, allocations: 3.938 kB / 0.5788 GB, free: 2.684 MB / 414.1 MB Notification: Performance of Templates: time 0.007812/0.3851, allocations: 3.325 MB / 0.582 GB, free: 15.39 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 5.17270748084411]