Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008249/0.0008249, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007971/0.0007971, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8667/0.8667, allocations: 173.3 MB / 200.4 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.694e-06/1.694e-06, allocations: 0 / 318.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.621e-05/1.79e-05, allocations: 6.281 kB / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.001946/0.001963, allocations: 1.705 MB / 320.1 MB, free: 4.648 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006586/0.002622, allocations: 0.6115 MB / 320.7 MB, free: 4.031 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.172e-05/0.002694, allocations: 3.938 kB / 320.7 MB, free: 4.027 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001008/0.002795, allocations: 19.8 kB / 320.8 MB, free: 4.008 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.673e-05/0.002851, allocations: 43.64 kB / 320.8 MB, free: 3.965 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001934/0.003045, allocations: 47.8 kB / 320.8 MB, free: 3.918 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001363/0.003181, allocations: 123.3 kB / 321 MB, free: 3.797 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.003286, allocations: 19.98 kB / 321 MB, free: 3.777 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.499e-05/0.003351, allocations: 67.81 kB / 321 MB, free: 3.711 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.996e-05/0.003421, allocations: 35.89 kB / 321.1 MB, free: 3.676 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.683e-05/0.003438, allocations: 8 kB / 321.1 MB, free: 3.668 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.967e-05/0.003498, allocations: 23.98 kB / 321.1 MB, free: 3.645 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.75e-05/0.003515, allocations: 23.92 kB / 321.1 MB, free: 3.621 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.592e-05/0.003551, allocations: 35.92 kB / 321.2 MB, free: 3.586 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001594/0.003711, allocations: 131.6 kB / 321.3 MB, free: 3.457 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.003713, allocations: 0 / 321.3 MB, free: 3.457 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.003714, allocations: 0 / 321.3 MB, free: 3.457 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.127e-06/0.003718, allocations: 0 / 321.3 MB, free: 3.457 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0003836/0.004102, allocations: 333.3 kB / 321.6 MB, free: 3.105 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.004135, allocations: 12.92 kB / 321.6 MB, free: 3.094 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.058e-05/0.004166, allocations: 38.75 kB / 321.7 MB, free: 3.047 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.004274, allocations: 36.81 kB / 321.7 MB, free: 3.012 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001473/0.004421, allocations: 133.7 kB / 321.8 MB, free: 2.855 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.238e-06/0.004431, allocations: 4.562 kB / 321.8 MB, free: 2.852 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.187e-05/0.004452, allocations: 8.375 kB / 321.9 MB, free: 2.844 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001344/0.004587, allocations: 105.1 kB / 322 MB, free: 2.738 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.004597, allocations: 0 / 322 MB, free: 2.738 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.477e-06/0.004606, allocations: 0 / 322 MB, free: 2.738 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.004611, allocations: 4 kB / 322 MB, free: 2.734 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.675e-05/0.004698, allocations: 55.97 kB / 322 MB, free: 2.68 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004574/0.005155, allocations: 414.9 kB / 322.4 MB, free: 2.223 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001777/0.005333, allocations: 82.52 kB / 322.5 MB, free: 2.133 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.012e-05/0.005363, allocations: 25.05 kB / 322.5 MB, free: 2.105 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.178e-06/0.005372, allocations: 4 kB / 322.5 MB, free: 2.102 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.616e-05/0.005388, allocations: 34.55 kB / 322.6 MB, free: 2.059 MB / 282.7 MB Notification: Performance of pre-optimization done (n=8): time 8.81e-07/0.005389, allocations: 0 / 322.6 MB, free: 2.059 MB / 282.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001613/0.00555, allocations: 93.64 kB / 322.7 MB, free: 1.961 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.533e-05/0.005575, allocations: 59.34 kB / 322.7 MB, free: 1.891 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.774e-05/0.005633, allocations: 121.8 kB / 322.8 MB, free: 1.762 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.047e-05/0.005644, allocations: 29.7 kB / 322.9 MB, free: 1.727 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.453e-05/0.005688, allocations: 107.9 kB / 323 MB, free: 1.617 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.005707, allocations: 31.7 kB / 323 MB, free: 1.586 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.212e-05/0.005739, allocations: 33.64 kB / 323 MB, free: 1.547 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.178e-05/0.005811, allocations: 322.8 kB / 323.3 MB, free: 1.223 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.994e-05/0.005841, allocations: 23.98 kB / 323.4 MB, free: 1.199 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.174e-05/0.005882, allocations: 47.42 kB / 323.4 MB, free: 1.141 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.757e-05/0.00596, allocations: 79.38 kB / 323.5 MB, free: 1.051 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.005962, allocations: 0 / 323.5 MB, free: 1.051 MB / 282.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001127/0.006075, allocations: 117.5 kB / 323.6 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/0.006086, allocations: 4 kB / 323.6 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.006091, allocations: 0 / 323.6 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.006102, allocations: 4 kB / 323.6 MB, free: 0.9219 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-05/0.006176, allocations: 23.98 kB / 323.6 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.87e-06/0.006181, allocations: 0 / 323.6 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.892e-05/0.00621, allocations: 11.88 kB / 323.7 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-06/0.006216, allocations: 8.094 kB / 323.7 MB, free: 0.8789 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (13): * Single equations (assignments): 13 * 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 5.688e-05/0.006272, allocations: 121.8 kB / 323.8 MB, free: 0.75 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.639e-05/0.006289, allocations: 11.94 kB / 323.8 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.308e-05/0.006312, allocations: 12.44 kB / 323.8 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.006315, allocations: 7.984 kB / 323.8 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.006318, allocations: 0 / 323.8 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.00632, allocations: 0 / 323.8 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001252/0.006445, allocations: 164.6 kB / 324 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-07/0.006446, allocations: 0 / 324 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.53e-05/0.006511, allocations: 27.98 kB / 324 MB, free: 496 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.006512, allocations: 4 kB / 324 MB, free: 492 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.754e-06/0.00652, allocations: 4.094 kB / 324 MB, free: 488 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-07/0.00652, allocations: 3.938 kB / 324 MB, free: 484 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.006521, allocations: 0 / 324 MB, free: 484 kB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001587/0.00668, allocations: 215.6 kB / 324.2 MB, free: 252 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.766e-06/0.006689, allocations: 11.89 kB / 324.2 MB, free: 240 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.17e-05/0.006701, allocations: 4 kB / 324.2 MB, free: 236 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.478e-05/0.006735, allocations: 0 / 324.2 MB, free: 236 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.35e-05/0.006749, allocations: 8.031 kB / 324.2 MB, free: 228 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-06/0.006751, allocations: 0 / 324.2 MB, free: 228 kB / 282.7 MB Notification: Performance of sorting global known variables: time 3.505e-05/0.006786, allocations: 99.2 kB / 324.3 MB, free: 128 kB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006786, allocations: 4 kB / 324.3 MB, free: 124 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001517/0.006938, allocations: 24 kB / 324.4 MB, free: 100 kB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (eddyCurrentTorque.phi,inertia.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 (8): * Single equations (assignments): 8 * 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.0003151/0.007253, allocations: 0.7358 MB / 325.1 MB, free: 15.34 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.628e-05/0.007349, allocations: 51.97 kB / 325.2 MB, free: 15.29 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.152e-06/0.00735, allocations: 0 / 325.2 MB, free: 15.29 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.485e-05/0.007375, allocations: 27.98 kB / 325.2 MB, free: 15.26 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002114/0.007586, allocations: 19.72 kB / 325.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001063/0.008649, allocations: 1.632 MB / 326.8 MB, free: 13.51 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.383e-05/0.008703, allocations: 100.2 kB / 326.9 MB, free: 13.39 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.176e-05/0.008735, allocations: 4.5 kB / 326.9 MB, free: 13.39 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.189e-05/0.008777, allocations: 28.77 kB / 327 MB, free: 13.36 MB / 298.7 MB Notification: Performance of SimCode: time 5.91e-07/0.008777, allocations: 0 / 327 MB, free: 13.36 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01541/0.02419, allocations: 3.009 MB / 330 MB, free: 10.48 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.68/6.704, allocations: 11.2 kB / 330 MB, free: 10.47 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/EddyCurrentBrake/EddyCurrentBrake.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable inertia.phi in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.csv. Warning: Get data of variable inertia.phi from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.csv failed! Error: Could not read variable eddyCurrentTorque.lossPower in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.csv. Warning: Get data of variable eddyCurrentTorque.lossPower from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.426315530203283]