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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 183.4 kB / 8.135 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.193/1.193, allocations: 221.4 MB / 229.9 MB, free: 3.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008976/0.0008974, allocations: 97.73 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.69e-06/5.71e-06, allocations: 0 / 336.5 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1904/0.1904, allocations: 50.39 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0902/0.2806, allocations: 88.19 MB / 475.1 MB, free: 14.62 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002377/0.2809, allocations: 85.14 kB / 475.2 MB, free: 14.54 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.02819/0.3091, allocations: 9.12 MB / 484.3 MB, free: 5.41 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.439e-05/0.3092, allocations: 4 kB / 484.3 MB, free: 5.406 MB / 362.7 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.0009908/0.3102, allocations: 0.5959 MB / 484.9 MB, free: 4.766 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.3102, allocations: 8.031 kB / 484.9 MB, free: 4.758 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.117e-05/0.3103, allocations: 40.56 kB / 485 MB, free: 4.719 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000456/0.3108, allocations: 316.1 kB / 485.3 MB, free: 4.367 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.219e-05/0.3109, allocations: 42.36 kB / 485.3 MB, free: 4.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001473/0.311, allocations: 31.89 kB / 485.3 MB, free: 4.289 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000435/0.3115, allocations: 241.2 kB / 485.6 MB, free: 4.055 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004106/0.3119, allocations: 260.3 kB / 485.8 MB, free: 3.785 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.3119, allocations: 0 / 485.8 MB, free: 3.785 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.796e-05/0.3119, allocations: 1.25 kB / 485.8 MB, free: 3.785 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-06/0.3119, allocations: 8 kB / 485.8 MB, free: 3.777 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/0.3136, allocations: 1.116 MB / 487 MB, free: 2.594 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000284/0.3139, allocations: 191.2 kB / 487.1 MB, free: 2.395 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002041/0.3141, allocations: 133.6 kB / 487.3 MB, free: 2.258 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.409e-05/0.3141, allocations: 4 kB / 487.3 MB, free: 2.254 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.392e-05/0.3141, allocations: 42.47 kB / 487.3 MB, free: 2.203 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.513e-06/0.3141, allocations: 0 / 487.3 MB, free: 2.203 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.007626/0.3218, allocations: 1.905 MB / 489.2 MB, free: 248 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/0.3218, allocations: 89.05 kB / 489.3 MB, free: 140 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003168/0.3222, allocations: 256 kB / 489.6 MB, free: 15.88 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.255e-05/0.3222, allocations: 25.7 kB / 489.6 MB, free: 15.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.746e-05/0.3223, allocations: 136.5 kB / 489.7 MB, free: 15.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.936e-05/0.3224, allocations: 145.8 kB / 489.9 MB, free: 15.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.603e-05/0.3224, allocations: 4 kB / 489.9 MB, free: 15.56 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.3225, allocations: 334.8 kB / 490.2 MB, free: 15.22 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002386/0.3228, allocations: 132.9 kB / 490.3 MB, free: 15.09 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000261/0.323, allocations: 193 kB / 490.5 MB, free: 14.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002635/0.3233, allocations: 149.6 kB / 490.7 MB, free: 14.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.3233, allocations: 0 / 490.7 MB, free: 14.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.006491/0.3298, allocations: 1.454 MB / 492.1 MB, free: 13.28 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.3298, allocations: 4 kB / 492.1 MB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.3299, allocations: 4 kB / 492.1 MB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006161/0.336, allocations: 1.045 MB / 493.2 MB, free: 12.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003368/0.3364, allocations: 63.91 kB / 493.2 MB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01055/0.3469, allocations: 4.207 MB / 497.4 MB, free: 7.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004949/0.3475, allocations: 35.95 kB / 497.5 MB, free: 7.805 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.363e-05/0.3475, allocations: 15.98 kB / 497.5 MB, free: 7.789 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: core.Hstat:VARIABLE(unit = "A/m" ) "Static (ferromagnetic) portion of the magnetic field strength" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 20} Notification: Performance of prepare postOptimizeDAE: time 0.0001727/0.3477, allocations: 113.4 kB / 497.6 MB, free: 7.672 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.853e-05/0.3478, allocations: 31.62 kB / 497.6 MB, free: 7.641 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001523/0.3493, allocations: 0.5618 MB / 498.2 MB, free: 7.074 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.3493, allocations: 4 kB / 498.2 MB, free: 7.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.3494, allocations: 0 / 498.2 MB, free: 7.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.3494, allocations: 7.984 kB / 498.2 MB, free: 7.062 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002906/0.3523, allocations: 1.142 MB / 499.3 MB, free: 5.871 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.3523, allocations: 0 / 499.3 MB, free: 5.871 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005117/0.3528, allocations: 95.88 kB / 499.4 MB, free: 5.777 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001544/0.3544, allocations: 260.5 kB / 499.7 MB, free: 5.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.964e-05/0.3544, allocations: 4 kB / 499.7 MB, free: 5.516 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003212/0.3576, allocations: 2.049 MB / 0.49 GB, free: 3.344 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.3577, allocations: 0 / 0.49 GB, free: 3.344 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001831/0.3595, allocations: 0.9064 MB / 0.4909 GB, free: 2.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001683/0.3597, allocations: 148.7 kB / 0.491 GB, free: 2.246 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.75e-05/0.3598, allocations: 0 / 0.491 GB, free: 2.246 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004907/0.3603, allocations: 31.89 kB / 0.491 GB, free: 2.215 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.407e-05/0.3604, allocations: 28.39 kB / 0.4911 GB, free: 2.188 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.881e-05/0.3604, allocations: 16.08 kB / 0.4911 GB, free: 2.172 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001923/0.3606, allocations: 192.5 kB / 0.4913 GB, free: 1.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006892/0.3613, allocations: 124 kB / 0.4914 GB, free: 1.859 MB / 378.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002864/0.3616, allocations: 163.4 kB / 0.4915 GB, free: 1.691 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008473/0.3625, allocations: 481.8 kB / 0.492 GB, free: 1.215 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3625, allocations: 0 / 0.492 GB, free: 1.215 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004487/0.3629, allocations: 315.2 kB / 0.4923 GB, free: 0.8984 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003344/0.3633, allocations: 24.67 kB / 0.4923 GB, free: 0.875 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001676/0.365, allocations: 0.7223 MB / 0.493 GB, free: 124 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1197/0.4846, allocations: 0.8293 MB / 0.4938 GB, free: 137.3 MB / 378.7 MB Notification: Performance of SimCode: time 1.453e-06/0.4847, allocations: 0 / 0.4938 GB, free: 137.3 MB / 378.7 MB Notification: Performance of Templates: time 0.01158/0.4963, allocations: 7.842 MB / 0.5015 GB, free: 137.3 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches