Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002138/0.002137, allocations: 186.5 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.883/1.883, allocations: 205.4 MB / 222.5 MB, free: 9.133 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001156/0.001156, allocations: 92.38 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000394/0.0003939, allocations: 8 kB / 327 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3335/0.3339, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1422/0.4762, allocations: 90.08 MB / 464.6 MB, free: 6.688 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003065/0.4766, allocations: 83.95 kB / 464.7 MB, free: 6.605 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07527/0.5518, allocations: 15.54 MB / 480.3 MB, free: 6.984 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.5519, allocations: 0 / 480.3 MB, free: 6.984 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.915e-05/0.552, allocations: 19.98 kB / 480.3 MB, free: 6.965 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003685/0.5557, allocations: 0.9668 MB / 481.2 MB, free: 5.949 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.5557, allocations: 8.031 kB / 481.2 MB, free: 5.941 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003979/0.5562, allocations: 79.06 kB / 481.3 MB, free: 5.863 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001339/0.5575, allocations: 0.4979 MB / 481.8 MB, free: 5.32 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001443/0.5577, allocations: 75.02 kB / 481.9 MB, free: 5.242 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004134/0.5581, allocations: 63.98 kB / 482 MB, free: 5.18 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002263/0.5604, allocations: 0.6019 MB / 482.6 MB, free: 4.559 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.501e-05/0.5605, allocations: 0 / 482.6 MB, free: 4.559 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001088/0.5606, allocations: 24 kB / 482.6 MB, free: 4.535 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.201e-05/0.5607, allocations: 16 kB / 482.6 MB, free: 4.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002451/0.5631, allocations: 0.5282 MB / 483.1 MB, free: 3.992 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0058/0.569, allocations: 2.335 MB / 485.5 MB, free: 1.551 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001799/0.5708, allocations: 490 kB / 485.9 MB, free: 1.047 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.046e-05/0.571, allocations: 8 kB / 485.9 MB, free: 1.039 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.907e-05/0.571, allocations: 38.56 kB / 486 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 3.497e-06/0.571, allocations: 0 / 486 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of matching and sorting (n=61): time 0.02482/0.5959, allocations: 3.693 MB / 489.7 MB, free: 13.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.552e-05/0.596, allocations: 93.61 kB / 489.8 MB, free: 13.1 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001128/0.5971, allocations: 485.2 kB / 490.2 MB, free: 12.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001696/0.5973, allocations: 33.7 kB / 490.3 MB, free: 12.58 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002724/0.5976, allocations: 354.8 kB / 490.6 MB, free: 12.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002951/0.5979, allocations: 208.9 kB / 490.8 MB, free: 12.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.679e-05/0.598, allocations: 12 kB / 490.8 MB, free: 12.01 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.5982, allocations: 334.8 kB / 491.2 MB, free: 11.68 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001087/0.5993, allocations: 253.2 kB / 491.4 MB, free: 11.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001144/0.6005, allocations: 351.5 kB / 491.8 MB, free: 11.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001154/0.6017, allocations: 286.1 kB / 492 MB, free: 10.78 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-06/0.6017, allocations: 0 / 492 MB, free: 10.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002702/0.6044, allocations: 0.7221 MB / 492.8 MB, free: 10.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.876e-05/0.6045, allocations: 4 kB / 492.8 MB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/0.6045, allocations: 4 kB / 492.8 MB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002394/0.6048, allocations: 36.73 kB / 492.8 MB, free: 9.996 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001622/0.6064, allocations: 171.9 kB / 493 MB, free: 9.828 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001475/0.6079, allocations: 1.335 MB / 494.3 MB, free: 8.363 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001232/0.6092, allocations: 43.97 kB / 494.3 MB, free: 8.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001026/0.6093, allocations: 20 kB / 494.4 MB, free: 8.301 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 74 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005175/0.6099, allocations: 205.7 kB / 494.6 MB, free: 8.09 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002384/0.6101, allocations: 63.25 kB / 494.6 MB, free: 8.027 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003484/0.6136, allocations: 0.8646 MB / 495.5 MB, free: 7.156 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.526e-05/0.6137, allocations: 8 kB / 495.5 MB, free: 7.148 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.6137, allocations: 7.984 kB / 495.5 MB, free: 7.141 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.305e-05/0.6137, allocations: 0 / 495.5 MB, free: 7.141 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00671/0.6204, allocations: 1.881 MB / 497.4 MB, free: 5.199 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.682e-05/0.6205, allocations: 288 / 497.4 MB, free: 5.199 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001142/0.6217, allocations: 111.9 kB / 497.5 MB, free: 5.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004861/0.6266, allocations: 0.5041 MB / 498 MB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001609/0.6268, allocations: 16 kB / 498 MB, free: 4.566 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008895/0.6357, allocations: 3.014 MB / 0.4893 GB, free: 1.406 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.6358, allocations: 0 / 0.4893 GB, free: 1.406 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2753/0.9111, allocations: 1.423 MB / 0.4907 GB, free: 106.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006567/0.9118, allocations: 204.1 kB / 0.4909 GB, free: 106 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001864/0.912, allocations: 14.22 kB / 0.4909 GB, free: 106 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001192/0.9132, allocations: 46.53 kB / 0.4909 GB, free: 106 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002744/0.9135, allocations: 54.34 kB / 0.491 GB, free: 106 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.638e-05/0.9136, allocations: 19.47 kB / 0.491 GB, free: 106 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009958/0.9146, allocations: 388.2 kB / 0.4914 GB, free: 105.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.825e-06/0.9146, allocations: 0.5 kB / 0.4914 GB, free: 105.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001529/0.9162, allocations: 198.3 kB / 0.4916 GB, free: 105.9 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.B,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005295/0.9167, allocations: 161.9 kB / 0.4917 GB, free: 105.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002955/0.9197, allocations: 0.7439 MB / 0.4924 GB, free: 105.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/0.9197, allocations: 0 / 0.4924 GB, free: 105.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001752/0.9215, allocations: 0.532 MB / 0.493 GB, free: 105.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001206/0.9228, allocations: 84.88 kB / 0.493 GB, free: 105.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004532/0.9273, allocations: 1.856 MB / 0.4949 GB, free: 104.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000471/0.9279, allocations: 0.9168 MB / 0.4958 GB, free: 104.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004707/0.9283, allocations: 51.92 kB / 0.4958 GB, free: 104.1 MB / 378.7 MB Notification: Performance of SimCode: time 9.32e-07/0.9284, allocations: 0 / 0.4958 GB, free: 104.1 MB / 378.7 MB Notification: Performance of Templates: time 0.02435/0.9527, allocations: 11.37 MB / 0.5069 GB, free: 102.6 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches