Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001134/0.001139, allocations: 104.7 kB / 17.15 MB, free: 6.305 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.001235/0.001235, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.386/1.386, allocations: 205.1 MB / 223.9 MB, free: 12.46 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 43.94 kB / 280 MB, free: 3.578 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08455/0.0858, allocations: 46.63 MB / 326.6 MB, free: 4.883 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004129/0.08998, allocations: 2.803 MB / 329.4 MB, free: 2.055 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00195/0.09196, allocations: 1.294 MB / 330.7 MB, free: 0.75 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002262/0.09224, allocations: 4 kB / 330.7 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000298/0.09255, allocations: 51.61 kB / 330.8 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005521/0.09311, allocations: 191 kB / 330.9 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002604/0.09338, allocations: 107.8 kB / 331.1 MB, free: 412 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000436/0.09383, allocations: 435.1 kB / 331.5 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/0.094, allocations: 77.22 kB / 331.6 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002534/0.09426, allocations: 167.5 kB / 331.7 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002582/0.09453, allocations: 207.1 kB / 331.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.217e-05/0.0946, allocations: 28 kB / 331.9 MB, free: 15.51 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00027/0.09488, allocations: 147.8 kB / 332.1 MB, free: 15.37 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.395e-05/0.09496, allocations: 83.7 kB / 332.2 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001508/0.09512, allocations: 159.2 kB / 332.3 MB, free: 15.13 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004763/0.0956, allocations: 494.3 kB / 332.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.09562, allocations: 0 / 332.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.09563, allocations: 4 kB / 332.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.09564, allocations: 0 / 332.8 MB, free: 14.64 MB / 286.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.001667/0.09732, allocations: 0.7016 MB / 333.5 MB, free: 13.89 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.09736, allocations: 16.02 kB / 333.5 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.358e-05/0.09746, allocations: 32.56 kB / 333.6 MB, free: 13.84 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003765/0.09785, allocations: 333 kB / 333.9 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.464e-05/0.09792, allocations: 58.81 kB / 333.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001622/0.09809, allocations: 32.5 kB / 334 MB, free: 13.38 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000584/0.09869, allocations: 320.5 kB / 334.3 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.09871, allocations: 0 / 334.3 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.503e-05/0.09876, allocations: 16 kB / 334.3 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.09877, allocations: 8 kB / 334.3 MB, free: 13.03 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006538/0.09943, allocations: 298 kB / 334.6 MB, free: 12.74 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001683/0.1011, allocations: 1.175 MB / 335.8 MB, free: 11.48 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00057/0.1017, allocations: 293 kB / 336.1 MB, free: 11.18 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003141/0.102, allocations: 165.6 kB / 336.2 MB, free: 11.01 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.971e-05/0.1021, allocations: 4 kB / 336.2 MB, free: 11.01 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.149e-05/0.1021, allocations: 38.5 kB / 336.3 MB, free: 10.96 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 1.463e-06/0.1021, allocations: 0 / 336.3 MB, free: 10.96 MB / 286.1 MB Notification: Performance of matching and sorting (n=42): time 0.009514/0.1116, allocations: 2.415 MB / 338.7 MB, free: 8.469 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.113e-05/0.1117, allocations: 81.11 kB / 338.8 MB, free: 8.371 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003306/0.112, allocations: 300.9 kB / 339.1 MB, free: 8.062 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.995e-05/0.1121, allocations: 29.7 kB / 339.1 MB, free: 8.027 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.395e-05/0.1122, allocations: 160.5 kB / 339.2 MB, free: 7.867 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.1123, allocations: 149.9 kB / 339.4 MB, free: 7.719 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000136/0.1124, allocations: 82.02 kB / 339.5 MB, free: 7.633 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.1126, allocations: 338.8 kB / 339.8 MB, free: 7.293 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003903/0.113, allocations: 160.8 kB / 340 MB, free: 7.137 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004213/0.1134, allocations: 230.7 kB / 340.2 MB, free: 6.891 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008129/0.1142, allocations: 411.5 kB / 340.6 MB, free: 6.469 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.1142, allocations: 0 / 340.6 MB, free: 6.469 MB / 286.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001006/0.1153, allocations: 484.5 kB / 341.1 MB, free: 5.988 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.1153, allocations: 11.11 kB / 341.1 MB, free: 5.98 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.1153, allocations: 4 kB / 341.1 MB, free: 5.977 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.005e-05/0.1153, allocations: 4 kB / 341.1 MB, free: 5.973 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006154/0.116, allocations: 123.9 kB / 341.2 MB, free: 5.852 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.116, allocations: 4 kB / 341.2 MB, free: 5.848 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003948/0.1164, allocations: 31.92 kB / 341.2 MB, free: 5.816 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.808e-05/0.1164, allocations: 19.98 kB / 341.3 MB, free: 5.797 MB / 286.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.0001705/0.1166, allocations: 161.7 kB / 341.4 MB, free: 5.629 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.318e-05/0.1167, allocations: 31.62 kB / 341.4 MB, free: 5.598 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001887/0.1186, allocations: 0.6486 MB / 342.1 MB, free: 4.938 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.1186, allocations: 4 kB / 342.1 MB, free: 4.934 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.1186, allocations: 3.984 kB / 342.1 MB, free: 4.93 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1186, allocations: 0 / 342.1 MB, free: 4.93 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003198/0.1218, allocations: 1.283 MB / 343.4 MB, free: 3.59 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-06/0.1219, allocations: 0 / 343.4 MB, free: 3.59 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004639/0.1223, allocations: 91.88 kB / 343.5 MB, free: 3.5 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001691/0.124, allocations: 264.6 kB / 343.7 MB, free: 3.238 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.293e-05/0.1241, allocations: 15.98 kB / 343.7 MB, free: 3.223 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004175/0.1283, allocations: 2.209 MB / 346 MB, free: 0.875 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-05/0.1283, allocations: 7.969 kB / 346 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002779/0.1311, allocations: 1.002 MB / 347 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003363/0.1315, allocations: 160.6 kB / 347.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.1316, allocations: 8 kB / 347.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005377/0.1322, allocations: 28.17 kB / 347.2 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/0.1323, allocations: 40.38 kB / 347.2 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.277e-05/0.1323, allocations: 11.94 kB / 347.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002288/0.1326, allocations: 212.5 kB / 347.4 MB, free: 15.37 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.322e-06/0.1326, allocations: 4 kB / 347.4 MB, free: 15.37 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006567/0.1332, allocations: 119.9 kB / 347.5 MB, free: 15.25 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.0003036/0.1336, allocations: 139.1 kB / 347.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001041/0.1346, allocations: 430.4 kB / 348.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.1346, allocations: 4.125 kB / 348.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007024/0.1353, allocations: 381 kB / 348.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005765/0.1359, allocations: 40.36 kB / 348.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00185/0.1378, allocations: 1.098 MB / 349.6 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003238/0.1381, allocations: 0.7932 MB / 350.4 MB, free: 12.31 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002417/0.1384, allocations: 46.94 kB / 350.4 MB, free: 12.26 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001397/0.1385, allocations: 35.42 kB / 350.5 MB, free: 12.23 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1385, allocations: 0 / 350.5 MB, free: 12.23 MB / 302.1 MB Notification: Performance of Templates: time 0.01017/0.1487, allocations: 5.912 MB / 356.4 MB, free: 6.316 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches