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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009972/0.0009973, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.247/1.247, allocations: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000835/0.000835, allocations: 89.58 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002354/0.0002355, allocations: 11.92 kB / 351.1 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2112/0.2114, allocations: 50.4 MB / 401.5 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09273/0.3042, allocations: 88.99 MB / 490.5 MB, free: 7.441 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002204/0.3044, allocations: 83.95 kB / 490.6 MB, free: 7.359 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02819/0.3326, allocations: 9.535 MB / 0.4884 GB, free: 13.78 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3327, allocations: 3.938 kB / 0.4884 GB, free: 13.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.468e-05/0.3327, allocations: 4 kB / 0.4884 GB, free: 13.77 MB / 378.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.001256/0.334, allocations: 0.6395 MB / 0.489 GB, free: 13.08 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.334, allocations: 8.031 kB / 0.489 GB, free: 13.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.228e-05/0.3341, allocations: 39.56 kB / 0.4891 GB, free: 13.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003932/0.3345, allocations: 319.9 kB / 0.4894 GB, free: 12.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.538e-05/0.3346, allocations: 50.27 kB / 0.4894 GB, free: 12.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000147/0.3347, allocations: 35.94 kB / 0.4895 GB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005847/0.3353, allocations: 328.4 kB / 0.4898 GB, free: 12.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.3354, allocations: 4 kB / 0.4898 GB, free: 12.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.234e-05/0.3354, allocations: 8 kB / 0.4898 GB, free: 12.24 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.3354, allocations: 8 kB / 0.4898 GB, free: 12.23 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006356/0.3361, allocations: 310 kB / 0.4901 GB, free: 11.93 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001691/0.3378, allocations: 1.175 MB / 0.4912 GB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005803/0.3383, allocations: 314.9 kB / 0.4915 GB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.495e-05/0.3384, allocations: 7.984 kB / 0.4915 GB, free: 10.35 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.889e-05/0.3384, allocations: 38.5 kB / 0.4916 GB, free: 10.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 2.174e-06/0.3384, allocations: 0 / 0.4916 GB, free: 10.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.01293/0.3514, allocations: 2.831 MB / 0.4943 GB, free: 7.398 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.917e-05/0.3514, allocations: 84.89 kB / 0.4944 GB, free: 7.297 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003379/0.3518, allocations: 260.2 kB / 0.4947 GB, free: 7.035 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.889e-05/0.3518, allocations: 33.7 kB / 0.4947 GB, free: 6.996 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.37e-05/0.3519, allocations: 168.4 kB / 0.4949 GB, free: 6.828 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.352, allocations: 141.9 kB / 0.495 GB, free: 6.688 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.531e-05/0.3521, allocations: 8 kB / 0.495 GB, free: 6.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.3522, allocations: 346.8 kB / 0.4953 GB, free: 6.332 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003814/0.3526, allocations: 168.8 kB / 0.4955 GB, free: 6.168 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00041/0.353, allocations: 233.7 kB / 0.4957 GB, free: 5.926 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004036/0.3534, allocations: 185.8 kB / 0.4959 GB, free: 5.746 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3534, allocations: 0 / 0.4959 GB, free: 5.746 MB / 378.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009851/0.3544, allocations: 0.4928 MB / 0.4964 GB, free: 5.246 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.3545, allocations: 8.156 kB / 0.4964 GB, free: 5.238 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.3545, allocations: 0 / 0.4964 GB, free: 5.238 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.3545, allocations: 4 kB / 0.4964 GB, free: 5.234 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006252/0.3551, allocations: 123.8 kB / 0.4965 GB, free: 5.113 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.3551, allocations: 4 kB / 0.4965 GB, free: 5.109 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004264/0.3556, allocations: 35.98 kB / 0.4965 GB, free: 5.074 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.704e-05/0.3556, allocations: 19.98 kB / 0.4966 GB, free: 5.055 MB / 378.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 51 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001802/0.3558, allocations: 161.6 kB / 0.4967 GB, free: 4.887 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.89e-05/0.3559, allocations: 27.62 kB / 0.4967 GB, free: 4.859 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002363/0.3583, allocations: 0.7267 MB / 0.4975 GB, free: 4.117 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.3583, allocations: 4 kB / 0.4975 GB, free: 4.113 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.3583, allocations: 0 / 0.4975 GB, free: 4.113 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.503e-06/0.3583, allocations: 7.984 kB / 0.4975 GB, free: 4.105 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003232/0.3616, allocations: 1.31 MB / 0.4987 GB, free: 2.738 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.3616, allocations: 7.938 kB / 0.4988 GB, free: 2.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004746/0.3621, allocations: 99.88 kB / 0.4989 GB, free: 2.633 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00192/0.364, allocations: 288.5 kB / 0.4991 GB, free: 2.348 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.987e-05/0.364, allocations: 7.953 kB / 0.4991 GB, free: 2.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1901/0.5541, allocations: 2.309 MB / 0.5014 GB, free: 99.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.5542, allocations: 0.5938 kB / 0.5014 GB, free: 99.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003246/0.5575, allocations: 1.06 MB / 0.5024 GB, free: 99.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002362/0.5577, allocations: 153.4 kB / 0.5026 GB, free: 98.95 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.97e-05/0.5578, allocations: 10.08 kB / 0.5026 GB, free: 98.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005751/0.5584, allocations: 31.56 kB / 0.5026 GB, free: 98.95 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001747/0.5586, allocations: 38.95 kB / 0.5026 GB, free: 98.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.651e-05/0.5586, allocations: 17.38 kB / 0.5027 GB, free: 98.95 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002827/0.5589, allocations: 212.4 kB / 0.5029 GB, free: 98.87 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5589, allocations: 1.375 kB / 0.5029 GB, free: 98.87 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007682/0.5597, allocations: 125.1 kB / 0.503 GB, free: 98.87 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 () * 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 (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.0003228/0.56, allocations: 153.7 kB / 0.5031 GB, free: 98.78 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009873/0.561, allocations: 445.3 kB / 0.5036 GB, free: 98.78 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.561, allocations: 0 / 0.5036 GB, free: 98.78 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006604/0.5617, allocations: 389.5 kB / 0.5039 GB, free: 98.66 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003529/0.5621, allocations: 29.75 kB / 0.504 GB, free: 98.66 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001884/0.564, allocations: 1.23 MB / 0.5052 GB, free: 98.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002072/0.5642, allocations: 0.7982 MB / 0.5059 GB, free: 97.47 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002222/0.5644, allocations: 43.09 kB / 0.506 GB, free: 97.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001348/0.5646, allocations: 30.36 kB / 0.506 GB, free: 97.46 MB / 378.7 MB Notification: Performance of SimCode: time 3.2e-07/0.5646, allocations: 0 / 0.506 GB, free: 97.46 MB / 378.7 MB Notification: Performance of Templates: time 0.008713/0.5733, allocations: 5.835 MB / 0.5117 GB, free: 97.18 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