Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00166/0.00166, allocations: 113.6 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001315/0.001315, allocations: 204.7 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.49/1.49, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002003, allocations: 63.84 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2732, allocations: 50.54 MB / 408.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.003519/0.2768, allocations: 1.99 MB / 410.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00122/0.278, allocations: 0.6936 MB / 411.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.692e-05/0.2781, allocations: 4 kB / 411.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001434/0.2783, allocations: 15.8 kB / 411.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.815e-05/0.2784, allocations: 43.62 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000264/0.2787, allocations: 51.81 kB / 411.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002137/0.2789, allocations: 143.3 kB / 411.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001441/0.279, allocations: 41.08 kB / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.363e-05/0.2791, allocations: 55.73 kB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.835e-05/0.2793, allocations: 55.77 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.186e-05/0.2793, allocations: 8 kB / 411.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.839e-05/0.2794, allocations: 27.98 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.146e-05/0.2794, allocations: 23.92 kB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.305e-05/0.2795, allocations: 63.66 kB / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002614/0.2798, allocations: 142.4 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.371e-06/0.2798, allocations: 4 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2798, allocations: 4 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.179e-06/0.2798, allocations: 4 kB / 412.1 MB, free: 14.17 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.000731/0.2805, allocations: 438.8 kB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.2806, allocations: 8.031 kB / 412.5 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.72e-05/0.2807, allocations: 46.73 kB / 412.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001803/0.2808, allocations: 24.88 kB / 412.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002857/0.2811, allocations: 204.1 kB / 412.8 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.751e-05/0.2812, allocations: 12.38 kB / 412.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.003e-05/0.2812, allocations: 16.12 kB / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003075/0.2815, allocations: 121.4 kB / 413 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.2815, allocations: 3.938 kB / 413 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.761e-05/0.2816, allocations: 8 kB / 413 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.2816, allocations: 0 / 413 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002726/0.2819, allocations: 87.94 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009488/0.2828, allocations: 0.5206 MB / 413.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003254/0.2831, allocations: 110.5 kB / 413.7 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001193/0.2833, allocations: 40.78 kB / 413.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.191e-05/0.2833, allocations: 0 / 413.7 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.2833, allocations: 34.55 kB / 413.8 MB, free: 12.34 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 8.91e-07/0.2833, allocations: 0 / 413.8 MB, free: 12.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004526/0.2838, allocations: 149.7 kB / 413.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.27e-05/0.2838, allocations: 59.41 kB / 414 MB, free: 12.11 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.284, allocations: 132.6 kB / 414.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.116e-05/0.284, allocations: 25.7 kB / 414.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.17e-05/0.2841, allocations: 112.2 kB / 414.2 MB, free: 11.83 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.745e-05/0.2842, allocations: 43.62 kB / 414.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.743e-05/0.2842, allocations: 21.72 kB / 414.3 MB, free: 11.76 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.2844, allocations: 326.8 kB / 414.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.2845, allocations: 39.97 kB / 414.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001403/0.2846, allocations: 66.78 kB / 414.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000235/0.2849, allocations: 111.3 kB / 414.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.2849, allocations: 0 / 414.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003758/0.2853, allocations: 149.4 kB / 415 MB, free: 11.04 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.2853, allocations: 7.984 kB / 415 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.2853, allocations: 4 kB / 415 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.2853, allocations: 0 / 415 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.2855, allocations: 32.06 kB / 415 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.2855, allocations: 8 kB / 415 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.996e-05/0.2856, allocations: 11.98 kB / 415 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/0.2856, allocations: 4 kB / 415 MB, free: 10.98 MB / 334.1 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 (14): * Single equations (assignments): 14 * 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.0001121/0.2857, allocations: 126.1 kB / 415.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.457e-05/0.2858, allocations: 15.91 kB / 415.2 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.843e-05/0.2858, allocations: 16.72 kB / 415.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.2858, allocations: 3.938 kB / 415.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.2859, allocations: 7.938 kB / 415.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.2859, allocations: 7.984 kB / 415.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000249/0.2861, allocations: 213.5 kB / 415.4 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2861, allocations: 0 / 415.4 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001736/0.2863, allocations: 31.97 kB / 415.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.2863, allocations: 0 / 415.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.2863, allocations: 0 / 415.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.2863, allocations: 0 / 415.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2863, allocations: 3.938 kB / 415.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005261/0.2869, allocations: 263.3 kB / 415.7 MB, free: 10.22 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.256e-05/0.287, allocations: 85.02 kB / 415.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.576e-05/0.287, allocations: 12.03 kB / 415.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.2871, allocations: 4 kB / 415.8 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.256e-05/0.2871, allocations: 3.984 kB / 415.8 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.875e-06/0.2872, allocations: 4 kB / 415.8 MB, free: 10.09 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.043e-05/0.2872, allocations: 99.27 kB / 415.9 MB, free: 9.996 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2872, allocations: 4 kB / 415.9 MB, free: 9.992 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002569/0.2875, allocations: 28 kB / 415.9 MB, free: 9.965 MB / 334.1 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 (9): * Single equations (assignments): 9 * 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.0007607/0.2883, allocations: 0.7904 MB / 416.7 MB, free: 9.148 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002825/0.2886, allocations: 95.92 kB / 416.8 MB, free: 9.055 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2886, allocations: 0 / 416.8 MB, free: 9.055 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001242/0.2887, allocations: 52.03 kB / 416.9 MB, free: 9.004 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003131/0.289, allocations: 16.27 kB / 416.9 MB, free: 8.988 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002415/0.2915, allocations: 1.887 MB / 418.8 MB, free: 7.008 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003558/0.2918, allocations: 0.7041 MB / 419.5 MB, free: 6.277 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.05e-05/0.2919, allocations: 16.53 kB / 419.5 MB, free: 6.262 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.073e-05/0.292, allocations: 35.42 kB / 419.5 MB, free: 6.227 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.292, allocations: 0 / 419.5 MB, free: 6.227 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02816/0.3201, allocations: 2.697 MB / 422.2 MB, free: 3.633 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.059/8.379, allocations: 4.062 kB / 422.2 MB, free: 3.629 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/EddyCurrentBrake/EddyCurrentBrake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable inertia.phi in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.csv. Warning: Get data of variable inertia.phi from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.csv failed! Error: Could not read variable eddyCurrentTorque.lossPower in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.csv. Warning: Get data of variable eddyCurrentTorque.lossPower from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.csv failed! " Variables in the reference:time,inertia.phi,heatCapacitor.T,eddyCurrentTorque.lossPower Variables in the result:time,eddyCurrentTorque.phi,heatCapacitor.T,inertia.w