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.001074/0.001074, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001397/0.001397, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 55.66 kB / 307 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08395/0.08515, allocations: 50.53 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.003228/0.08841, allocations: 1.972 MB / 359.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001071/0.08951, allocations: 0.7051 MB / 360.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001175/0.08965, allocations: 0 / 360.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001755/0.08988, allocations: 19.8 kB / 360.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001025/0.08999, allocations: 35.64 kB / 360.3 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000294/0.09029, allocations: 55.8 kB / 360.4 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002145/0.09052, allocations: 147.3 kB / 360.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.09067, allocations: 41.03 kB / 360.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001172/0.09079, allocations: 55.78 kB / 360.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001121/0.09092, allocations: 51.77 kB / 360.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.523e-05/0.09095, allocations: 12 kB / 360.7 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001042/0.09106, allocations: 27.98 kB / 360.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.88e-05/0.0911, allocations: 27.86 kB / 360.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.639e-05/0.09117, allocations: 59.67 kB / 360.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002252/0.0914, allocations: 155.8 kB / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.09141, allocations: 0 / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.09142, allocations: 0 / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.09143, allocations: 0 / 360.9 MB, free: 10.66 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.0006556/0.09209, allocations: 439 kB / 361.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.09214, allocations: 12.03 kB / 361.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.876e-05/0.09219, allocations: 38.75 kB / 361.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001882/0.09239, allocations: 28.73 kB / 361.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001936/0.09259, allocations: 200.1 kB / 361.6 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/0.09262, allocations: 4.375 kB / 361.6 MB, free: 9.855 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.097e-05/0.09265, allocations: 20.12 kB / 361.7 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002733/0.09293, allocations: 118.7 kB / 361.8 MB, free: 9.715 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/0.09296, allocations: 3.906 kB / 361.8 MB, free: 9.711 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.483e-05/0.09298, allocations: 4 kB / 361.8 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.09299, allocations: 0 / 361.8 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002632/0.09326, allocations: 92.58 kB / 361.9 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008359/0.0941, allocations: 0.5205 MB / 362.4 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003294/0.09445, allocations: 102.6 kB / 362.5 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001231/0.09458, allocations: 44.81 kB / 362.5 MB, free: 8.875 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.086e-05/0.0946, allocations: 0 / 362.5 MB, free: 8.875 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/0.09464, allocations: 46.69 kB / 362.6 MB, free: 8.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.052e-06/0.09465, allocations: 0 / 362.6 MB, free: 8.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004589/0.09511, allocations: 145.5 kB / 362.7 MB, free: 8.672 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.657e-05/0.09516, allocations: 51.78 kB / 362.8 MB, free: 8.609 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.963e-05/0.09526, allocations: 140.7 kB / 362.9 MB, free: 8.465 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.584e-05/0.09529, allocations: 25.7 kB / 362.9 MB, free: 8.434 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.316e-05/0.09535, allocations: 112.2 kB / 363 MB, free: 8.316 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.048e-05/0.09539, allocations: 43.33 kB / 363.1 MB, free: 8.273 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.873e-05/0.09545, allocations: 29.7 kB / 363.1 MB, free: 8.238 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.09555, allocations: 318.8 kB / 363.4 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001202/0.09568, allocations: 39.97 kB / 363.5 MB, free: 7.879 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001274/0.09582, allocations: 67.34 kB / 363.5 MB, free: 7.801 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002452/0.09607, allocations: 111.3 kB / 363.6 MB, free: 7.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.09608, allocations: 0 / 363.6 MB, free: 7.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003108/0.0964, allocations: 145.4 kB / 363.8 MB, free: 7.531 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.09642, allocations: 8 kB / 363.8 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.09643, allocations: 0 / 363.8 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.09645, allocations: 0 / 363.8 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001616/0.09662, allocations: 44.02 kB / 363.8 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.09664, allocations: 0 / 363.8 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.46e-05/0.09674, allocations: 15.89 kB / 363.9 MB, free: 7.465 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.708e-06/0.09675, allocations: 0 / 363.9 MB, free: 7.465 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.817e-05/0.09685, allocations: 137.6 kB / 364 MB, free: 7.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.267e-05/0.09689, allocations: 7.906 kB / 364 MB, free: 7.312 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.948e-05/0.09693, allocations: 16.7 kB / 364 MB, free: 7.297 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.09694, allocations: 4 kB / 364 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.09695, allocations: 4 kB / 364 MB, free: 7.289 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.09696, allocations: 0 / 364 MB, free: 7.289 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002163/0.09718, allocations: 217.5 kB / 364.2 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.09719, allocations: 0 / 364.2 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001698/0.09737, allocations: 27.98 kB / 364.3 MB, free: 7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.045e-06/0.09739, allocations: 0 / 364.3 MB, free: 7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/0.0974, allocations: 4 kB / 364.3 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.09741, allocations: 4 kB / 364.3 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.09742, allocations: 0 / 364.3 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004628/0.09789, allocations: 259.2 kB / 364.5 MB, free: 6.723 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.021e-05/0.09795, allocations: 85.02 kB / 364.6 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.493e-05/0.09798, allocations: 4 kB / 364.6 MB, free: 6.617 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001116/0.0981, allocations: 8.031 kB / 364.6 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.706e-05/0.09814, allocations: 4 kB / 364.6 MB, free: 6.605 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-06/0.09816, allocations: 4 kB / 364.6 MB, free: 6.602 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.594e-05/0.09823, allocations: 111.2 kB / 364.7 MB, free: 6.492 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.09824, allocations: 3.938 kB / 364.7 MB, free: 6.488 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002613/0.0985, allocations: 28 kB / 364.8 MB, free: 6.461 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.0006818/0.09919, allocations: 0.7903 MB / 365.6 MB, free: 5.641 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002967/0.0995, allocations: 91.89 kB / 365.6 MB, free: 5.551 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.09951, allocations: 0 / 365.6 MB, free: 5.551 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001191/0.09964, allocations: 47.91 kB / 365.7 MB, free: 5.504 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003746/0.1, allocations: 30.47 kB / 365.7 MB, free: 5.477 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002393/0.1024, allocations: 1.872 MB / 367.6 MB, free: 3.504 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/0.1028, allocations: 0.7119 MB / 368.3 MB, free: 2.766 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.542e-05/0.1029, allocations: 8.547 kB / 368.3 MB, free: 2.758 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.737e-05/0.103, allocations: 35.7 kB / 368.3 MB, free: 2.723 MB / 302.1 MB Notification: Performance of SimCode: time 8.42e-07/0.103, allocations: 0 / 368.3 MB, free: 2.723 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02208/0.1251, allocations: 2.659 MB / 371 MB, free: 160 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.18/10.3, allocations: 6.859 kB / 371 MB, free: 156 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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) "" Variables in the reference:time,inertia.phi,heatCapacitor.T,eddyCurrentTorque.lossPower Variables in the result:der(eddyCurrentTorque.phi),der(heatCapacitor.T),der(inertia.w),eddyCurrentTorque.T,eddyCurrentTorque.TRef,eddyCurrentTorque.TheatPort,eddyCurrentTorque.alpha20,eddyCurrentTorque.constantExcitation,eddyCurrentTorque.excitation,eddyCurrentTorque.flange.phi,eddyCurrentTorque.flange.tau,eddyCurrentTorque.heatPort.Q_flow,eddyCurrentTorque.heatPort.T,eddyCurrentTorque.lossPower,eddyCurrentTorque.phi,eddyCurrentTorque.tau,eddyCurrentTorque.tau_nominal,eddyCurrentTorque.useExcitationInput,eddyCurrentTorque.useHeatPort,eddyCurrentTorque.useSupport,eddyCurrentTorque.w,eddyCurrentTorque.w_nominal,eddyCurrentTorque.w_normalized,heatCapacitor.C,heatCapacitor.T,heatCapacitor.der_T,heatCapacitor.port.Q_flow,heatCapacitor.port.T,inertia.J,inertia.a,inertia.flange_a.phi,inertia.flange_a.tau,inertia.flange_b.phi,inertia.flange_b.tau,inertia.phi,inertia.stateSelect,inertia.w,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,time