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.001426/0.001426, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001705/0.001705, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2568, allocations: 50.55 MB / 408.7 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake): time 0.002985/0.2598, allocations: 2.005 MB / 410.7 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009845/0.2608, allocations: 0.6896 MB / 411.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.794e-05/0.2609, allocations: 8 kB / 411.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001179/0.261, allocations: 15.8 kB / 411.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.692e-05/0.2611, allocations: 43.62 kB / 411.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002896/0.2614, allocations: 51.81 kB / 411.5 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000172/0.2616, allocations: 143.3 kB / 411.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.2617, allocations: 45.08 kB / 411.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.362e-05/0.2618, allocations: 51.8 kB / 411.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.198e-05/0.2619, allocations: 59.7 kB / 411.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.22e-05/0.262, allocations: 12 kB / 411.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.642e-05/0.262, allocations: 27.98 kB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.536e-05/0.2621, allocations: 27.86 kB / 411.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.972e-05/0.2621, allocations: 59.72 kB / 412 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002206/0.2624, allocations: 153.2 kB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2624, allocations: 0 / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2624, allocations: 3.938 kB / 412.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.2624, allocations: 0 / 412.1 MB, free: 14.15 MB / 334.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.0005965/0.263, allocations: 443 kB / 412.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.263, allocations: 8.031 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.183e-05/0.2631, allocations: 46.73 kB / 412.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000168/0.2633, allocations: 28.73 kB / 412.6 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002219/0.2635, allocations: 204.1 kB / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.2635, allocations: 12.38 kB / 412.8 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.385e-05/0.2635, allocations: 16.12 kB / 412.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000259/0.2638, allocations: 117.6 kB / 413 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.2638, allocations: 7.906 kB / 413 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.2639, allocations: 0 / 413 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.2639, allocations: 4 kB / 413 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002645/0.2641, allocations: 103.7 kB / 413.1 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008265/0.265, allocations: 491.3 kB / 413.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003196/0.2653, allocations: 118.5 kB / 413.7 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001232/0.2654, allocations: 52.88 kB / 413.7 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.225e-05/0.2655, allocations: 0 / 413.7 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.311e-05/0.2655, allocations: 42.5 kB / 413.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.152e-06/0.2655, allocations: 0 / 413.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.000961/0.2665, allocations: 477.9 kB / 414.2 MB, free: 11.8 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.946e-05/0.2665, allocations: 55.34 kB / 414.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001495/0.2667, allocations: 140.5 kB / 414.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.2667, allocations: 25.7 kB / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.065e-05/0.2668, allocations: 112.2 kB / 414.6 MB, free: 11.44 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.025e-05/0.2668, allocations: 43.36 kB / 414.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.154e-05/0.2668, allocations: 29.72 kB / 414.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.782e-05/0.267, allocations: 326.8 kB / 415 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001278/0.2671, allocations: 43.97 kB / 415 MB, free: 10.99 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001355/0.2672, allocations: 71.39 kB / 415.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002903/0.2675, allocations: 131.3 kB / 415.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.2675, allocations: 0 / 415.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003211/0.2679, allocations: 165.3 kB / 415.4 MB, free: 10.6 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.2679, allocations: 8 kB / 415.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.067e-06/0.2679, allocations: 0 / 415.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.2679, allocations: 4 kB / 415.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001754/0.2681, allocations: 43.97 kB / 415.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.2681, allocations: 0 / 415.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.411e-05/0.2682, allocations: 8 kB / 415.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.2682, allocations: 8 kB / 415.4 MB, free: 10.53 MB / 334.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.811e-05/0.2683, allocations: 133.6 kB / 415.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.493e-05/0.2684, allocations: 19.83 kB / 415.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.362e-05/0.2684, allocations: 16.84 kB / 415.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.2684, allocations: 4 kB / 415.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.2684, allocations: 4 kB / 415.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.2684, allocations: 0 / 415.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006659/0.2691, allocations: 472.7 kB / 416.1 MB, free: 9.816 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.2691, allocations: 0 / 416.1 MB, free: 9.816 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001911/0.2693, allocations: 39.97 kB / 416.1 MB, free: 9.777 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.2693, allocations: 4.062 kB / 416.1 MB, free: 9.773 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.271e-05/0.2693, allocations: 7.938 kB / 416.1 MB, free: 9.766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.2694, allocations: 0 / 416.1 MB, free: 9.766 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2694, allocations: 0 / 416.1 MB, free: 9.766 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004922/0.2699, allocations: 308.4 kB / 416.4 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.749e-05/0.2699, allocations: 85.02 kB / 416.5 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.183e-05/0.27, allocations: 4 kB / 416.5 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.2701, allocations: 12.03 kB / 416.5 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.985e-05/0.2701, allocations: 7.984 kB / 416.5 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.027e-06/0.2701, allocations: 7.938 kB / 416.5 MB, free: 9.312 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.301e-05/0.2702, allocations: 101.5 kB / 416.6 MB, free: 9.215 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2702, allocations: 4 kB / 416.6 MB, free: 9.211 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002594/0.2705, allocations: 35.94 kB / 416.7 MB, free: 9.176 MB / 334.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.0006992/0.2712, allocations: 0.835 MB / 417.5 MB, free: 8.309 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003029/0.2715, allocations: 116.1 kB / 417.6 MB, free: 8.195 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2715, allocations: 0 / 417.6 MB, free: 8.195 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001415/0.2717, allocations: 59.91 kB / 417.7 MB, free: 8.137 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003161/0.272, allocations: 32.3 kB / 417.7 MB, free: 8.105 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00225/0.2743, allocations: 1.979 MB / 419.7 MB, free: 6.02 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000282/0.2746, allocations: 0.708 MB / 420.4 MB, free: 5.285 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.878e-05/0.2746, allocations: 8.641 kB / 420.4 MB, free: 5.277 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.978e-05/0.2747, allocations: 39.42 kB / 420.4 MB, free: 5.238 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2747, allocations: 0 / 420.4 MB, free: 5.238 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.168/3.442, allocations: 3.056 MB / 423.5 MB, free: 2.305 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.905/12.35, allocations: 6.562 kB / 423.5 MB, free: 2.301 MB / 334.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