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.001405/0.001405, allocations: 105.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001652/0.001652, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 63.22 kB / 307.1 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.106, allocations: 50.52 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.003802/0.1098, allocations: 1.976 MB / 359.6 MB, free: 12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001222/0.1111, allocations: 0.6973 MB / 360.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001385/0.1112, allocations: 7.938 kB / 360.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000148/0.1114, allocations: 15.8 kB / 360.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001128/0.1115, allocations: 47.64 kB / 360.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003257/0.1119, allocations: 47.86 kB / 360.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002203/0.1121, allocations: 143.3 kB / 360.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.1122, allocations: 33.09 kB / 360.5 MB, free: 11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001125/0.1124, allocations: 63.7 kB / 360.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.1125, allocations: 47.78 kB / 360.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.914e-05/0.1125, allocations: 12 kB / 360.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001015/0.1126, allocations: 27.98 kB / 360.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.557e-05/0.1127, allocations: 27.92 kB / 360.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.047e-05/0.1128, allocations: 59.67 kB / 360.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002563/0.113, allocations: 151.8 kB / 360.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.097e-06/0.113, allocations: 0 / 360.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.113, allocations: 7.875 kB / 360.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.1131, allocations: 0 / 360.9 MB, free: 10.61 MB / 302.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.000727/0.1138, allocations: 435 kB / 361.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.1138, allocations: 8.031 kB / 361.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.112e-05/0.1139, allocations: 46.75 kB / 361.4 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002204/0.1141, allocations: 32.67 kB / 361.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002366/0.1144, allocations: 206.9 kB / 361.6 MB, free: 9.809 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.642e-05/0.1144, allocations: 8.375 kB / 361.6 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.269e-05/0.1144, allocations: 16.12 kB / 361.7 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003137/0.1148, allocations: 114.7 kB / 361.8 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.1148, allocations: 3.906 kB / 361.8 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.321e-05/0.1148, allocations: 11.98 kB / 361.8 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.1148, allocations: 4 kB / 361.8 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002684/0.1151, allocations: 84.59 kB / 361.9 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/0.1161, allocations: 0.5166 MB / 362.4 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003433/0.1165, allocations: 106.5 kB / 362.5 MB, free: 8.871 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.1166, allocations: 44.81 kB / 362.5 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.522e-05/0.1166, allocations: 0 / 362.5 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/0.1167, allocations: 38.56 kB / 362.6 MB, free: 8.777 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.202e-06/0.1167, allocations: 0 / 362.6 MB, free: 8.777 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004504/0.1171, allocations: 145.7 kB / 362.7 MB, free: 8.629 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.421e-05/0.1172, allocations: 51.41 kB / 362.8 MB, free: 8.566 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001144/0.1173, allocations: 140.5 kB / 362.9 MB, free: 8.422 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.1173, allocations: 25.7 kB / 362.9 MB, free: 8.391 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.916e-05/0.1174, allocations: 116.2 kB / 363 MB, free: 8.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.425e-05/0.1175, allocations: 39.39 kB / 363.1 MB, free: 8.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.393e-05/0.1175, allocations: 33.64 kB / 363.1 MB, free: 8.191 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.1177, allocations: 322.8 kB / 363.4 MB, free: 7.867 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.1178, allocations: 31.98 kB / 363.5 MB, free: 7.836 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001388/0.1179, allocations: 71.39 kB / 363.5 MB, free: 7.754 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002462/0.1182, allocations: 107.3 kB / 363.6 MB, free: 7.637 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1182, allocations: 0 / 363.6 MB, free: 7.637 MB / 302.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003156/0.1185, allocations: 145.4 kB / 363.8 MB, free: 7.488 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.1186, allocations: 8 kB / 363.8 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.1186, allocations: 0 / 363.8 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.1186, allocations: 0 / 363.8 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001563/0.1188, allocations: 40.3 kB / 363.8 MB, free: 7.441 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.1188, allocations: 3.984 kB / 363.8 MB, free: 7.438 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.027e-05/0.1189, allocations: 7.906 kB / 363.8 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.688e-06/0.1189, allocations: 4 kB / 363.8 MB, free: 7.426 MB / 302.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 8.939e-05/0.119, allocations: 137.8 kB / 364 MB, free: 7.281 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.329e-05/0.119, allocations: 11.89 kB / 364 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.858e-05/0.1191, allocations: 12.72 kB / 364 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1191, allocations: 4 kB / 364 MB, free: 7.254 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.1191, allocations: 0 / 364 MB, free: 7.254 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/0.1191, allocations: 3.938 kB / 364 MB, free: 7.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002248/0.1193, allocations: 213.5 kB / 364.2 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.1193, allocations: 0 / 364.2 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001705/0.1195, allocations: 31.92 kB / 364.3 MB, free: 6.961 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.1195, allocations: 4 kB / 364.3 MB, free: 6.957 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.1195, allocations: 8 kB / 364.3 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.1195, allocations: 0 / 364.3 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.1196, allocations: 0 / 364.3 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004637/0.12, allocations: 267.3 kB / 364.5 MB, free: 6.672 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.491e-05/0.1201, allocations: 89.02 kB / 364.6 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.07e-05/0.1201, allocations: 0 / 364.6 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/0.1202, allocations: 8.031 kB / 364.6 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.064e-05/0.1203, allocations: 4 kB / 364.6 MB, free: 6.555 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.035e-05/0.1203, allocations: 7.984 kB / 364.6 MB, free: 6.547 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.368e-05/0.1204, allocations: 105.8 kB / 364.7 MB, free: 6.445 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1204, allocations: 0 / 364.7 MB, free: 6.445 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002541/0.1206, allocations: 28 kB / 364.8 MB, free: 6.418 MB / 302.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.000734/0.1214, allocations: 0.7904 MB / 365.6 MB, free: 5.598 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003071/0.1217, allocations: 99.95 kB / 365.6 MB, free: 5.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.1217, allocations: 4.188 kB / 365.7 MB, free: 5.496 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001264/0.1218, allocations: 47.91 kB / 365.7 MB, free: 5.449 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000412/0.1223, allocations: 19.97 kB / 365.7 MB, free: 5.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002466/0.1247, allocations: 1.879 MB / 367.6 MB, free: 3.449 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003214/0.1251, allocations: 0.7002 MB / 368.3 MB, free: 2.723 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.158e-05/0.1252, allocations: 16.55 kB / 368.3 MB, free: 2.707 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.66e-05/0.1252, allocations: 31.42 kB / 368.3 MB, free: 2.676 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1252, allocations: 0 / 368.3 MB, free: 2.676 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02099/0.1462, allocations: 2.666 MB / 371 MB, free: 104 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.795/7.941, allocations: 3.938 kB / 371 MB, free: 100 kB / 302.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