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.001865/0.001865, allocations: 112.8 kB / 17.17 MB, free: 6.316 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.002323/0.002323, allocations: 194.9 kB / 18.08 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.089/2.089, allocations: 222.9 MB / 241.8 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002042/0.002042, allocations: 43.92 kB / 300.6 MB, free: 6.309 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1575/0.1596, allocations: 49.45 MB / 350.1 MB, free: 4.848 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.00721/0.1669, allocations: 2.857 MB / 352.9 MB, free: 1.973 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003862/0.1708, allocations: 1.254 MB / 354.2 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005324/0.1714, allocations: 4 kB / 354.2 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005917/0.1721, allocations: 55.61 kB / 354.2 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0013/0.1735, allocations: 187 kB / 354.4 MB, free: 480 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006815/0.1742, allocations: 111.9 kB / 354.5 MB, free: 368 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001098/0.1753, allocations: 434.9 kB / 354.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003515/0.1757, allocations: 73.36 kB / 355 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006266/0.1763, allocations: 167.4 kB / 355.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006104/0.1769, allocations: 211.1 kB / 355.4 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001565/0.1771, allocations: 24 kB / 355.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007067/0.1778, allocations: 147.9 kB / 355.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001648/0.178, allocations: 75.72 kB / 355.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000404/0.1785, allocations: 171.1 kB / 355.8 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008029/0.1793, allocations: 383 kB / 356.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.736e-06/0.1793, allocations: 0 / 356.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1793, allocations: 0 / 356.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.433e-05/0.1794, allocations: 0 / 356.2 MB, free: 14.7 MB / 302.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.003278/0.1827, allocations: 0.7055 MB / 356.9 MB, free: 13.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.236e-05/0.1827, allocations: 8.031 kB / 356.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002274/0.183, allocations: 36.56 kB / 356.9 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008012/0.1838, allocations: 333.2 kB / 357.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001245/0.184, allocations: 46.83 kB / 357.3 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000279/0.1842, allocations: 40.48 kB / 357.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001104/0.1854, allocations: 324.5 kB / 357.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.23e-05/0.1854, allocations: 0 / 357.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.29e-05/0.1855, allocations: 15.98 kB / 357.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.485e-05/0.1855, allocations: 4 kB / 357.7 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00123/0.1868, allocations: 302 kB / 358 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003209/0.19, allocations: 1.171 MB / 359.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/0.1911, allocations: 289 kB / 359.4 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005789/0.1917, allocations: 169.6 kB / 359.6 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.984e-05/0.1918, allocations: 0 / 359.6 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.768e-05/0.1918, allocations: 42.5 kB / 359.6 MB, free: 11.03 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 3.596e-06/0.1918, allocations: 4 kB / 359.6 MB, free: 11.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.01688/0.2087, allocations: 2.406 MB / 362 MB, free: 8.547 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.73e-05/0.2089, allocations: 81.11 kB / 362.1 MB, free: 8.449 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006882/0.2096, allocations: 288.9 kB / 362.4 MB, free: 8.156 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.441e-05/0.2097, allocations: 37.7 kB / 362.4 MB, free: 8.113 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001898/0.2099, allocations: 164.4 kB / 362.6 MB, free: 7.949 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002213/0.2102, allocations: 141.9 kB / 362.7 MB, free: 7.809 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002882/0.2105, allocations: 85.95 kB / 362.8 MB, free: 7.719 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.2107, allocations: 346.8 kB / 363.2 MB, free: 7.371 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006812/0.2114, allocations: 160.8 kB / 363.3 MB, free: 7.215 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007479/0.2121, allocations: 230.6 kB / 363.5 MB, free: 6.969 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001507/0.2137, allocations: 407.5 kB / 363.9 MB, free: 6.551 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.2137, allocations: 0 / 363.9 MB, free: 6.551 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001937/0.2156, allocations: 492.4 kB / 364.4 MB, free: 6.062 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.346e-05/0.2157, allocations: 10.5 kB / 364.4 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.2157, allocations: 0 / 364.4 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.265e-05/0.2158, allocations: 4 kB / 364.4 MB, free: 6.051 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/0.217, allocations: 119.8 kB / 364.5 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.317e-05/0.217, allocations: 3.984 kB / 364.5 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008328/0.2179, allocations: 39.95 kB / 364.6 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.094e-05/0.218, allocations: 15.98 kB / 364.6 MB, free: 5.875 MB / 302.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.0003682/0.2183, allocations: 157.6 kB / 364.8 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002253/0.2186, allocations: 27.72 kB / 364.8 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00344/0.222, allocations: 0.6525 MB / 365.4 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.652e-05/0.2221, allocations: 12 kB / 365.4 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/0.2221, allocations: 0 / 365.4 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.389e-05/0.2222, allocations: 3.984 kB / 365.5 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005707/0.2279, allocations: 1.279 MB / 366.7 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/0.2279, allocations: 4 kB / 366.7 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007133/0.2287, allocations: 79.89 kB / 366.8 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002559/0.2312, allocations: 276.5 kB / 367.1 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.746e-05/0.2314, allocations: 12 kB / 367.1 MB, free: 3.305 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006593/0.238, allocations: 2.225 MB / 369.3 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.238, allocations: 0 / 369.3 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3887/0.6268, allocations: 0.9996 MB / 370.3 MB, free: 25.78 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005235/0.6273, allocations: 149.7 kB / 370.5 MB, free: 25.69 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001089/0.6275, allocations: 10.69 kB / 370.5 MB, free: 25.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000858/0.6284, allocations: 27.28 kB / 370.5 MB, free: 25.69 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002498/0.6286, allocations: 39.36 kB / 370.5 MB, free: 25.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.217e-05/0.6287, allocations: 18.28 kB / 370.6 MB, free: 25.69 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004542/0.6292, allocations: 210.6 kB / 370.8 MB, free: 25.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.6292, allocations: 0.5 kB / 370.8 MB, free: 25.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001112/0.6303, allocations: 117.3 kB / 370.9 MB, free: 25.61 MB / 302.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.0004637/0.6308, allocations: 138.6 kB / 371 MB, free: 25.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001917/0.6327, allocations: 431.6 kB / 371.4 MB, free: 25.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.6328, allocations: 0 / 371.4 MB, free: 25.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001331/0.6341, allocations: 384.5 kB / 371.8 MB, free: 25.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009488/0.6351, allocations: 40.84 kB / 371.9 MB, free: 25.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003132/0.6382, allocations: 1.131 MB / 373 MB, free: 24.87 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005135/0.6388, allocations: 0.7905 MB / 373.8 MB, free: 24.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002948/0.6391, allocations: 37.27 kB / 373.8 MB, free: 24.15 MB / 302.1 MB Notification: Performance of SimCode: time 1.092e-06/0.6391, allocations: 0 / 373.8 MB, free: 24.15 MB / 302.1 MB Notification: Performance of Templates: time 0.01502/0.6541, allocations: 5.688 MB / 379.5 MB, free: 23.45 MB / 302.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