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.001645/0.001645, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002022/0.002022, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 63.89 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2576, allocations: 50.55 MB / 408.7 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.003761/0.2614, allocations: 1.985 MB / 410.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001254/0.2627, allocations: 0.6935 MB / 411.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001639/0.2629, allocations: 7.938 kB / 411.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001513/0.2631, allocations: 15.8 kB / 411.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000121/0.2632, allocations: 47.62 kB / 411.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000285/0.2635, allocations: 47.86 kB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002151/0.2637, allocations: 143.3 kB / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/0.2639, allocations: 37.09 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.949e-05/0.264, allocations: 55.72 kB / 411.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.606e-05/0.2641, allocations: 59.77 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.133e-05/0.2641, allocations: 12 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.049e-05/0.2642, allocations: 27.98 kB / 411.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.545e-05/0.2643, allocations: 15.92 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.994e-05/0.2643, allocations: 63.67 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002586/0.2646, allocations: 154.4 kB / 412.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.2646, allocations: 0 / 412.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2646, allocations: 3.938 kB / 412.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.734e-06/0.2646, allocations: 7.938 kB / 412.1 MB, free: 14.18 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.0006593/0.2653, allocations: 438.8 kB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.2653, allocations: 12.03 kB / 412.5 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.466e-05/0.2654, allocations: 42.73 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001853/0.2656, allocations: 24.88 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002598/0.2659, allocations: 204.1 kB / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.2659, allocations: 12.38 kB / 412.8 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.626e-05/0.2659, allocations: 16.11 kB / 412.8 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002876/0.2662, allocations: 117.5 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.301e-05/0.2662, allocations: 0 / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/0.2663, allocations: 4 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.2663, allocations: 4 kB / 413 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002738/0.2666, allocations: 87.92 kB / 413 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000914/0.2675, allocations: 0.5167 MB / 413.6 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003311/0.2678, allocations: 106.5 kB / 413.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001253/0.268, allocations: 48.81 kB / 413.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.254e-05/0.268, allocations: 0 / 413.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.157e-05/0.268, allocations: 38.55 kB / 413.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.132e-06/0.268, allocations: 0 / 413.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004554/0.2685, allocations: 149.6 kB / 413.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.819e-05/0.2685, allocations: 55.41 kB / 414 MB, free: 12.13 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001198/0.2687, allocations: 133.8 kB / 414.1 MB, free: 11.99 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.819e-05/0.2687, allocations: 29.64 kB / 414.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.204e-05/0.2688, allocations: 112.2 kB / 414.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.296e-05/0.2688, allocations: 39.62 kB / 414.3 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.825e-05/0.2689, allocations: 29.7 kB / 414.3 MB, free: 11.76 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.269, allocations: 318.8 kB / 414.6 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001355/0.2692, allocations: 39.97 kB / 414.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001301/0.2693, allocations: 67.41 kB / 414.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002369/0.2695, allocations: 115.3 kB / 414.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.2695, allocations: 0 / 414.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003142/0.2699, allocations: 149.8 kB / 415 MB, free: 11.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.2699, allocations: 8 kB / 415 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.2699, allocations: 0 / 415 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.2699, allocations: 0 / 415 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001513/0.2701, allocations: 39.95 kB / 415 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.2701, allocations: 4 kB / 415 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.004e-05/0.2702, allocations: 11.98 kB / 415 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/0.2702, allocations: 8 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.0001015/0.2703, allocations: 125.7 kB / 415.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.314e-05/0.2704, allocations: 11.91 kB / 415.2 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.17e-05/0.2704, allocations: 16.7 kB / 415.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.2704, allocations: 4 kB / 415.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.2704, allocations: 0 / 415.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.2704, allocations: 7.938 kB / 415.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002364/0.2707, allocations: 217.4 kB / 415.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2707, allocations: 0 / 415.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001696/0.2709, allocations: 31.98 kB / 415.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.2709, allocations: 0 / 415.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.2709, allocations: 0 / 415.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.2709, allocations: 4 kB / 415.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.2709, allocations: 0 / 415.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004602/0.2714, allocations: 263.4 kB / 415.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.485e-05/0.2714, allocations: 89.02 kB / 415.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.027e-05/0.2715, allocations: 0 / 415.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.2716, allocations: 8.031 kB / 415.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.149e-05/0.2716, allocations: 8 kB / 415.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.31e-06/0.2716, allocations: 0 / 415.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.257e-05/0.2717, allocations: 109.9 kB / 415.9 MB, free: 10 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2717, allocations: 4 kB / 415.9 MB, free: 9.996 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002445/0.272, allocations: 24 kB / 415.9 MB, free: 9.973 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.0006616/0.2726, allocations: 0.8021 MB / 416.7 MB, free: 9.145 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002801/0.2729, allocations: 91.89 kB / 416.8 MB, free: 9.055 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.2729, allocations: 0 / 416.8 MB, free: 9.055 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001144/0.2731, allocations: 43.97 kB / 416.9 MB, free: 9.012 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003071/0.2734, allocations: 23.91 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.002164/0.2755, allocations: 1.88 MB / 418.8 MB, free: 7.012 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002581/0.2758, allocations: 0.708 MB / 419.5 MB, free: 6.277 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.465e-05/0.2759, allocations: 8.562 kB / 419.5 MB, free: 6.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.126e-05/0.2759, allocations: 31.42 kB / 419.5 MB, free: 6.238 MB / 334.1 MB Notification: Performance of SimCode: time 1.643e-06/0.276, allocations: 0 / 419.5 MB, free: 6.238 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01951/0.2955, allocations: 2.712 MB / 422.2 MB, free: 3.633 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.576/7.871, allocations: 3.625 kB / 422.2 MB, free: 3.633 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.0.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