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.00871/0.00871, allocations: 107.8 kB / 21.98 MB, free: 5.223 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.002482/0.002482, allocations: 216.6 kB / 25.29 MB, free: 3.203 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.455/1.455, allocations: 230.5 MB / 258.9 MB, free: 8.008 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.2321/0.2321, allocations: 46.92 MB / 362.3 MB, free: 4.191 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.002336/0.002336, allocations: 79.86 kB / 0.4982 GB, free: 7.262 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3343/0.3366, allocations: 66.07 MB / 0.5627 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004616/0.3412, allocations: 3.066 MB / 0.5657 GB, free: 1.16 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002021/0.3433, allocations: 1.087 MB / 0.5668 GB, free: 72 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001837/0.3434, allocations: 15.88 kB / 0.5668 GB, free: 56 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001997/0.3436, allocations: 51.39 kB / 0.5668 GB, free: 4 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002509/0.3439, allocations: 131 kB / 0.567 GB, free: 15.87 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005541/0.3444, allocations: 171.6 kB / 0.5671 GB, free: 15.7 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005022/0.345, allocations: 461.7 kB / 0.5676 GB, free: 15.25 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001953/0.3451, allocations: 87.92 kB / 0.5676 GB, free: 15.16 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001965/0.3453, allocations: 163.4 kB / 0.5678 GB, free: 15 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002482/0.3456, allocations: 179.2 kB / 0.568 GB, free: 14.82 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.631e-05/0.3456, allocations: 32 kB / 0.568 GB, free: 14.79 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001312/0.3458, allocations: 51.98 kB / 0.5681 GB, free: 14.74 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.236e-05/0.3458, allocations: 79.69 kB / 0.5681 GB, free: 14.66 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001845/0.346, allocations: 195.1 kB / 0.5683 GB, free: 14.47 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005295/0.3466, allocations: 440.5 kB / 0.5687 GB, free: 14.05 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.3466, allocations: 0 / 0.5687 GB, free: 14.05 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3466, allocations: 0 / 0.5687 GB, free: 14.05 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.3466, allocations: 0 / 0.5687 GB, free: 14.05 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.001066/0.3476, allocations: 0.5988 MB / 0.5693 GB, free: 13.42 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.3477, allocations: 8.031 kB / 0.5693 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003087/0.348, allocations: 68.64 kB / 0.5694 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004296/0.3484, allocations: 237.6 kB / 0.5696 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.865e-05/0.3484, allocations: 29.38 kB / 0.5696 GB, free: 13.05 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.653e-05/0.3485, allocations: 44.27 kB / 0.5697 GB, free: 13.01 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006036/0.3491, allocations: 355.6 kB / 0.57 GB, free: 12.64 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.758e-05/0.3492, allocations: 7.984 kB / 0.57 GB, free: 12.63 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.833e-05/0.3492, allocations: 12 kB / 0.57 GB, free: 12.62 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.3492, allocations: 12 kB / 0.5701 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004462/0.3496, allocations: 223.8 kB / 0.5703 GB, free: 12.39 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002288/0.3519, allocations: 1.506 MB / 0.5717 GB, free: 10.78 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005929/0.3525, allocations: 299.6 kB / 0.572 GB, free: 10.43 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001728/0.3527, allocations: 101.1 kB / 0.5721 GB, free: 10.32 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.369e-05/0.3527, allocations: 7.938 kB / 0.5721 GB, free: 10.31 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.02e-05/0.3528, allocations: 42.55 kB / 0.5722 GB, free: 10.26 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.824e-06/0.3528, allocations: 0 / 0.5722 GB, free: 10.26 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007085/0.3535, allocations: 277.3 kB / 0.5724 GB, free: 9.98 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/0.3536, allocations: 183.9 kB / 0.5726 GB, free: 9.758 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002567/0.3538, allocations: 237.9 kB / 0.5728 GB, free: 9.516 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.475e-05/0.3539, allocations: 29.7 kB / 0.5729 GB, free: 9.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001659/0.354, allocations: 224.2 kB / 0.5731 GB, free: 9.258 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.3541, allocations: 115 kB / 0.5732 GB, free: 9.145 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.3542, allocations: 82.2 kB / 0.5733 GB, free: 9.055 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.3544, allocations: 334.8 kB / 0.5736 GB, free: 8.719 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001782/0.3546, allocations: 84.83 kB / 0.5737 GB, free: 8.637 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003215/0.3549, allocations: 245.8 kB / 0.5739 GB, free: 8.324 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005201/0.3554, allocations: 369 kB / 0.5743 GB, free: 7.887 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.3554, allocations: 0 / 0.5743 GB, free: 7.887 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000643/0.3561, allocations: 380.8 kB / 0.5746 GB, free: 7.508 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.3561, allocations: 8 kB / 0.5746 GB, free: 7.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/0.3561, allocations: 4 kB / 0.5746 GB, free: 7.496 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.192e-05/0.3561, allocations: 8.625 kB / 0.5746 GB, free: 7.488 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003597/0.3565, allocations: 111.8 kB / 0.5747 GB, free: 7.379 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.644e-05/0.3565, allocations: 11.98 kB / 0.5748 GB, free: 7.367 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002181/0.3567, allocations: 39.73 kB / 0.5748 GB, free: 7.328 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.96e-05/0.3568, allocations: 23.94 kB / 0.5748 GB, free: 7.305 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.0001721/0.3569, allocations: 158.5 kB / 0.575 GB, free: 7.141 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/0.3571, allocations: 39.8 kB / 0.575 GB, free: 7.102 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001966/0.3573, allocations: 91.58 kB / 0.5751 GB, free: 7.004 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.3573, allocations: 4.156 kB / 0.5751 GB, free: 7 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.746e-06/0.3573, allocations: 11.94 kB / 0.5751 GB, free: 6.988 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.503e-06/0.3573, allocations: 4 kB / 0.5751 GB, free: 6.984 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006918/0.358, allocations: 324.4 kB / 0.5754 GB, free: 6.625 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.358, allocations: 0 / 0.5754 GB, free: 6.625 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004049/0.3584, allocations: 83.89 kB / 0.5755 GB, free: 6.543 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.962e-06/0.3584, allocations: 4.75 kB / 0.5755 GB, free: 6.539 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.387e-05/0.3584, allocations: 8 kB / 0.5755 GB, free: 6.531 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.3584, allocations: 4 kB / 0.5755 GB, free: 6.527 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.3584, allocations: 0 / 0.5755 GB, free: 6.527 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008482/0.3593, allocations: 0.7742 MB / 0.5763 GB, free: 5.73 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.904e-05/0.3593, allocations: 27.8 kB / 0.5763 GB, free: 5.703 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.584e-05/0.3594, allocations: 11.98 kB / 0.5763 GB, free: 5.691 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003124/0.3597, allocations: 15.98 kB / 0.5763 GB, free: 5.676 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.537e-05/0.3597, allocations: 19.97 kB / 0.5763 GB, free: 5.656 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/0.3597, allocations: 8 kB / 0.5764 GB, free: 5.648 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001653/0.3599, allocations: 173.1 kB / 0.5765 GB, free: 5.477 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3599, allocations: 4 kB / 0.5765 GB, free: 5.473 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005976/0.3605, allocations: 95.78 kB / 0.5766 GB, free: 5.379 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.0001243/0.3606, allocations: 111.2 kB / 0.5767 GB, free: 5.262 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000478/0.3611, allocations: 223.6 kB / 0.5769 GB, free: 5.043 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3611, allocations: 0 / 0.5769 GB, free: 5.043 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000226/0.3613, allocations: 93.08 kB / 0.577 GB, free: 4.953 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00115/0.3625, allocations: 73.59 kB / 0.5771 GB, free: 4.883 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002086/0.3646, allocations: 1.337 MB / 0.5784 GB, free: 3.492 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004441/0.365, allocations: 0.7913 MB / 0.5792 GB, free: 2.676 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.347e-05/0.3651, allocations: 27.38 kB / 0.5792 GB, free: 2.648 MB / 414.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3651, allocations: 4 kB / 0.5792 GB, free: 2.645 MB / 414.1 MB Notification: Performance of Templates: time 0.007123/0.3722, allocations: 4.138 MB / 0.5832 GB, free: 14.51 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 -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: 7.8252092220354825]