Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.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: translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding.i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding.i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001735/0.001735, allocations: 103.7 kB / 17.71 MB, free: 5.367 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.001998/0.001998, allocations: 191 kB / 18.64 MB, free: 4.445 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.345/1.345, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 51.92 kB / 351.9 MB, free: 3.297 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.2933, allocations: 49.44 MB / 401.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004828/0.2982, allocations: 2.811 MB / 404.2 MB, free: 6.074 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002143/0.3004, allocations: 1.234 MB / 405.4 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001938/0.3006, allocations: 0 / 405.4 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002899/0.3009, allocations: 75.36 kB / 405.5 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005537/0.3015, allocations: 226.7 kB / 405.7 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002674/0.3018, allocations: 111.8 kB / 405.8 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004455/0.3022, allocations: 470.9 kB / 406.3 MB, free: 3.965 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001899/0.3024, allocations: 89.98 kB / 406.4 MB, free: 3.875 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002358/0.3027, allocations: 175.5 kB / 406.5 MB, free: 3.703 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003021/0.303, allocations: 223.2 kB / 406.7 MB, free: 3.484 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.769e-05/0.3031, allocations: 43.94 kB / 406.8 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002863/0.3034, allocations: 159.9 kB / 406.9 MB, free: 3.285 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.94e-05/0.3035, allocations: 91.72 kB / 407 MB, free: 3.195 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000175/0.3036, allocations: 187.1 kB / 407.2 MB, free: 3.012 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000565/0.3042, allocations: 0.5059 MB / 407.7 MB, free: 2.508 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3042, allocations: 4 kB / 407.7 MB, free: 2.504 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3042, allocations: 0 / 407.7 MB, free: 2.504 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.3042, allocations: 3.938 kB / 407.7 MB, free: 2.5 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001597/0.3059, allocations: 0.6977 MB / 408.4 MB, free: 1.754 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.3059, allocations: 8.031 kB / 408.4 MB, free: 1.746 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.602e-05/0.306, allocations: 40.56 kB / 408.5 MB, free: 1.707 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004967/0.3065, allocations: 329.2 kB / 408.8 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.688e-05/0.3066, allocations: 54.83 kB / 408.9 MB, free: 1.281 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001597/0.3068, allocations: 36.48 kB / 408.9 MB, free: 1.246 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006318/0.3074, allocations: 324.5 kB / 409.2 MB, free: 0.918 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.3074, allocations: 0 / 409.2 MB, free: 0.918 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.497e-05/0.3075, allocations: 12 kB / 409.2 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.3075, allocations: 4 kB / 409.2 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006523/0.3081, allocations: 302 kB / 409.5 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001729/0.3099, allocations: 1.164 MB / 410.7 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006037/0.3105, allocations: 297 kB / 411 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003159/0.3108, allocations: 161.6 kB / 411.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.01e-05/0.3109, allocations: 8 kB / 411.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.25e-05/0.3109, allocations: 50.47 kB / 411.2 MB, free: 14.83 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.593e-06/0.3109, allocations: 0 / 411.2 MB, free: 14.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.009082/0.32, allocations: 2.401 MB / 413.6 MB, free: 12.35 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.63e-05/0.3201, allocations: 81.11 kB / 413.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003526/0.3205, allocations: 289 kB / 413.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.049e-05/0.3205, allocations: 29.7 kB / 414 MB, free: 11.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.3206, allocations: 176.3 kB / 414.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.3207, allocations: 141.9 kB / 414.3 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001415/0.3209, allocations: 86.09 kB / 414.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.321, allocations: 342.8 kB / 414.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003775/0.3214, allocations: 156.8 kB / 414.9 MB, free: 11.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004129/0.3218, allocations: 234.6 kB / 415.1 MB, free: 10.78 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008035/0.3226, allocations: 407.5 kB / 415.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3226, allocations: 0 / 415.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000999/0.3237, allocations: 488.4 kB / 416 MB, free: 9.875 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.3237, allocations: 8 kB / 416 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.3237, allocations: 0 / 416 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.3237, allocations: 7.938 kB / 416 MB, free: 9.859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005896/0.3243, allocations: 119.8 kB / 416.1 MB, free: 9.742 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.3243, allocations: 4 kB / 416.1 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003683/0.3247, allocations: 36.02 kB / 416.1 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.751e-05/0.3248, allocations: 19.98 kB / 416.2 MB, free: 9.684 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * 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.0001808/0.3249, allocations: 157.6 kB / 416.3 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.189e-05/0.325, allocations: 31.62 kB / 416.3 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001793/0.3268, allocations: 0.6525 MB / 417 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.3269, allocations: 8 kB / 417 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.3269, allocations: 7.984 kB / 417 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.3269, allocations: 0 / 417 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002998/0.3299, allocations: 1.279 MB / 418.3 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.3299, allocations: 0 / 418.3 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004416/0.3304, allocations: 91.88 kB / 418.4 MB, free: 7.383 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001526/0.3319, allocations: 268.6 kB / 418.6 MB, free: 7.117 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.917e-05/0.332, allocations: 15.98 kB / 418.7 MB, free: 7.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003867/0.3358, allocations: 2.443 MB / 421.1 MB, free: 4.516 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3359, allocations: 0 / 421.1 MB, free: 4.516 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002297/0.3382, allocations: 1.004 MB / 422.1 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002074/0.3384, allocations: 152.6 kB / 422.2 MB, free: 3.324 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.446e-05/0.3385, allocations: 12 kB / 422.3 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004739/0.3389, allocations: 23.92 kB / 422.3 MB, free: 3.289 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.3391, allocations: 44.31 kB / 422.3 MB, free: 3.246 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.595e-05/0.3391, allocations: 12 kB / 422.3 MB, free: 3.234 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002262/0.3393, allocations: 216.5 kB / 422.5 MB, free: 3.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3394, allocations: 0 / 422.5 MB, free: 3.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005793/0.3399, allocations: 116 kB / 422.7 MB, free: 2.906 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (winding.i,core.Hstat,core.B,core.MagRel) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002845/0.3402, allocations: 139.3 kB / 422.8 MB, free: 2.762 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001024/0.3413, allocations: 433.9 kB / 423.2 MB, free: 2.34 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3413, allocations: 0 / 423.2 MB, free: 2.34 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007241/0.342, allocations: 389.3 kB / 423.6 MB, free: 1.949 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005325/0.3426, allocations: 34.3 kB / 423.6 MB, free: 1.918 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001853/0.3444, allocations: 0.9961 MB / 424.6 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003692/0.3448, allocations: 0.7852 MB / 425.4 MB, free: 68 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001619/0.345, allocations: 47.41 kB / 425.5 MB, free: 20 kB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.345, allocations: 0 / 425.5 MB, free: 20 kB / 334.1 MB Notification: Performance of Templates: time 0.009545/0.3545, allocations: 5.701 MB / 431.2 MB, free: 10.33 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches