Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001047/0.001046, allocations: 99.92 kB / 16.5 MB, free: 6.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009911/0.0009912, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.241/1.241, allocations: 222.9 MB / 241.1 MB, free: 15.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001013/0.001013, allocations: 47.36 kB / 300.1 MB, free: 6.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0807/0.08172, allocations: 49.45 MB / 349.5 MB, free: 4.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake): time 0.002614/0.08437, allocations: 1.832 MB / 351.3 MB, free: 2.895 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008175/0.0852, allocations: 0.6348 MB / 352 MB, free: 2.254 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.191e-05/0.08528, allocations: 4 kB / 352 MB, free: 2.25 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.908e-05/0.08539, allocations: 11.92 kB / 352 MB, free: 2.238 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.451e-05/0.08546, allocations: 35.7 kB / 352 MB, free: 2.203 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001657/0.08563, allocations: 43.88 kB / 352.1 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001321/0.08577, allocations: 119.4 kB / 352.2 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.647e-05/0.08587, allocations: 25.39 kB / 352.2 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.937e-05/0.08593, allocations: 43.8 kB / 352.3 MB, free: 1.969 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.297e-05/0.08601, allocations: 39.84 kB / 352.3 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.522e-05/0.08603, allocations: 4 kB / 352.3 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.261e-05/0.08611, allocations: 31.97 kB / 352.3 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.999e-05/0.08613, allocations: 15.92 kB / 352.3 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.105e-05/0.08619, allocations: 51.73 kB / 352.4 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000157/0.08635, allocations: 119.9 kB / 352.5 MB, free: 1.711 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.08636, allocations: 0 / 352.5 MB, free: 1.711 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.61e-07/0.08637, allocations: 0 / 352.5 MB, free: 1.711 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.086e-06/0.08638, allocations: 0 / 352.5 MB, free: 1.711 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.00049/0.08687, allocations: 407.4 kB / 352.9 MB, free: 1.266 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.08691, allocations: 12.03 kB / 352.9 MB, free: 1.254 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.633e-05/0.08695, allocations: 42.73 kB / 353 MB, free: 1.203 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001656/0.08712, allocations: 28.73 kB / 353 MB, free: 1.176 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001551/0.08729, allocations: 200.1 kB / 353.2 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.804e-06/0.0873, allocations: 4.562 kB / 353.2 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.914e-05/0.08734, allocations: 16.12 kB / 353.2 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001612/0.0875, allocations: 89.66 kB / 353.3 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.08752, allocations: 0 / 353.3 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.08753, allocations: 0 / 353.3 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.237e-06/0.08755, allocations: 8 kB / 353.3 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001275/0.08768, allocations: 71.83 kB / 353.4 MB, free: 0.75 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005735/0.08826, allocations: 443.6 kB / 353.8 MB, free: 264 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002437/0.08851, allocations: 106.5 kB / 353.9 MB, free: 148 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.229e-05/0.08858, allocations: 40.84 kB / 354 MB, free: 104 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.038e-05/0.0886, allocations: 0 / 354 MB, free: 104 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.538e-05/0.08862, allocations: 30.56 kB / 354 MB, free: 64 kB / 286.1 MB Notification: Performance of pre-optimization done (n=11): time 9.92e-07/0.08863, allocations: 4 kB / 354 MB, free: 60 kB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.001232/0.08986, allocations: 0.5306 MB / 354.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.096e-05/0.08991, allocations: 55.41 kB / 354.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.728e-05/0.08999, allocations: 132.6 kB / 354.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.262e-05/0.09001, allocations: 29.7 kB / 354.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.521e-05/0.09007, allocations: 111.7 kB / 354.8 MB, free: 15.1 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.839e-05/0.0901, allocations: 39.45 kB / 354.9 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.457e-05/0.09015, allocations: 29.72 kB / 354.9 MB, free: 15.03 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.899e-05/0.09025, allocations: 318.8 kB / 355.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.335e-05/0.0903, allocations: 31.89 kB / 355.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.767e-05/0.09038, allocations: 55.42 kB / 355.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001222/0.09051, allocations: 99.36 kB / 355.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-06/0.09051, allocations: 0 / 355.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001865/0.0907, allocations: 137.4 kB / 355.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.09072, allocations: 6.344 kB / 355.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.09074, allocations: 8 kB / 355.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.638e-06/0.09075, allocations: 64 / 355.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001294/0.09088, allocations: 35.92 kB / 355.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.878e-06/0.0909, allocations: 7.938 kB / 355.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.36e-05/0.09097, allocations: 4 kB / 355.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.999e-06/0.09099, allocations: 8 kB / 355.6 MB, free: 14.29 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 (17): * Single equations (assignments): 17 * 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.962e-05/0.09107, allocations: 125.7 kB / 355.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.007e-05/0.09111, allocations: 7.906 kB / 355.7 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.895e-05/0.09115, allocations: 16.36 kB / 355.7 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.09116, allocations: 4 kB / 355.8 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.09117, allocations: 7.938 kB / 355.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.09117, allocations: 0 / 355.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004795/0.09166, allocations: 420.1 kB / 356.2 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.09167, allocations: 0 / 356.2 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001466/0.09182, allocations: 27.98 kB / 356.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.09184, allocations: 3.938 kB / 356.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.09185, allocations: 12.09 kB / 356.2 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.09186, allocations: 3.938 kB / 356.2 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.09187, allocations: 0 / 356.2 MB, free: 13.6 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002546/0.09213, allocations: 253 kB / 356.5 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.197e-05/0.09218, allocations: 88.95 kB / 356.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.808e-05/0.0922, allocations: 0 / 356.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.219e-05/0.0923, allocations: 12 kB / 356.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.091e-05/0.09233, allocations: 8.031 kB / 356.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.742e-06/0.09234, allocations: 4 kB / 356.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.659e-05/0.09239, allocations: 91.27 kB / 356.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09239, allocations: 0 / 356.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000249/0.09265, allocations: 28 kB / 356.7 MB, free: 13.09 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 (12): * Single equations (assignments): 12 * 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.0004453/0.0931, allocations: 0.7888 MB / 357.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001537/0.09326, allocations: 87.94 kB / 357.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.09327, allocations: 0 / 357.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.665e-05/0.09333, allocations: 43.92 kB / 357.6 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003561/0.0937, allocations: 16.25 kB / 357.6 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/0.0954, allocations: 1.844 MB / 359.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002307/0.09564, allocations: 0.7082 MB / 360.2 MB, free: 9.441 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.812e-05/0.09571, allocations: 4.891 kB / 360.2 MB, free: 9.438 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.639e-05/0.09577, allocations: 31.42 kB / 360.2 MB, free: 9.406 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.09577, allocations: 0 / 360.2 MB, free: 9.406 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3106/0.4064, allocations: 2.38 MB / 362.6 MB, free: 7.148 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002679/0.4067, allocations: 213.6 kB / 362.8 MB, free: 6.895 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.952/2.359, allocations: 0 / 362.8 MB, free: 6.895 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_EddyCurrentBrake.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches