Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009961/0.0009962, allocations: 202.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.277/1.277, allocations: 226.5 MB / 245.4 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008211/0.0008213, allocations: 108.8 kB / 297.4 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002273/0.0002273, allocations: 8 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2063/0.2065, allocations: 51.28 MB / 408.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09415/0.3007, allocations: 93.87 MB / 0.4908 GB, free: 13.72 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001939/0.301, allocations: 84.48 kB / 0.4908 GB, free: 13.64 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2066/0.5076, allocations: 15.98 MB / 0.5064 GB, free: 93.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.5076, allocations: 0 / 0.5064 GB, free: 93.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.171e-05/0.5077, allocations: 12.44 kB / 0.5064 GB, free: 93.29 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001847/0.5095, allocations: 0.9655 MB / 0.5074 GB, free: 92.74 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.5096, allocations: 9.625 kB / 0.5074 GB, free: 92.74 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002349/0.5098, allocations: 90.55 kB / 0.5075 GB, free: 92.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006164/0.5104, allocations: 0.5057 MB / 0.508 GB, free: 92.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.075e-05/0.5105, allocations: 78.61 kB / 0.5081 GB, free: 92.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001831/0.5107, allocations: 64.3 kB / 0.5081 GB, free: 92.39 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001097/0.5118, allocations: 0.6119 MB / 0.5087 GB, free: 92.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.053e-05/0.5119, allocations: 7.359 kB / 0.5087 GB, free: 92.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.72e-05/0.5119, allocations: 22.38 kB / 0.5087 GB, free: 92.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.741e-05/0.5119, allocations: 13.25 kB / 0.5088 GB, free: 92.31 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/0.513, allocations: 0.5309 MB / 0.5093 GB, free: 92.3 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00354/0.5166, allocations: 2.321 MB / 0.5115 GB, free: 91.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009106/0.5175, allocations: 0.4892 MB / 0.512 GB, free: 91.32 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004691/0.518, allocations: 269.3 kB / 0.5123 GB, free: 91.21 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.59e-05/0.5181, allocations: 7.359 kB / 0.5123 GB, free: 91.21 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.5181, allocations: 40.78 kB / 0.5123 GB, free: 91.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 3.076e-06/0.5181, allocations: 0 / 0.5123 GB, free: 91.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.0117/0.5298, allocations: 3.696 MB / 0.5159 GB, free: 89.74 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.5299, allocations: 91.17 kB / 0.516 GB, free: 89.64 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005955/0.5305, allocations: 0.534 MB / 0.5165 GB, free: 89.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.63e-05/0.5306, allocations: 36.61 kB / 0.5166 GB, free: 89.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/0.5307, allocations: 312.2 kB / 0.5169 GB, free: 89.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.5308, allocations: 210.2 kB / 0.5171 GB, free: 88.93 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.748e-05/0.5309, allocations: 15.56 kB / 0.5171 GB, free: 88.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.506e-05/0.531, allocations: 362.9 kB / 0.5174 GB, free: 88.58 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000483/0.5315, allocations: 252.7 kB / 0.5177 GB, free: 88.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000507/0.532, allocations: 350.3 kB / 0.518 GB, free: 88.29 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001005/0.533, allocations: 0.6139 MB / 0.5186 GB, free: 87.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.533, allocations: 0 / 0.5186 GB, free: 87.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001377/0.5344, allocations: 0.7469 MB / 0.5193 GB, free: 87.63 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.5344, allocations: 11 kB / 0.5193 GB, free: 87.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.5344, allocations: 1.906 kB / 0.5193 GB, free: 87.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001764/0.5346, allocations: 28.69 kB / 0.5194 GB, free: 87.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007476/0.5354, allocations: 175.5 kB / 0.5195 GB, free: 87.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007665/0.5361, allocations: 1.337 MB / 0.5208 GB, free: 86.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006066/0.5368, allocations: 34.36 kB / 0.5209 GB, free: 86.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.705e-05/0.5368, allocations: 24.41 kB / 0.5209 GB, free: 86.25 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.0003196/0.5372, allocations: 207.5 kB / 0.5211 GB, free: 86.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001147/0.5373, allocations: 59.06 kB / 0.5212 GB, free: 86.04 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00164/0.5389, allocations: 0.86 MB / 0.522 GB, free: 85.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.5389, allocations: 7.188 kB / 0.522 GB, free: 85.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.5389, allocations: 3.375 kB / 0.522 GB, free: 85.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.539, allocations: 3.656 kB / 0.522 GB, free: 85.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003457/0.5424, allocations: 1.942 MB / 0.5239 GB, free: 84.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/0.5425, allocations: 0 / 0.5239 GB, free: 84.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004996/0.543, allocations: 109.7 kB / 0.524 GB, free: 84.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002404/0.5454, allocations: 0.4945 MB / 0.5245 GB, free: 84.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.634e-05/0.5455, allocations: 18.23 kB / 0.5245 GB, free: 84.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004309/0.5498, allocations: 2.948 MB / 0.5274 GB, free: 81.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.5498, allocations: 7.938 kB / 0.5274 GB, free: 81.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002709/0.5526, allocations: 1.398 MB / 0.5288 GB, free: 80.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003455/0.5529, allocations: 204.1 kB / 0.529 GB, free: 80.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.383e-05/0.553, allocations: 15.94 kB / 0.529 GB, free: 80.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006085/0.5537, allocations: 62.44 kB / 0.529 GB, free: 80.33 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001494/0.5538, allocations: 42 kB / 0.5291 GB, free: 80.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.137e-05/0.5539, allocations: 19.38 kB / 0.5291 GB, free: 80.29 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004286/0.5543, allocations: 386.1 kB / 0.5295 GB, free: 79.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5543, allocations: 0 / 0.5295 GB, free: 79.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007288/0.555, allocations: 199.5 kB / 0.5297 GB, free: 79.77 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.000298/0.5553, allocations: 168 kB / 0.5298 GB, free: 79.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001272/0.5566, allocations: 0.7479 MB / 0.5305 GB, free: 78.92 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.5566, allocations: 4 kB / 0.5305 GB, free: 78.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000768/0.5574, allocations: 0.5317 MB / 0.5311 GB, free: 78.42 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007229/0.5582, allocations: 94.42 kB / 0.5312 GB, free: 78.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00241/0.5606, allocations: 1.855 MB / 0.533 GB, free: 76.67 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002781/0.5609, allocations: 0.9035 MB / 0.5338 GB, free: 75.82 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002275/0.5611, allocations: 51.03 kB / 0.5339 GB, free: 75.77 MB / 378.7 MB Notification: Performance of SimCode: time 5.01e-07/0.5611, allocations: 0 / 0.5339 GB, free: 75.77 MB / 378.7 MB Notification: Performance of Templates: time 0.01443/0.5755, allocations: 11.72 MB / 0.5453 GB, free: 64.71 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches