Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.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.Translational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_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.001218/0.001218, allocations: 106.4 kB / 17.33 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001306/0.001306, allocations: 205.8 kB / 18.26 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.4 MB / 246.4 MB, free: 9.102 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 55.84 kB / 306.5 MB, free: 0.6445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09705/0.09823, allocations: 50.54 MB / 357.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake): time 0.003722/0.102, allocations: 2.053 MB / 359.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001253/0.1033, allocations: 0.6858 MB / 359.8 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001352/0.1034, allocations: 7.938 kB / 359.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001322/0.1036, allocations: 15.92 kB / 359.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001059/0.1037, allocations: 35.69 kB / 359.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002712/0.104, allocations: 43.89 kB / 359.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002102/0.1042, allocations: 143.3 kB / 360.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001454/0.1044, allocations: 49 kB / 360.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000138/0.1045, allocations: 51.8 kB / 360.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001087/0.1046, allocations: 55.77 kB / 360.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.481e-05/0.1047, allocations: 15.94 kB / 360.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.753e-05/0.1048, allocations: 27.98 kB / 360.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.888e-05/0.1048, allocations: 23.92 kB / 360.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.019e-05/0.1049, allocations: 59.72 kB / 360.3 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000243/0.1051, allocations: 155.7 kB / 360.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.1052, allocations: 3.938 kB / 360.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1052, allocations: 0 / 360.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.1052, allocations: 0 / 360.5 MB, free: 10.67 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.0007616/0.1059, allocations: 439 kB / 360.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.106, allocations: 8.031 kB / 360.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.689e-05/0.106, allocations: 46.73 kB / 361 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001913/0.1062, allocations: 28.73 kB / 361 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002441/0.1065, allocations: 208 kB / 361.2 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.789e-06/0.1065, allocations: 4.375 kB / 361.2 MB, free: 9.855 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.488e-05/0.1066, allocations: 20.12 kB / 361.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003064/0.1069, allocations: 118.7 kB / 361.4 MB, free: 9.715 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.1069, allocations: 0 / 361.4 MB, free: 9.715 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.1069, allocations: 4 kB / 361.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.615e-06/0.1069, allocations: 7.938 kB / 361.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002629/0.1072, allocations: 96.52 kB / 361.5 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008178/0.108, allocations: 491.3 kB / 361.9 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000343/0.1084, allocations: 130.5 kB / 362.1 MB, free: 8.934 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000135/0.1085, allocations: 48.88 kB / 362.1 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.407e-05/0.1085, allocations: 0 / 362.1 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.146e-05/0.1086, allocations: 34.5 kB / 362.1 MB, free: 8.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.593e-06/0.1086, allocations: 0 / 362.1 MB, free: 8.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.001032/0.1096, allocations: 477.9 kB / 362.6 MB, free: 8.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.391e-05/0.1097, allocations: 55.41 kB / 362.7 MB, free: 8.254 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001593/0.1098, allocations: 136.6 kB / 362.8 MB, free: 8.113 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.696e-05/0.1098, allocations: 25.7 kB / 362.8 MB, free: 8.082 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.19e-05/0.1099, allocations: 112.2 kB / 362.9 MB, free: 7.969 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.141e-05/0.11, allocations: 51.28 kB / 363 MB, free: 7.918 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.696e-05/0.11, allocations: 37.62 kB / 363 MB, free: 7.875 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.1101, allocations: 322.8 kB / 363.3 MB, free: 7.551 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001265/0.1103, allocations: 43.97 kB / 363.4 MB, free: 7.508 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.1104, allocations: 77.98 kB / 363.5 MB, free: 7.422 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002654/0.1107, allocations: 123.3 kB / 363.6 MB, free: 7.293 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.1107, allocations: 3.938 kB / 363.6 MB, free: 7.289 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003329/0.111, allocations: 173.4 kB / 363.8 MB, free: 7.113 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.1111, allocations: 8 kB / 363.8 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.1111, allocations: 0 / 363.8 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.1111, allocations: 4.062 kB / 363.8 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001766/0.1113, allocations: 35.98 kB / 363.8 MB, free: 7.066 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.1113, allocations: 7.922 kB / 363.8 MB, free: 7.059 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001119/0.1114, allocations: 15.98 kB / 363.8 MB, free: 7.043 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.135e-05/0.1114, allocations: 4 kB / 363.8 MB, free: 7.039 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 (18): * Single equations (assignments): 18 * 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.0001436/0.1116, allocations: 121.8 kB / 363.9 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.927e-05/0.1116, allocations: 19.75 kB / 364 MB, free: 6.891 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.193e-05/0.1117, allocations: 20.83 kB / 364 MB, free: 6.871 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.1117, allocations: 0 / 364 MB, free: 6.871 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1117, allocations: 4 kB / 364 MB, free: 6.867 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.1117, allocations: 0 / 364 MB, free: 6.867 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007296/0.1124, allocations: 471.9 kB / 364.4 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.1125, allocations: 4.062 kB / 364.5 MB, free: 6.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002483/0.1127, allocations: 35.98 kB / 364.5 MB, free: 6.305 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.1127, allocations: 3.984 kB / 364.5 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.666e-05/0.1127, allocations: 4 kB / 364.5 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.1128, allocations: 0 / 364.5 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.1128, allocations: 0 / 364.5 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005218/0.1133, allocations: 312.9 kB / 364.8 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.71e-05/0.1133, allocations: 88.95 kB / 364.9 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.534e-05/0.1134, allocations: 4 kB / 364.9 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.1135, allocations: 12.03 kB / 364.9 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.497e-05/0.1136, allocations: 7.984 kB / 364.9 MB, free: 5.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.049e-05/0.1136, allocations: 8 kB / 364.9 MB, free: 5.832 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.628e-05/0.1137, allocations: 107.3 kB / 365 MB, free: 5.727 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.693e-06/0.1137, allocations: 0 / 365 MB, free: 5.727 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002645/0.1139, allocations: 35.88 kB / 365.1 MB, free: 5.691 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (mass.s,mass.v,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 (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 Backend phase and start with SimCode phase: time 0.0007336/0.1147, allocations: 0.8273 MB / 365.9 MB, free: 4.828 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003314/0.115, allocations: 123.8 kB / 366 MB, free: 4.707 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.115, allocations: 0 / 366 MB, free: 4.707 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001587/0.1152, allocations: 56.16 kB / 366.1 MB, free: 4.652 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003849/0.1156, allocations: 27.11 kB / 366.1 MB, free: 4.633 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002514/0.1181, allocations: 2.026 MB / 368.1 MB, free: 2.488 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003334/0.1185, allocations: 0.708 MB / 368.8 MB, free: 1.754 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.712e-05/0.1186, allocations: 16.42 kB / 368.8 MB, free: 1.738 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.807e-05/0.1187, allocations: 43.36 kB / 368.9 MB, free: 1.695 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1187, allocations: 0 / 368.9 MB, free: 1.695 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1873/0.3059, allocations: 2.814 MB / 371.7 MB, free: 20 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001483/0.3061, allocations: 211.9 kB / 371.9 MB, free: 19.74 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.751/2.057, allocations: 3.125 kB / 371.9 MB, free: 19.74 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/EddyCurrentBrake/EddyCurrentBrake.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,mass.s,heatCapacitor.T,eddyCurrentForce.lossPower Variables in the result:der(eddyCurrentForce.s),der(heatCapacitor.T),der(mass.s),der(mass.v),eddyCurrentForce.T,eddyCurrentForce.TRef,eddyCurrentForce.TheatPort,eddyCurrentForce.alpha20,eddyCurrentForce.constantExcitation,eddyCurrentForce.excitation,eddyCurrentForce.f,eddyCurrentForce.f_nominal,eddyCurrentForce.flange.f,eddyCurrentForce.flange.s,eddyCurrentForce.heatPort.Q_flow,eddyCurrentForce.heatPort.T,eddyCurrentForce.lossPower,eddyCurrentForce.s,eddyCurrentForce.useExcitationInput,eddyCurrentForce.useHeatPort,eddyCurrentForce.useSupport,eddyCurrentForce.v,eddyCurrentForce.v_nominal,eddyCurrentForce.v_normalized,heatCapacitor.C,heatCapacitor.T,heatCapacitor.der_T,heatCapacitor.port.Q_flow,heatCapacitor.port.T,mass.L,mass.a,mass.flange_a.f,mass.flange_a.s,mass.flange_b.f,mass.flange_b.s,mass.m,mass.s,mass.stateSelect,mass.v,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,time