Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.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.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_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.001242/0.001242, allocations: 105.5 kB / 17.06 MB, free: 6.016 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.001264/0.001264, allocations: 188 kB / 18 MB, free: 5.102 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.377/1.377, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 43.92 kB / 350.8 MB, free: 3.793 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.2917, allocations: 49.44 MB / 400.2 MB, free: 8.652 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.004225/0.296, allocations: 1.762 MB / 402 MB, free: 7.234 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001339/0.2974, allocations: 0.6349 MB / 402.6 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001382/0.2975, allocations: 0 / 402.6 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001488/0.2977, allocations: 19.86 kB / 402.6 MB, free: 6.574 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000139/0.2979, allocations: 35.64 kB / 402.7 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002993/0.2982, allocations: 47.88 kB / 402.7 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002079/0.2984, allocations: 119.4 kB / 402.8 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001542/0.2986, allocations: 38.91 kB / 402.9 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001051/0.2987, allocations: 43.8 kB / 402.9 MB, free: 6.297 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/0.2988, allocations: 51.78 kB / 403 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.614e-05/0.2988, allocations: 4 kB / 403 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.883e-05/0.2989, allocations: 27.98 kB / 403 MB, free: 6.215 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.024e-05/0.299, allocations: 23.91 kB / 403 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.113e-05/0.299, allocations: 51.73 kB / 403.1 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002595/0.2993, allocations: 119.5 kB / 403.2 MB, free: 6.023 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.2993, allocations: 4 kB / 403.2 MB, free: 6.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2993, allocations: 0 / 403.2 MB, free: 6.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.2994, allocations: 0 / 403.2 MB, free: 6.02 MB / 318.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.0006394/0.3, allocations: 423 kB / 403.6 MB, free: 5.559 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.3001, allocations: 8.031 kB / 403.6 MB, free: 5.551 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.701e-05/0.3001, allocations: 38.75 kB / 403.7 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002482/0.3004, allocations: 24.88 kB / 403.7 MB, free: 5.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003154/0.3007, allocations: 192.2 kB / 403.9 MB, free: 5.254 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.3007, allocations: 4.562 kB / 403.9 MB, free: 5.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.206e-05/0.3008, allocations: 20.08 kB / 403.9 MB, free: 5.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002291/0.301, allocations: 99.28 kB / 404 MB, free: 5.129 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/0.301, allocations: 0 / 404 MB, free: 5.129 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.301, allocations: 0 / 404 MB, free: 5.129 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.168e-06/0.3011, allocations: 4 kB / 404 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001435/0.3012, allocations: 67.89 kB / 404.1 MB, free: 5.059 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008512/0.3021, allocations: 481.3 kB / 404.5 MB, free: 4.527 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002839/0.3024, allocations: 90.52 kB / 404.6 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.151e-05/0.3024, allocations: 28.8 kB / 404.6 MB, free: 4.398 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.928e-06/0.3024, allocations: 48 / 404.6 MB, free: 4.398 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/0.3025, allocations: 38.55 kB / 404.7 MB, free: 4.352 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.122e-06/0.3025, allocations: 0 / 404.7 MB, free: 4.352 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002457/0.3027, allocations: 93.83 kB / 404.8 MB, free: 4.254 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.992e-05/0.3028, allocations: 59.34 kB / 404.8 MB, free: 4.184 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.667e-05/0.3029, allocations: 129.7 kB / 405 MB, free: 4.047 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.66e-05/0.3029, allocations: 25.7 kB / 405 MB, free: 4.016 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.024e-05/0.303, allocations: 111.9 kB / 405.1 MB, free: 3.902 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.838e-05/0.303, allocations: 27.75 kB / 405.1 MB, free: 3.875 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.637e-05/0.3031, allocations: 25.7 kB / 405.1 MB, free: 3.844 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.3032, allocations: 318.8 kB / 405.5 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.69e-05/0.3033, allocations: 19.98 kB / 405.5 MB, free: 3.504 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.903e-05/0.3034, allocations: 55.42 kB / 405.5 MB, free: 3.438 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001086/0.3035, allocations: 75.38 kB / 405.6 MB, free: 3.352 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3035, allocations: 0 / 405.6 MB, free: 3.352 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001978/0.3037, allocations: 117.6 kB / 405.7 MB, free: 3.23 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.525e-05/0.3037, allocations: 8 kB / 405.7 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.3037, allocations: 4.25 kB / 405.7 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.3038, allocations: 0 / 405.7 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/0.3039, allocations: 27.92 kB / 405.8 MB, free: 3.191 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.3039, allocations: 4 kB / 405.8 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.879e-05/0.304, allocations: 7.953 kB / 405.8 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.225e-05/0.304, allocations: 7.984 kB / 405.8 MB, free: 3.172 MB / 318.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 (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 prepare postOptimizeDAE: time 0.0001107/0.3041, allocations: 117.8 kB / 405.9 MB, free: 3.047 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.344e-05/0.3042, allocations: 11.98 kB / 405.9 MB, free: 3.035 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.578e-05/0.3042, allocations: 16.47 kB / 405.9 MB, free: 3.02 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.3042, allocations: 7.875 kB / 405.9 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.3042, allocations: 3.984 kB / 405.9 MB, free: 3.008 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.3042, allocations: 0 / 405.9 MB, free: 3.008 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00026/0.3045, allocations: 201.6 kB / 406.1 MB, free: 2.762 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3045, allocations: 0 / 406.1 MB, free: 2.762 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001275/0.3047, allocations: 19.98 kB / 406.1 MB, free: 2.742 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.3047, allocations: 0 / 406.1 MB, free: 2.742 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.3047, allocations: 4 kB / 406.2 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-06/0.3047, allocations: 7.938 kB / 406.2 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3047, allocations: 4 kB / 406.2 MB, free: 2.727 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003454/0.3051, allocations: 199.4 kB / 406.4 MB, free: 2.516 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.432e-05/0.3051, allocations: 85.06 kB / 406.4 MB, free: 2.414 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.976e-05/0.3051, allocations: 4.047 kB / 406.4 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.846e-05/0.3052, allocations: 11.92 kB / 406.5 MB, free: 2.398 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.451e-05/0.3052, allocations: 4 kB / 406.5 MB, free: 2.395 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.399e-06/0.3053, allocations: 0 / 406.5 MB, free: 2.395 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.089e-05/0.3053, allocations: 99.27 kB / 406.6 MB, free: 2.297 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3053, allocations: 0 / 406.6 MB, free: 2.297 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002646/0.3056, allocations: 27.95 kB / 406.6 MB, free: 2.27 MB / 318.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 (8): * Single equations (assignments): 8 * 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.0006691/0.3063, allocations: 0.7358 MB / 407.3 MB, free: 1.508 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000163/0.3064, allocations: 68.02 kB / 407.4 MB, free: 1.441 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3065, allocations: 4.062 kB / 407.4 MB, free: 1.438 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.182e-05/0.3065, allocations: 28 kB / 407.4 MB, free: 1.41 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003491/0.3069, allocations: 19.86 kB / 407.4 MB, free: 1.391 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001986/0.3089, allocations: 1.727 MB / 409.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003026/0.3092, allocations: 0.7002 MB / 409.9 MB, free: 14.84 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.701e-05/0.3092, allocations: 12.38 kB / 409.9 MB, free: 14.83 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.471e-05/0.3093, allocations: 31.42 kB / 409.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3093, allocations: 0 / 409.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0284/0.3377, allocations: 2.289 MB / 412.2 MB, free: 12.61 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.504/7.842, allocations: 0.7031 kB / 412.2 MB, free: 12.61 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.csv","/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_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches