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.001144/0.001144, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001184/0.001184, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001791/0.001791, allocations: 56.03 kB / 307 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1117, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake): time 0.003668/0.1154, allocations: 2.003 MB / 359.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001716/0.1172, allocations: 0.6857 MB / 360.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001712/0.1174, allocations: 7.938 kB / 360.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001806/0.1176, allocations: 19.78 kB / 360.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001395/0.1177, allocations: 47.64 kB / 360.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003894/0.1181, allocations: 47.86 kB / 360.4 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003049/0.1185, allocations: 143.3 kB / 360.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001888/0.1187, allocations: 41.08 kB / 360.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001385/0.1188, allocations: 59.72 kB / 360.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001333/0.1189, allocations: 55.77 kB / 360.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.476e-05/0.119, allocations: 8 kB / 360.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001157/0.1191, allocations: 28 kB / 360.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.588e-05/0.1192, allocations: 31.84 kB / 360.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.314e-05/0.1192, allocations: 59.72 kB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002427/0.1195, allocations: 155.7 kB / 361 MB, free: 10.58 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1195, allocations: 0 / 361 MB, free: 10.58 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1195, allocations: 0 / 361 MB, free: 10.58 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.337e-05/0.1195, allocations: 0 / 361 MB, free: 10.58 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.0007737/0.1203, allocations: 443 kB / 361.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.1204, allocations: 12.03 kB / 361.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.115e-05/0.1204, allocations: 42.69 kB / 361.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001967/0.1206, allocations: 32.73 kB / 361.5 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002091/0.1208, allocations: 203.4 kB / 361.7 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.34e-05/0.1208, allocations: 8.312 kB / 361.7 MB, free: 9.762 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.933e-05/0.1209, allocations: 20.11 kB / 361.7 MB, free: 9.742 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002774/0.1212, allocations: 110.7 kB / 361.8 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.734e-05/0.1212, allocations: 11.98 kB / 361.8 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/0.1212, allocations: 0 / 361.8 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.1212, allocations: 4 kB / 361.8 MB, free: 9.613 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000271/0.1215, allocations: 92.53 kB / 361.9 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009784/0.1225, allocations: 491.3 kB / 362.4 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000346/0.1229, allocations: 122.5 kB / 362.5 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001261/0.123, allocations: 48.83 kB / 362.6 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.397e-05/0.123, allocations: 8 kB / 362.6 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.707e-05/0.1231, allocations: 42.5 kB / 362.6 MB, free: 8.746 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.423e-06/0.1231, allocations: 0 / 362.6 MB, free: 8.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.001026/0.1241, allocations: 481.8 kB / 363.1 MB, free: 8.227 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.001e-05/0.1241, allocations: 51.41 kB / 363.1 MB, free: 8.164 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.1242, allocations: 136.6 kB / 363.3 MB, free: 8.023 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.1243, allocations: 25.7 kB / 363.3 MB, free: 7.992 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.964e-05/0.1243, allocations: 116.2 kB / 363.4 MB, free: 7.875 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.764e-05/0.1244, allocations: 43.3 kB / 363.4 MB, free: 7.832 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.604e-05/0.1244, allocations: 41.61 kB / 363.5 MB, free: 7.785 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.652e-05/0.1245, allocations: 318.8 kB / 363.8 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001677/0.1247, allocations: 47.97 kB / 363.8 MB, free: 7.418 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001779/0.1249, allocations: 75.33 kB / 363.9 MB, free: 7.332 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002559/0.1252, allocations: 127.4 kB / 364 MB, free: 7.195 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.12e-07/0.1252, allocations: 0 / 364 MB, free: 7.195 MB / 302.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00034/0.1255, allocations: 169.4 kB / 364.2 MB, free: 7.023 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.1256, allocations: 4 kB / 364.2 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.1256, allocations: 0 / 364.2 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.1256, allocations: 4 kB / 364.2 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001709/0.1258, allocations: 35.97 kB / 364.2 MB, free: 6.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.1258, allocations: 8 kB / 364.3 MB, free: 6.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.513e-05/0.1259, allocations: 11.98 kB / 364.3 MB, free: 6.961 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.1259, allocations: 8 kB / 364.3 MB, free: 6.953 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.67e-05/0.126, allocations: 121.8 kB / 364.4 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.989e-05/0.126, allocations: 19.75 kB / 364.4 MB, free: 6.805 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.192e-05/0.1261, allocations: 12.84 kB / 364.4 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.1261, allocations: 4 kB / 364.4 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.1261, allocations: 3.938 kB / 364.4 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.1261, allocations: 3.984 kB / 364.4 MB, free: 6.781 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006568/0.1268, allocations: 475.9 kB / 364.9 MB, free: 6.254 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.1268, allocations: 4 kB / 364.9 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002592/0.1271, allocations: 31.98 kB / 364.9 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.1271, allocations: 4 kB / 364.9 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.1271, allocations: 4.062 kB / 364.9 MB, free: 6.211 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.1271, allocations: 0 / 364.9 MB, free: 6.211 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1271, allocations: 4 kB / 365 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004911/0.1276, allocations: 316.4 kB / 365.3 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.303e-05/0.1277, allocations: 85.05 kB / 365.3 MB, free: 5.777 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.253e-05/0.1277, allocations: 4 kB / 365.3 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001278/0.1278, allocations: 8 kB / 365.4 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.545e-05/0.1279, allocations: 7.984 kB / 365.4 MB, free: 5.758 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.965e-06/0.1279, allocations: 4 kB / 365.4 MB, free: 5.754 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.679e-05/0.128, allocations: 109.8 kB / 365.5 MB, free: 5.648 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.128, allocations: 0 / 365.5 MB, free: 5.648 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002629/0.1282, allocations: 31.94 kB / 365.5 MB, free: 5.617 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.0007191/0.129, allocations: 0.8307 MB / 366.3 MB, free: 4.754 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004272/0.1294, allocations: 127.9 kB / 366.5 MB, free: 4.629 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.1294, allocations: 0 / 366.5 MB, free: 4.629 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000137/0.1296, allocations: 55.91 kB / 366.5 MB, free: 4.574 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003611/0.1299, allocations: 28.14 kB / 366.5 MB, free: 4.547 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002444/0.1324, allocations: 1.981 MB / 368.5 MB, free: 2.445 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000247/0.1326, allocations: 0.708 MB / 369.2 MB, free: 1.711 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.364e-05/0.1327, allocations: 20.42 kB / 369.3 MB, free: 1.691 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.607e-05/0.1328, allocations: 31.44 kB / 369.3 MB, free: 1.66 MB / 302.1 MB Notification: Performance of SimCode: time 1.864e-06/0.1328, allocations: 0 / 369.3 MB, free: 1.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2738/0.4066, allocations: 2.958 MB / 372.2 MB, free: 19.99 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.411/8.818, allocations: 13.14 kB / 372.3 MB, free: 19.99 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