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.0008183/0.0008183, allocations: 96.02 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009477/0.0009477, allocations: 201.8 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.164/1.164, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002045/0.0002045, allocations: 8 kB / 307.8 MB, free: 0.7188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07532/0.07554, allocations: 51.52 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.001721/0.0773, allocations: 1.69 MB / 361 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008181/0.07813, allocations: 0.6819 MB / 361.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.959e-05/0.0782, allocations: 7.938 kB / 361.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.433e-05/0.07829, allocations: 15.92 kB / 361.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.721e-05/0.07837, allocations: 35.69 kB / 361.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001647/0.07854, allocations: 39.89 kB / 361.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001348/0.07868, allocations: 135.3 kB / 362 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001054/0.07879, allocations: 33.08 kB / 362 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.581e-05/0.07887, allocations: 55.72 kB / 362 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.391e-05/0.07895, allocations: 51.78 kB / 362.1 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.641e-05/0.07897, allocations: 4 kB / 362.1 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.31e-05/0.07905, allocations: 23.98 kB / 362.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.204e-05/0.07908, allocations: 19.92 kB / 362.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.614e-05/0.07915, allocations: 81.38 kB / 362.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001535/0.07931, allocations: 135.8 kB / 362.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.07932, allocations: 0 / 362.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.07933, allocations: 3.938 kB / 362.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.07934, allocations: 0 / 362.4 MB, free: 10.17 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.0004848/0.07983, allocations: 437.4 kB / 362.8 MB, free: 9.699 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.07986, allocations: 8.031 kB / 362.8 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.586e-05/0.07991, allocations: 42.75 kB / 362.8 MB, free: 9.641 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001566/0.08007, allocations: 28.83 kB / 362.9 MB, free: 9.613 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000154/0.08023, allocations: 208 kB / 363.1 MB, free: 9.371 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.08025, allocations: 12.36 kB / 363.1 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.694e-05/0.08028, allocations: 16.12 kB / 363.1 MB, free: 9.344 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002447/0.08053, allocations: 114.7 kB / 363.2 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.08055, allocations: 0 / 363.2 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.08057, allocations: 8 kB / 363.2 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-06/0.08058, allocations: 0 / 363.2 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002591/0.08085, allocations: 108.5 kB / 363.3 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000723/0.08158, allocations: 0.5166 MB / 363.8 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002745/0.08186, allocations: 114.5 kB / 363.9 MB, free: 8.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00012/0.08199, allocations: 56.81 kB / 364 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.151e-05/0.08201, allocations: 0 / 364 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.849e-05/0.08204, allocations: 34.56 kB / 364 MB, free: 8.309 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 9.22e-07/0.08204, allocations: 0 / 364 MB, free: 8.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004106/0.08246, allocations: 161.7 kB / 364.2 MB, free: 8.145 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.62e-05/0.08249, allocations: 51.41 kB / 364.2 MB, free: 8.082 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.433e-05/0.08258, allocations: 136.8 kB / 364.4 MB, free: 7.941 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.284e-05/0.0826, allocations: 25.7 kB / 364.4 MB, free: 7.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.391e-05/0.08266, allocations: 120 kB / 364.5 MB, free: 7.785 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.902e-05/0.0827, allocations: 39.48 kB / 364.6 MB, free: 7.746 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.611e-05/0.08273, allocations: 25.64 kB / 364.6 MB, free: 7.715 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.807e-05/0.08281, allocations: 318.8 kB / 364.9 MB, free: 7.395 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.08293, allocations: 39.97 kB / 364.9 MB, free: 7.355 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001324/0.08307, allocations: 71.41 kB / 365 MB, free: 7.273 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002341/0.08331, allocations: 127.3 kB / 365.1 MB, free: 7.137 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.08332, allocations: 0 / 365.1 MB, free: 7.137 MB / 302.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002946/0.08362, allocations: 153.4 kB / 365.3 MB, free: 6.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.08364, allocations: 12.09 kB / 365.3 MB, free: 6.969 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.08365, allocations: 3.984 kB / 365.3 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.256e-06/0.08366, allocations: 0 / 365.3 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000143/0.08381, allocations: 35.92 kB / 365.3 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.08382, allocations: 4.375 kB / 365.3 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.401e-05/0.08392, allocations: 15.89 kB / 365.3 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.898e-06/0.08394, allocations: 8 kB / 365.4 MB, free: 6.902 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 7.179e-05/0.08402, allocations: 125.7 kB / 365.5 MB, free: 6.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.995e-05/0.08405, allocations: 11.84 kB / 365.5 MB, free: 6.758 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.859e-05/0.0841, allocations: 20.7 kB / 365.5 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.0841, allocations: 0 / 365.5 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.08411, allocations: 0 / 365.5 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.08412, allocations: 0 / 365.5 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001886/0.08431, allocations: 217.5 kB / 365.7 MB, free: 6.477 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.08432, allocations: 3.938 kB / 365.7 MB, free: 6.473 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001588/0.08448, allocations: 39.92 kB / 365.8 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.08449, allocations: 0 / 365.8 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.937e-06/0.0845, allocations: 0 / 365.8 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.08451, allocations: 4 kB / 365.8 MB, free: 6.43 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.08452, allocations: 4 kB / 365.8 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004222/0.08495, allocations: 283.2 kB / 366 MB, free: 6.133 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.122e-05/0.08499, allocations: 81.02 kB / 366.1 MB, free: 6.035 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.113e-05/0.08501, allocations: 4 kB / 366.1 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.08513, allocations: 8.031 kB / 366.1 MB, free: 6.023 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.055e-05/0.08516, allocations: 12 kB / 366.2 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-06/0.08518, allocations: 7.984 kB / 366.2 MB, free: 6.004 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.836e-05/0.08523, allocations: 95.27 kB / 366.3 MB, free: 5.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08523, allocations: 0 / 366.3 MB, free: 5.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002302/0.08547, allocations: 28 kB / 366.3 MB, free: 5.883 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.0005951/0.08607, allocations: 0.8098 MB / 367.1 MB, free: 5.043 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002576/0.08634, allocations: 104 kB / 367.2 MB, free: 4.941 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.08635, allocations: 3.938 kB / 367.2 MB, free: 4.938 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001153/0.08647, allocations: 51.97 kB / 367.2 MB, free: 4.887 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000295/0.08677, allocations: 23.67 kB / 367.3 MB, free: 4.867 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001866/0.08865, allocations: 2.016 MB / 369.3 MB, free: 2.754 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001903/0.08885, allocations: 0.7121 MB / 370 MB, free: 2.016 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.446e-05/0.08891, allocations: 8.547 kB / 370 MB, free: 2.008 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.465e-05/0.08897, allocations: 35.42 kB / 370 MB, free: 1.973 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.08897, allocations: 4 kB / 370 MB, free: 1.969 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4741/0.5631, allocations: 2.372 MB / 372.4 MB, free: 18.55 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001437/0.5633, allocations: 206.8 kB / 372.6 MB, free: 18.29 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.835/2.399, allocations: 3.828 kB / 372.6 MB, free: 18.29 MB / 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