Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.00168/0.00168, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.002152/0.002152, allocations: 210.7 kB / 23.74 MB, free: 4.672 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.559/1.559, allocations: 230.6 MB / 257.5 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.242/0.242, allocations: 46.93 MB / 360.9 MB, free: 4.27 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+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: "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBraking,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_TestBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002977/0.002977, allocations: 63.91 kB / 0.4961 GB, free: 7.93 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3375/0.3405, allocations: 66.03 MB / 0.5606 GB, free: 4.488 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBraking): time 0.004665/0.3452, allocations: 3.066 MB / 0.5636 GB, free: 1.402 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002031/0.3472, allocations: 1.083 MB / 0.5647 GB, free: 324 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001793/0.3474, allocations: 11.94 kB / 0.5647 GB, free: 312 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001937/0.3476, allocations: 63.31 kB / 0.5647 GB, free: 248 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002437/0.3478, allocations: 127 kB / 0.5649 GB, free: 120 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006198/0.3485, allocations: 179.5 kB / 0.565 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005851/0.349, allocations: 457.8 kB / 0.5655 GB, free: 15.49 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002305/0.3493, allocations: 81.77 kB / 0.5656 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002307/0.3495, allocations: 167.4 kB / 0.5657 GB, free: 15.24 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002684/0.3498, allocations: 179.2 kB / 0.5659 GB, free: 15.07 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.286e-05/0.3498, allocations: 32 kB / 0.5659 GB, free: 15.04 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000169/0.35, allocations: 55.98 kB / 0.566 GB, free: 14.98 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.91e-05/0.3501, allocations: 79.62 kB / 0.566 GB, free: 14.9 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001981/0.3503, allocations: 191.1 kB / 0.5662 GB, free: 14.71 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005663/0.3508, allocations: 438.2 kB / 0.5666 GB, free: 14.29 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.3508, allocations: 4 kB / 0.5666 GB, free: 14.28 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3508, allocations: 0 / 0.5666 GB, free: 14.28 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.333e-05/0.3509, allocations: 0 / 0.5666 GB, free: 14.28 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.001132/0.352, allocations: 0.5988 MB / 0.5672 GB, free: 13.65 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.352, allocations: 12.03 kB / 0.5672 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.533e-05/0.3521, allocations: 82.66 kB / 0.5673 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003103/0.3524, allocations: 60.64 kB / 0.5674 GB, free: 13.49 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004746/0.3529, allocations: 237.6 kB / 0.5676 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.794e-05/0.353, allocations: 29.38 kB / 0.5676 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.081e-05/0.353, allocations: 44.08 kB / 0.5677 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006085/0.3536, allocations: 363.6 kB / 0.568 GB, free: 12.78 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.547e-05/0.3537, allocations: 4 kB / 0.568 GB, free: 12.78 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.4e-05/0.3537, allocations: 16 kB / 0.568 GB, free: 12.76 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.3537, allocations: 12 kB / 0.5681 GB, free: 12.75 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004541/0.3542, allocations: 219.8 kB / 0.5683 GB, free: 12.54 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002403/0.3566, allocations: 1.506 MB / 0.5697 GB, free: 10.93 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006086/0.3572, allocations: 307.6 kB / 0.57 GB, free: 10.57 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000181/0.3574, allocations: 93.17 kB / 0.5701 GB, free: 10.46 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.366e-05/0.3574, allocations: 3.984 kB / 0.5701 GB, free: 10.46 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.736e-05/0.3574, allocations: 42.5 kB / 0.5702 GB, free: 10.41 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 2.465e-06/0.3574, allocations: 0 / 0.5702 GB, free: 10.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007488/0.3582, allocations: 277.4 kB / 0.5704 GB, free: 10.13 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.3583, allocations: 187.9 kB / 0.5706 GB, free: 9.902 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002584/0.3585, allocations: 237.9 kB / 0.5708 GB, free: 9.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.308e-05/0.3586, allocations: 25.7 kB / 0.5709 GB, free: 9.629 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/0.3587, allocations: 220.2 kB / 0.5711 GB, free: 9.41 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.623e-05/0.3588, allocations: 111.1 kB / 0.5712 GB, free: 9.301 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.3589, allocations: 82.2 kB / 0.5713 GB, free: 9.211 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.3591, allocations: 342.8 kB / 0.5716 GB, free: 8.867 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001911/0.3593, allocations: 84.83 kB / 0.5717 GB, free: 8.785 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003119/0.3596, allocations: 245.7 kB / 0.5719 GB, free: 8.473 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005262/0.3601, allocations: 361.1 kB / 0.5722 GB, free: 8.043 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3601, allocations: 0 / 0.5722 GB, free: 8.043 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006693/0.3608, allocations: 388.8 kB / 0.5726 GB, free: 7.656 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.3608, allocations: 8 kB / 0.5726 GB, free: 7.648 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.3608, allocations: 4 kB / 0.5726 GB, free: 7.645 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.354e-05/0.3609, allocations: 12.56 kB / 0.5726 GB, free: 7.633 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003723/0.3612, allocations: 107.8 kB / 0.5727 GB, free: 7.527 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.631e-05/0.3613, allocations: 15.94 kB / 0.5728 GB, free: 7.512 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002582/0.3615, allocations: 43.73 kB / 0.5728 GB, free: 7.469 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.017e-05/0.3615, allocations: 20 kB / 0.5728 GB, free: 7.449 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.0001709/0.3617, allocations: 165.6 kB / 0.573 GB, free: 7.277 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001419/0.3619, allocations: 31.81 kB / 0.573 GB, free: 7.246 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001909/0.362, allocations: 87.39 kB / 0.5731 GB, free: 7.152 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.3621, allocations: 5.062 kB / 0.5731 GB, free: 7.148 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.976e-06/0.3621, allocations: 8 kB / 0.5731 GB, free: 7.141 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.3621, allocations: 0 / 0.5731 GB, free: 7.141 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006954/0.3628, allocations: 320.4 kB / 0.5734 GB, free: 6.785 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.3628, allocations: 4 kB / 0.5734 GB, free: 6.781 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004137/0.3632, allocations: 83.89 kB / 0.5735 GB, free: 6.699 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.3632, allocations: 0 / 0.5735 GB, free: 6.699 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.279e-05/0.3632, allocations: 8 kB / 0.5735 GB, free: 6.691 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.3632, allocations: 4 kB / 0.5735 GB, free: 6.688 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3632, allocations: 0 / 0.5735 GB, free: 6.688 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000801/0.364, allocations: 0.7741 MB / 0.5743 GB, free: 5.891 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.444e-05/0.3641, allocations: 35.78 kB / 0.5743 GB, free: 5.855 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.319e-05/0.3641, allocations: 8 kB / 0.5743 GB, free: 5.848 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003325/0.3644, allocations: 12 kB / 0.5743 GB, free: 5.836 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.77e-05/0.3645, allocations: 27.89 kB / 0.5743 GB, free: 5.809 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.802e-05/0.3645, allocations: 11.92 kB / 0.5743 GB, free: 5.797 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001636/0.3647, allocations: 169.2 kB / 0.5745 GB, free: 5.629 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3647, allocations: 0 / 0.5745 GB, free: 5.629 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006458/0.3653, allocations: 103.8 kB / 0.5746 GB, free: 5.527 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.001106/0.3664, allocations: 1.296 MB / 0.5759 GB, free: 4.203 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004822/0.3669, allocations: 224.5 kB / 0.5761 GB, free: 3.984 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3669, allocations: 0 / 0.5761 GB, free: 3.984 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001812/0.3671, allocations: 93.08 kB / 0.5762 GB, free: 3.895 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009449/0.368, allocations: 85.5 kB / 0.5763 GB, free: 3.816 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005447/0.3735, allocations: 4.085 MB / 0.5802 GB, free: 15.48 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004816/0.374, allocations: 0.795 MB / 0.581 GB, free: 14.66 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000163/0.3741, allocations: 38.94 kB / 0.5811 GB, free: 14.62 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000168/0.3743, allocations: 107.4 kB / 0.5812 GB, free: 14.52 MB / 430.1 MB Notification: Performance of SimCode: time 1.432e-06/0.3743, allocations: 0 / 0.5812 GB, free: 14.52 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03658/0.4109, allocations: 6.8 MB / 0.5878 GB, free: 7.887 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.71, allocations: 3.875 kB / 0.5878 GB, free: 7.887 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Rotational_TestBraking_fmu --startTime=0 --stopTime=2 --stepSize=0.000399521 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Rotational_TestBraking.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_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: 14.888811956858262]