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.00106/0.00106, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001103/0.001103, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.294/1.294, allocations: 227.4 MB / 246.3 MB, free: 9.035 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 64.45 kB / 306.4 MB, free: 0.707 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08764/0.08895, allocations: 50.53 MB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake): time 0.003023/0.092, allocations: 2.064 MB / 358.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001001/0.09303, allocations: 0.6897 MB / 359.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.078e-05/0.09315, allocations: 4 kB / 359.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001031/0.09326, allocations: 11.86 kB / 359.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.636e-05/0.09334, allocations: 31.7 kB / 359.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002033/0.09356, allocations: 51.88 kB / 359.7 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001815/0.09375, allocations: 143.3 kB / 359.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001133/0.09387, allocations: 37.08 kB / 359.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.128e-05/0.09396, allocations: 47.78 kB / 360 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.342e-05/0.09405, allocations: 59.7 kB / 360 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.144e-05/0.09407, allocations: 8 kB / 360 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.139e-05/0.09416, allocations: 23.98 kB / 360 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.249e-05/0.09419, allocations: 15.92 kB / 360.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.898e-05/0.09426, allocations: 63.67 kB / 360.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001804/0.09444, allocations: 147.8 kB / 360.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.09445, allocations: 0 / 360.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.09446, allocations: 0 / 360.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.877e-06/0.09447, allocations: 0 / 360.3 MB, free: 10.77 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.0005932/0.09507, allocations: 439 kB / 360.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.09511, allocations: 16.03 kB / 360.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.833e-05/0.09515, allocations: 46.69 kB / 360.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001749/0.09533, allocations: 36.66 kB / 360.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001731/0.09552, allocations: 196.1 kB / 361 MB, free: 9.957 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.388e-05/0.09554, allocations: 8.375 kB / 361 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.257e-05/0.09558, allocations: 12.12 kB / 361 MB, free: 9.938 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002672/0.09585, allocations: 118.7 kB / 361.1 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.09587, allocations: 4 kB / 361.1 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.09589, allocations: 8 kB / 361.1 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.186e-06/0.0959, allocations: 4 kB / 361.1 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002522/0.09616, allocations: 84.59 kB / 361.2 MB, free: 9.719 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007392/0.09691, allocations: 499.3 kB / 361.7 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003208/0.09724, allocations: 122.5 kB / 361.8 MB, free: 9.043 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/0.09737, allocations: 52.83 kB / 361.9 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.472e-05/0.0974, allocations: 4 kB / 361.9 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.942e-05/0.09742, allocations: 38.5 kB / 361.9 MB, free: 8.938 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.262e-06/0.09743, allocations: 0 / 361.9 MB, free: 8.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0009324/0.09836, allocations: 473.9 kB / 362.4 MB, free: 8.422 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.986e-05/0.0984, allocations: 55.41 kB / 362.4 MB, free: 8.355 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.832e-05/0.0985, allocations: 134.2 kB / 362.6 MB, free: 8.215 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/0.09852, allocations: 25.7 kB / 362.6 MB, free: 8.184 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.592e-05/0.09858, allocations: 116.2 kB / 362.7 MB, free: 8.066 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.228e-05/0.09862, allocations: 43.3 kB / 362.7 MB, free: 8.023 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.413e-05/0.09868, allocations: 41.61 kB / 362.8 MB, free: 7.977 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.0988, allocations: 318.8 kB / 363.1 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001281/0.09894, allocations: 43.97 kB / 363.1 MB, free: 7.613 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001329/0.09908, allocations: 75.41 kB / 363.2 MB, free: 7.527 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002489/0.09933, allocations: 131.3 kB / 363.3 MB, free: 7.387 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.09934, allocations: 4 kB / 363.3 MB, free: 7.383 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003219/0.09967, allocations: 165.4 kB / 363.5 MB, free: 7.215 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.09969, allocations: 6.969 kB / 363.5 MB, free: 7.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.127e-06/0.0997, allocations: 0 / 363.5 MB, free: 7.211 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.09972, allocations: 4 kB / 363.5 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001696/0.09989, allocations: 35.97 kB / 363.6 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.09991, allocations: 4 kB / 363.6 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.1, allocations: 16.05 kB / 363.6 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.201e-05/0.1, allocations: 4 kB / 363.6 MB, free: 7.148 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 8.293e-05/0.1001, allocations: 129.7 kB / 363.7 MB, free: 7.012 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.747e-05/0.1002, allocations: 19.75 kB / 363.7 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.119e-05/0.1002, allocations: 20.78 kB / 363.7 MB, free: 6.973 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1002, allocations: 3.984 kB / 363.7 MB, free: 6.969 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1002, allocations: 3.938 kB / 363.8 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.1002, allocations: 0 / 363.8 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006227/0.1009, allocations: 476.1 kB / 364.2 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.748e-06/0.1009, allocations: 0 / 364.2 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001849/0.1011, allocations: 35.92 kB / 364.3 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.1011, allocations: 0 / 364.3 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.1011, allocations: 0 / 364.3 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.1011, allocations: 8.062 kB / 364.3 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1011, allocations: 0 / 364.3 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004554/0.1016, allocations: 316.4 kB / 364.6 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.798e-05/0.1016, allocations: 85.02 kB / 364.7 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.206e-05/0.1016, allocations: 7.938 kB / 364.7 MB, free: 5.957 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001275/0.1018, allocations: 11.98 kB / 364.7 MB, free: 5.945 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.743e-05/0.1018, allocations: 8 kB / 364.7 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.226e-06/0.1018, allocations: 3.984 kB / 364.7 MB, free: 5.934 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.873e-05/0.1019, allocations: 106.4 kB / 364.8 MB, free: 5.832 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1019, allocations: 0 / 364.8 MB, free: 5.832 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002477/0.1022, allocations: 31.94 kB / 364.8 MB, free: 5.801 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.0006834/0.1028, allocations: 0.8233 MB / 365.6 MB, free: 4.941 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002841/0.1031, allocations: 119.9 kB / 365.8 MB, free: 4.824 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.1032, allocations: 0 / 365.8 MB, free: 4.824 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001291/0.1033, allocations: 56.78 kB / 365.8 MB, free: 4.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000357/0.1037, allocations: 23.98 kB / 365.8 MB, free: 4.746 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002091/0.1058, allocations: 2.025 MB / 367.9 MB, free: 2.605 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002191/0.106, allocations: 0.7121 MB / 368.6 MB, free: 1.867 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.38e-05/0.1061, allocations: 16.42 kB / 368.6 MB, free: 1.852 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.028e-05/0.1061, allocations: 43.42 kB / 368.6 MB, free: 1.809 MB / 302.1 MB Notification: Performance of SimCode: time 1.523e-06/0.1061, allocations: 0 / 368.6 MB, free: 1.809 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.241/1.347, allocations: 2.73 MB / 371.4 MB, free: 19.72 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001589/1.347, allocations: 211.5 kB / 371.6 MB, free: 19.46 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.287/3.634, allocations: 0.5938 kB / 371.6 MB, free: 19.46 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