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.001317/0.001317, allocations: 110.5 kB / 21.17 MB, free: 0.7617 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.001588/0.001588, allocations: 214.7 kB / 24.46 MB, free: 4.195 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.483/1.483, allocations: 230.2 MB / 257.8 MB, free: 8.473 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.2431/0.2431, allocations: 46.89 MB / 361.1 MB, free: 4.695 MB / 286.1 MB " [Timeout remaining time 179] 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=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.1.0-beta.om_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.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.002458/0.002458, allocations: 79.86 kB / 0.4967 GB, free: 7.836 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.348/0.3504, allocations: 66 MB / 0.5612 GB, free: 4.988 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004737/0.3552, allocations: 3.066 MB / 0.5642 GB, free: 1.906 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002555/0.3577, allocations: 1.083 MB / 0.5652 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002105/0.3579, allocations: 8 kB / 0.5652 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002258/0.3582, allocations: 59.31 kB / 0.5653 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002648/0.3584, allocations: 123 kB / 0.5654 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007698/0.3592, allocations: 175.5 kB / 0.5656 GB, free: 472 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007036/0.3599, allocations: 457.8 kB / 0.566 GB, free: 12 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002599/0.3602, allocations: 83.52 kB / 0.5661 GB, free: 15.92 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002207/0.3604, allocations: 167.4 kB / 0.5663 GB, free: 15.76 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002523/0.3606, allocations: 171.2 kB / 0.5664 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.108e-05/0.3607, allocations: 32 kB / 0.5664 GB, free: 15.56 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001349/0.3608, allocations: 51.98 kB / 0.5665 GB, free: 15.51 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.315e-05/0.3609, allocations: 71.7 kB / 0.5666 GB, free: 15.44 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001887/0.3611, allocations: 195.1 kB / 0.5667 GB, free: 15.25 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005467/0.3616, allocations: 448.8 kB / 0.5672 GB, free: 14.81 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/0.3616, allocations: 7.984 kB / 0.5672 GB, free: 14.8 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3616, allocations: 0 / 0.5672 GB, free: 14.8 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.226e-06/0.3617, allocations: 0 / 0.5672 GB, free: 14.8 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.001133/0.3628, allocations: 0.6624 MB / 0.5678 GB, free: 14.09 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.3628, allocations: 12.03 kB / 0.5678 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003336/0.3632, allocations: 72.62 kB / 0.5679 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005272/0.3637, allocations: 303.4 kB / 0.5682 GB, free: 13.67 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.304e-05/0.3637, allocations: 25.38 kB / 0.5682 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.173e-05/0.3638, allocations: 44.33 kB / 0.5683 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006538/0.3645, allocations: 363.6 kB / 0.5686 GB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.001e-05/0.3645, allocations: 7.938 kB / 0.5686 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.569e-05/0.3645, allocations: 15.98 kB / 0.5686 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.3646, allocations: 12 kB / 0.5686 GB, free: 13.19 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004697/0.365, allocations: 219.8 kB / 0.5689 GB, free: 12.97 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002373/0.3674, allocations: 1.57 MB / 0.5704 GB, free: 11.29 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006256/0.368, allocations: 307.7 kB / 0.5707 GB, free: 10.93 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001763/0.3682, allocations: 93.06 kB / 0.5708 GB, free: 10.82 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.3682, allocations: 8.125 kB / 0.5708 GB, free: 10.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.3683, allocations: 46.5 kB / 0.5708 GB, free: 10.76 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.964e-06/0.3683, allocations: 0 / 0.5708 GB, free: 10.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007104/0.369, allocations: 269.3 kB / 0.5711 GB, free: 10.49 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001336/0.3691, allocations: 183.9 kB / 0.5713 GB, free: 10.27 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003197/0.3694, allocations: 246.8 kB / 0.5715 GB, free: 10.01 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.919e-05/0.3695, allocations: 29.7 kB / 0.5715 GB, free: 9.977 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001878/0.3696, allocations: 220.1 kB / 0.5717 GB, free: 9.758 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.3698, allocations: 115 kB / 0.5718 GB, free: 9.645 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001172/0.3699, allocations: 74.09 kB / 0.5719 GB, free: 9.562 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.37, allocations: 342.8 kB / 0.5722 GB, free: 9.219 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001834/0.3702, allocations: 80.84 kB / 0.5723 GB, free: 9.141 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003151/0.3705, allocations: 249.7 kB / 0.5726 GB, free: 8.824 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005198/0.3711, allocations: 365.1 kB / 0.5729 GB, free: 8.391 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.3711, allocations: 0 / 0.5729 GB, free: 8.391 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006679/0.3717, allocations: 385.3 kB / 0.5733 GB, free: 8.008 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/0.3717, allocations: 8 kB / 0.5733 GB, free: 8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.188e-06/0.3718, allocations: 4 kB / 0.5733 GB, free: 7.996 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.586e-05/0.3718, allocations: 11.98 kB / 0.5733 GB, free: 7.984 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003583/0.3721, allocations: 107.8 kB / 0.5734 GB, free: 7.879 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/0.3722, allocations: 8 kB / 0.5734 GB, free: 7.871 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002181/0.3724, allocations: 43.61 kB / 0.5734 GB, free: 7.828 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.826e-05/0.3724, allocations: 27.98 kB / 0.5735 GB, free: 7.801 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.0001691/0.3726, allocations: 165.7 kB / 0.5736 GB, free: 7.629 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001315/0.3727, allocations: 27.81 kB / 0.5737 GB, free: 7.602 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002028/0.3729, allocations: 95.33 kB / 0.5737 GB, free: 7.5 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.3729, allocations: 4 kB / 0.5738 GB, free: 7.496 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.3729, allocations: 4 kB / 0.5738 GB, free: 7.492 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.809e-06/0.3729, allocations: 4.297 kB / 0.5738 GB, free: 7.488 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007082/0.3736, allocations: 345.3 kB / 0.5741 GB, free: 7.102 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.3737, allocations: 8 kB / 0.5741 GB, free: 7.094 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004002/0.3741, allocations: 83.89 kB / 0.5742 GB, free: 7.012 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.3741, allocations: 4 kB / 0.5742 GB, free: 7.008 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.677e-05/0.3741, allocations: 12.08 kB / 0.5742 GB, free: 6.996 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.097e-06/0.3741, allocations: 7.938 kB / 0.5742 GB, free: 6.988 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3741, allocations: 0 / 0.5742 GB, free: 6.988 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.3751, allocations: 0.7742 MB / 0.575 GB, free: 6.191 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.859e-05/0.3752, allocations: 100.9 kB / 0.5751 GB, free: 6.074 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.483e-05/0.3753, allocations: 8 kB / 0.5751 GB, free: 6.066 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003315/0.3756, allocations: 8 kB / 0.5751 GB, free: 6.059 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.14e-05/0.3756, allocations: 24.72 kB / 0.5751 GB, free: 6.035 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.3757, allocations: 8 kB / 0.5751 GB, free: 6.027 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001676/0.3758, allocations: 173.9 kB / 0.5753 GB, free: 5.859 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3758, allocations: 4 kB / 0.5753 GB, free: 5.855 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006069/0.3764, allocations: 99.84 kB / 0.5754 GB, free: 5.758 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.0001358/0.3766, allocations: 107.1 kB / 0.5755 GB, free: 5.645 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004913/0.3771, allocations: 220.8 kB / 0.5757 GB, free: 5.43 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3771, allocations: 4 kB / 0.5757 GB, free: 5.426 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001809/0.3772, allocations: 88.03 kB / 0.5758 GB, free: 5.34 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009243/0.3782, allocations: 84.22 kB / 0.5758 GB, free: 5.266 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002111/0.3803, allocations: 1.314 MB / 0.5771 GB, free: 3.906 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004769/0.3808, allocations: 0.7912 MB / 0.5779 GB, free: 3.086 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001412/0.3809, allocations: 38.95 kB / 0.5779 GB, free: 3.051 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.648e-05/0.381, allocations: 27.38 kB / 0.578 GB, free: 3.023 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.381, allocations: 4 kB / 0.578 GB, free: 3.02 MB / 414.1 MB Notification: Performance of Templates: time 0.007615/0.3886, allocations: 3.217 MB / 0.5811 GB, free: 15.83 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 cvode -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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.23677565716207]