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.001159/0.001159, allocations: 109.4 kB / 18.4 MB, free: 4.68 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.001244/0.001244, allocations: 185.2 kB / 19.33 MB, free: 3.762 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.42/1.42, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001173/0.001173, allocations: 55.92 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09941/0.1006, allocations: 46.61 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004304/0.1049, allocations: 2.763 MB / 378.6 MB, free: 1.801 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002024/0.107, allocations: 1.274 MB / 379.9 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001558/0.1072, allocations: 0 / 379.9 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002724/0.1075, allocations: 71.41 kB / 379.9 MB, free: 456 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000547/0.108, allocations: 226.7 kB / 380.1 MB, free: 228 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002568/0.1083, allocations: 119.8 kB / 380.3 MB, free: 108 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2056/0.3139, allocations: 458.7 kB / 380.7 MB, free: 9.902 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002673/0.3143, allocations: 87.92 kB / 380.8 MB, free: 9.891 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004422/0.3147, allocations: 185.3 kB / 381 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000352/0.3151, allocations: 225.5 kB / 381.2 MB, free: 9.848 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.157e-05/0.3152, allocations: 43.94 kB / 381.2 MB, free: 9.848 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000469/0.3157, allocations: 162.1 kB / 381.4 MB, free: 9.848 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.568e-05/0.3158, allocations: 89.39 kB / 381.5 MB, free: 9.836 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002019/0.316, allocations: 186.4 kB / 381.7 MB, free: 9.789 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000898/0.3169, allocations: 0.5001 MB / 382.2 MB, free: 9.738 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/0.3169, allocations: 3.375 kB / 382.2 MB, free: 9.738 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.386e-06/0.3169, allocations: 0.7031 kB / 382.2 MB, free: 9.738 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.3169, allocations: 1.375 kB / 382.2 MB, free: 9.738 MB / 318.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.001982/0.3189, allocations: 0.7021 MB / 382.9 MB, free: 9.277 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.771e-05/0.319, allocations: 12.59 kB / 382.9 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000137/0.3191, allocations: 39.59 kB / 382.9 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006111/0.3197, allocations: 328.6 kB / 383.2 MB, free: 9.023 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.161e-05/0.3198, allocations: 49.5 kB / 383.3 MB, free: 8.992 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001918/0.32, allocations: 44.98 kB / 383.3 MB, free: 8.988 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007744/0.3208, allocations: 324.4 kB / 383.7 MB, free: 8.922 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.986e-05/0.3209, allocations: 5.234 kB / 383.7 MB, free: 8.922 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.637e-05/0.3209, allocations: 12.19 kB / 383.7 MB, free: 8.922 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.3209, allocations: 6.688 kB / 383.7 MB, free: 8.922 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007291/0.3217, allocations: 298.5 kB / 384 MB, free: 8.918 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001856/0.3235, allocations: 1.151 MB / 385.1 MB, free: 8.355 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000637/0.3242, allocations: 290.8 kB / 385.4 MB, free: 8.305 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003311/0.3245, allocations: 163.6 kB / 385.6 MB, free: 8.238 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.685e-05/0.3246, allocations: 6.812 kB / 385.6 MB, free: 8.238 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.019e-05/0.3246, allocations: 41.67 kB / 385.6 MB, free: 8.191 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 1.924e-06/0.3246, allocations: 0 / 385.6 MB, free: 8.191 MB / 318.1 MB Notification: Performance of matching and sorting (n=42): time 0.009587/0.3342, allocations: 2.424 MB / 388 MB, free: 7.254 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.002e-05/0.3343, allocations: 82.52 kB / 388.1 MB, free: 7.16 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004324/0.3347, allocations: 283.9 kB / 388.4 MB, free: 6.996 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.294e-05/0.3348, allocations: 36.08 kB / 388.4 MB, free: 6.957 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.846e-05/0.3349, allocations: 167.5 kB / 388.6 MB, free: 6.809 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.335, allocations: 147.4 kB / 388.7 MB, free: 6.695 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001646/0.3351, allocations: 79.39 kB / 388.8 MB, free: 6.652 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.3353, allocations: 340.2 kB / 389.1 MB, free: 6.328 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004223/0.3357, allocations: 165.8 kB / 389.3 MB, free: 6.273 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00044/0.3361, allocations: 231.2 kB / 389.5 MB, free: 6.145 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008315/0.337, allocations: 400.8 kB / 389.9 MB, free: 5.945 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.337, allocations: 5.062 kB / 389.9 MB, free: 5.941 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001065/0.3381, allocations: 490.9 kB / 390.4 MB, free: 5.746 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.3381, allocations: 7.125 kB / 390.4 MB, free: 5.746 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.3381, allocations: 1.312 kB / 390.4 MB, free: 5.746 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.346e-05/0.3381, allocations: 4.344 kB / 390.4 MB, free: 5.746 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006334/0.3388, allocations: 114.3 kB / 390.5 MB, free: 5.742 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.3388, allocations: 11.17 kB / 390.5 MB, free: 5.738 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004109/0.3392, allocations: 31.39 kB / 390.6 MB, free: 5.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.96e-05/0.3393, allocations: 15.8 kB / 390.6 MB, free: 5.73 MB / 318.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.000173/0.3394, allocations: 162 kB / 390.7 MB, free: 5.582 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.919e-05/0.3396, allocations: 31.09 kB / 390.8 MB, free: 5.566 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001873/0.3414, allocations: 0.6612 MB / 391.4 MB, free: 5.305 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.3415, allocations: 5.5 kB / 391.4 MB, free: 5.305 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.3415, allocations: 1.906 kB / 391.4 MB, free: 5.305 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.3415, allocations: 2.859 kB / 391.4 MB, free: 5.305 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003156/0.3446, allocations: 1.281 MB / 392.7 MB, free: 4.656 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.3447, allocations: 0 / 392.7 MB, free: 4.656 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004493/0.3451, allocations: 85.23 kB / 392.8 MB, free: 4.656 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001611/0.3467, allocations: 273.5 kB / 393.1 MB, free: 4.602 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.498e-05/0.3468, allocations: 18.89 kB / 393.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003816/0.3506, allocations: 2.436 MB / 395.5 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.3506, allocations: 1.312 kB / 395.5 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002398/0.3531, allocations: 1.01 MB / 396.5 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002207/0.3533, allocations: 150.5 kB / 396.7 MB, free: 2.031 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.137e-05/0.3534, allocations: 8.938 kB / 396.7 MB, free: 2.027 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004458/0.3538, allocations: 27.27 kB / 396.7 MB, free: 2.02 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001476/0.354, allocations: 39.91 kB / 396.8 MB, free: 2.012 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.32e-05/0.354, allocations: 13.8 kB / 396.8 MB, free: 2.008 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002363/0.3543, allocations: 213.1 kB / 397 MB, free: 1.883 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3543, allocations: 0 / 397 MB, free: 1.883 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006532/0.3549, allocations: 114.9 kB / 397.1 MB, free: 1.867 MB / 318.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.0002673/0.3552, allocations: 139.9 kB / 397.2 MB, free: 1.77 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001086/0.3563, allocations: 431.9 kB / 397.7 MB, free: 1.637 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3563, allocations: 1.094 kB / 397.7 MB, free: 1.637 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006799/0.357, allocations: 384.9 kB / 398 MB, free: 1.43 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004882/0.3575, allocations: 49.38 kB / 398.1 MB, free: 1.402 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/0.3592, allocations: 0.9931 MB / 399.1 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002691/0.3595, allocations: 0.7865 MB / 399.9 MB, free: 104 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000173/0.3597, allocations: 40.94 kB / 399.9 MB, free: 96 kB / 318.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3597, allocations: 1.375 kB / 399.9 MB, free: 96 kB / 318.1 MB Notification: Performance of Templates: time 0.01072/0.3704, allocations: 5.736 MB / 405.6 MB, free: 13.81 MB / 334.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches