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.001071/0.001071, allocations: 113.3 kB / 17.69 MB, free: 5.309 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.001183/0.001183, allocations: 192 kB / 18.63 MB, free: 4.375 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.348/1.348, allocations: 222.9 MB / 242.3 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009663/0.0009665, allocations: 48.8 kB / 302.1 MB, free: 5.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1108, allocations: 49.45 MB / 351.5 MB, free: 3.645 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004178/0.115, allocations: 2.808 MB / 354.3 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001807/0.1168, allocations: 1.234 MB / 355.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001274/0.117, allocations: 4 kB / 355.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002594/0.1173, allocations: 63.42 kB / 355.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005032/0.1178, allocations: 230.7 kB / 355.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002277/0.118, allocations: 115.8 kB / 356 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004159/0.1184, allocations: 462.9 kB / 356.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001682/0.1186, allocations: 92.62 kB / 356.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000231/0.1189, allocations: 183.4 kB / 356.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002706/0.1191, allocations: 219.2 kB / 356.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.555e-05/0.1192, allocations: 40 kB / 356.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002665/0.1195, allocations: 159.9 kB / 357.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.302e-05/0.1196, allocations: 103.6 kB / 357.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001575/0.1197, allocations: 179.2 kB / 357.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000507/0.1202, allocations: 0.5023 MB / 357.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1203, allocations: 0 / 357.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.1203, allocations: 4 kB / 357.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.1203, allocations: 3.938 kB / 357.9 MB, free: 13.24 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.001584/0.1219, allocations: 0.6976 MB / 358.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.1219, allocations: 16.03 kB / 358.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.864e-05/0.122, allocations: 36.56 kB / 358.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004513/0.1225, allocations: 325.3 kB / 358.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.94e-05/0.1225, allocations: 50.83 kB / 359 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001602/0.1227, allocations: 40.48 kB / 359 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005624/0.1233, allocations: 328.4 kB / 359.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.1233, allocations: 0 / 359.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.895e-05/0.1233, allocations: 8 kB / 359.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.1234, allocations: 8 kB / 359.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006293/0.124, allocations: 298 kB / 359.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001637/0.1256, allocations: 1.163 MB / 360.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000559/0.1262, allocations: 297.5 kB / 361.1 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003038/0.1265, allocations: 165.6 kB / 361.3 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.188e-05/0.1266, allocations: 11.98 kB / 361.3 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.499e-05/0.1266, allocations: 34.56 kB / 361.3 MB, free: 9.578 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.373e-06/0.1266, allocations: 0 / 361.3 MB, free: 9.578 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.00865/0.1353, allocations: 2.407 MB / 363.7 MB, free: 7.094 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.133e-05/0.1353, allocations: 88.83 kB / 363.8 MB, free: 6.988 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003024/0.1356, allocations: 292.9 kB / 364.1 MB, free: 6.691 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.645e-05/0.1357, allocations: 29.7 kB / 364.1 MB, free: 6.656 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.928e-05/0.1358, allocations: 168.4 kB / 364.3 MB, free: 6.488 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.982e-05/0.1359, allocations: 145.9 kB / 364.4 MB, free: 6.344 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001396/0.136, allocations: 82.02 kB / 364.5 MB, free: 6.258 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.1362, allocations: 342.8 kB / 364.9 MB, free: 5.914 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003629/0.1365, allocations: 160.8 kB / 365 MB, free: 5.758 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000386/0.1369, allocations: 234.6 kB / 365.2 MB, free: 5.508 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007478/0.1377, allocations: 407.7 kB / 365.6 MB, free: 5.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1377, allocations: 0 / 365.6 MB, free: 5.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009274/0.1386, allocations: 496.3 kB / 366.1 MB, free: 4.598 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.1387, allocations: 4 kB / 366.1 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.1387, allocations: 4 kB / 366.1 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.1387, allocations: 0 / 366.1 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005923/0.1393, allocations: 123.8 kB / 366.3 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.1393, allocations: 8.062 kB / 366.3 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000359/0.1397, allocations: 35.92 kB / 366.3 MB, free: 4.426 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.786e-05/0.1397, allocations: 19.98 kB / 366.3 MB, free: 4.406 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.0001536/0.1399, allocations: 153.7 kB / 366.5 MB, free: 4.246 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.85e-05/0.14, allocations: 27.72 kB / 366.5 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001719/0.1417, allocations: 0.6563 MB / 367.2 MB, free: 3.555 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.1417, allocations: 4 kB / 367.2 MB, free: 3.551 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.1417, allocations: 0 / 367.2 MB, free: 3.551 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.717e-06/0.1417, allocations: 3.984 kB / 367.2 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002943/0.1447, allocations: 1.276 MB / 368.4 MB, free: 2.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.1447, allocations: 0 / 368.4 MB, free: 2.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004413/0.1452, allocations: 91.88 kB / 368.5 MB, free: 2.121 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001484/0.1467, allocations: 272.4 kB / 368.8 MB, free: 1.852 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.554e-05/0.1467, allocations: 12 kB / 368.8 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1969/0.3436, allocations: 2.43 MB / 371.2 MB, free: 24.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.012e-06/0.3436, allocations: 2.766 kB / 371.2 MB, free: 24.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002308/0.3459, allocations: 1.015 MB / 372.2 MB, free: 24.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000177/0.3461, allocations: 149.4 kB / 372.4 MB, free: 24.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.47e-05/0.3462, allocations: 7.625 kB / 372.4 MB, free: 24.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004395/0.3466, allocations: 31.83 kB / 372.4 MB, free: 24.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000147/0.3468, allocations: 37.39 kB / 372.5 MB, free: 24.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.926e-05/0.3468, allocations: 14.06 kB / 372.5 MB, free: 24.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002252/0.3471, allocations: 213.5 kB / 372.7 MB, free: 24.14 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.3471, allocations: 0 / 372.7 MB, free: 24.14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000561/0.3477, allocations: 115.2 kB / 372.8 MB, free: 24.14 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.0002909/0.348, allocations: 143.5 kB / 372.9 MB, free: 24.06 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009381/0.3489, allocations: 430.1 kB / 373.4 MB, free: 24.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3489, allocations: 1.188 kB / 373.4 MB, free: 24.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006762/0.3496, allocations: 380.1 kB / 373.7 MB, free: 23.88 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004772/0.3501, allocations: 40.27 kB / 373.8 MB, free: 23.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001638/0.3517, allocations: 0.9722 MB / 374.7 MB, free: 23.4 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002222/0.352, allocations: 0.7867 MB / 375.5 MB, free: 22.7 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001779/0.3521, allocations: 42.64 kB / 375.6 MB, free: 22.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001313/0.3523, allocations: 34.48 kB / 375.6 MB, free: 22.68 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3523, allocations: 0 / 375.6 MB, free: 22.68 MB / 302.1 MB Notification: Performance of Templates: time 0.01175/0.364, allocations: 6.35 MB / 382 MB, free: 21.53 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 -s cvode -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