Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001874/0.001874, allocations: 179.7 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008691/0.0008691, allocations: 86.91 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000334/0.0003341, allocations: 7.938 kB / 351.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2001/0.2004, allocations: 50.4 MB / 401.5 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1009/0.3014, allocations: 93.09 MB / 494.6 MB, free: 3.371 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002027/0.3017, allocations: 83.95 kB / 494.7 MB, free: 3.289 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04503/0.3467, allocations: 15.91 MB / 0.4986 GB, free: 3.297 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3467, allocations: 0 / 0.4986 GB, free: 3.297 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.095e-05/0.3468, allocations: 15.98 kB / 0.4986 GB, free: 3.281 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.001941/0.3487, allocations: 0.9668 MB / 0.4996 GB, free: 2.266 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.3488, allocations: 8.031 kB / 0.4996 GB, free: 2.258 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001348/0.3489, allocations: 83.06 kB / 0.4997 GB, free: 2.176 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007068/0.3496, allocations: 0.4941 MB / 0.5001 GB, free: 1.641 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.085e-05/0.3497, allocations: 71.02 kB / 0.5002 GB, free: 1.562 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001836/0.3499, allocations: 71.94 kB / 0.5003 GB, free: 1.492 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/0.351, allocations: 0.602 MB / 0.5009 GB, free: 0.8711 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/0.351, allocations: 7.938 kB / 0.5009 GB, free: 0.8633 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.354e-05/0.3511, allocations: 20 kB / 0.5009 GB, free: 0.8438 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.3511, allocations: 12 kB / 0.5009 GB, free: 0.832 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001064/0.3522, allocations: 0.5244 MB / 0.5014 GB, free: 316 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1748/0.527, allocations: 2.323 MB / 0.5037 GB, free: 95.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001055/0.5281, allocations: 497.9 kB / 0.5042 GB, free: 94.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.169e-05/0.5282, allocations: 9.359 kB / 0.5042 GB, free: 94.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.413e-05/0.5282, allocations: 45.44 kB / 0.5042 GB, free: 94.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 2.425e-06/0.5282, allocations: 1.375 kB / 0.5042 GB, free: 94.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.01336/0.5416, allocations: 3.68 MB / 0.5078 GB, free: 94.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.625e-05/0.5416, allocations: 85.27 kB / 0.5079 GB, free: 94.19 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005588/0.5422, allocations: 495.3 kB / 0.5084 GB, free: 94.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.977e-05/0.5423, allocations: 35.83 kB / 0.5084 GB, free: 94.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.5424, allocations: 321.5 kB / 0.5087 GB, free: 93.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001488/0.5426, allocations: 201.4 kB / 0.5089 GB, free: 93.81 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.542e-05/0.5426, allocations: 12.81 kB / 0.5089 GB, free: 93.81 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.619e-05/0.5427, allocations: 368.1 kB / 0.5093 GB, free: 93.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004869/0.5432, allocations: 256.5 kB / 0.5095 GB, free: 93.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005076/0.5437, allocations: 348 kB / 0.5098 GB, free: 93.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005205/0.5442, allocations: 283.3 kB / 0.5101 GB, free: 93.26 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.5443, allocations: 4.922 kB / 0.5101 GB, free: 93.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001284/0.5455, allocations: 0.7523 MB / 0.5108 GB, free: 92.94 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.5456, allocations: 11.25 kB / 0.5108 GB, free: 92.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.5456, allocations: 4 kB / 0.5109 GB, free: 92.94 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000142/0.5457, allocations: 35.83 kB / 0.5109 GB, free: 92.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007918/0.5465, allocations: 163.9 kB / 0.511 GB, free: 92.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007048/0.5473, allocations: 1.341 MB / 0.5124 GB, free: 91.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005779/0.5478, allocations: 49.16 kB / 0.5124 GB, free: 91.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.528e-05/0.5479, allocations: 22.38 kB / 0.5124 GB, free: 91.57 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.0002422/0.5481, allocations: 199.2 kB / 0.5126 GB, free: 91.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/0.5483, allocations: 68.98 kB / 0.5127 GB, free: 91.37 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001529/0.5498, allocations: 0.857 MB / 0.5135 GB, free: 90.99 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.5498, allocations: 7.656 kB / 0.5135 GB, free: 90.99 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.5498, allocations: 7.703 kB / 0.5135 GB, free: 90.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.5498, allocations: 0 / 0.5135 GB, free: 90.99 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003284/0.5531, allocations: 1.89 MB / 0.5154 GB, free: 90.06 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.5532, allocations: 0 / 0.5154 GB, free: 90.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004973/0.5537, allocations: 114.5 kB / 0.5155 GB, free: 90.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002356/0.556, allocations: 0.4962 MB / 0.516 GB, free: 89.96 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.008e-05/0.5561, allocations: 23.67 kB / 0.516 GB, free: 89.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004105/0.5602, allocations: 3.026 MB / 0.5189 GB, free: 87.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.5602, allocations: 0 / 0.5189 GB, free: 87.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002539/0.5628, allocations: 1.42 MB / 0.5203 GB, free: 87.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000253/0.563, allocations: 203.1 kB / 0.5205 GB, free: 86.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.286e-05/0.5631, allocations: 15.64 kB / 0.5205 GB, free: 86.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000601/0.5637, allocations: 59.69 kB / 0.5206 GB, free: 86.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.5639, allocations: 46.19 kB / 0.5206 GB, free: 86.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.776e-05/0.5639, allocations: 15.12 kB / 0.5207 GB, free: 86.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003732/0.5643, allocations: 395.2 kB / 0.521 GB, free: 86.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5643, allocations: 0 / 0.521 GB, free: 86.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006839/0.565, allocations: 197.6 kB / 0.5212 GB, free: 86.67 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.0002893/0.5653, allocations: 161.4 kB / 0.5214 GB, free: 86.56 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001253/0.5665, allocations: 0.7515 MB / 0.5221 GB, free: 86.22 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.5665, allocations: 3.969 kB / 0.5221 GB, free: 86.22 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007649/0.5673, allocations: 0.5278 MB / 0.5226 GB, free: 85.94 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005463/0.5679, allocations: 85.16 kB / 0.5227 GB, free: 85.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002491/0.5704, allocations: 1.824 MB / 0.5245 GB, free: 84.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003169/0.5707, allocations: 0.915 MB / 0.5254 GB, free: 83.55 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003694/0.5711, allocations: 70.58 kB / 0.5255 GB, free: 83.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001795/0.5713, allocations: 55.27 kB / 0.5255 GB, free: 83.45 MB / 378.7 MB Notification: Performance of SimCode: time 1.262e-06/0.5713, allocations: 0 / 0.5255 GB, free: 83.45 MB / 378.7 MB Notification: Performance of Templates: time 0.01377/0.5851, allocations: 9.426 MB / 0.5347 GB, free: 76.15 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches