Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding1.i|winding2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding1.i|winding2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 176.4 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.616/1.616, allocations: 221.5 MB / 230.3 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009508/0.0009509, allocations: 85.56 kB / 281.2 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.307e-05/1.319e-05, allocations: 8 kB / 337 MB, free: 10.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09181/0.09184, allocations: 50.42 MB / 387.5 MB, free: 7.559 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3207/0.4126, allocations: 85.82 MB / 473.3 MB, free: 9.012 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002018/0.4129, allocations: 83.95 kB / 473.4 MB, free: 8.93 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07606/0.4889, allocations: 39 MB / 0.5004 GB, free: 1.641 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.489, allocations: 0 / 0.5004 GB, free: 1.641 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001404/0.4891, allocations: 36 kB / 0.5004 GB, free: 1.605 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002875/0.492, allocations: 1.936 MB / 0.5023 GB, free: 15.61 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.4921, allocations: 11.98 kB / 0.5023 GB, free: 15.6 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004134/0.4925, allocations: 284.3 kB / 0.5026 GB, free: 15.32 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003024/0.4955, allocations: 1.888 MB / 0.5044 GB, free: 13.38 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.347e-05/0.4956, allocations: 42.48 kB / 0.5044 GB, free: 13.33 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001553/0.4958, allocations: 33.3 kB / 0.5045 GB, free: 13.3 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004748/0.4963, allocations: 273.5 kB / 0.5047 GB, free: 13.04 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005208/0.4968, allocations: 322.2 kB / 0.505 GB, free: 12.7 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.4968, allocations: 0 / 0.505 GB, free: 12.7 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.067e-05/0.4969, allocations: 0 / 0.505 GB, free: 12.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.4969, allocations: 12 kB / 0.5051 GB, free: 12.69 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004201/0.5011, allocations: 3.013 MB / 0.508 GB, free: 9.594 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004089/0.5015, allocations: 277.2 kB / 0.5083 GB, free: 9.305 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001962/0.5017, allocations: 143.5 kB / 0.5084 GB, free: 9.16 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.384e-05/0.5018, allocations: 4 kB / 0.5084 GB, free: 9.156 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/0.5018, allocations: 43.56 kB / 0.5084 GB, free: 9.105 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 1.834e-06/0.5018, allocations: 4 kB / 0.5084 GB, free: 9.102 MB / 394.7 MB Notification: Performance of matching and sorting (n=48): time 0.003227/0.505, allocations: 2.051 MB / 0.5105 GB, free: 6.973 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/0.5051, allocations: 85.48 kB / 0.5105 GB, free: 6.871 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007789/0.5129, allocations: 4.694 MB / 0.5151 GB, free: 2.176 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.66e-05/0.5129, allocations: 25.7 kB / 0.5151 GB, free: 2.145 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001035/0.514, allocations: 1.152 MB / 0.5163 GB, free: 0.9844 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001234/0.5141, allocations: 161.6 kB / 0.5164 GB, free: 0.8242 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.078e-05/0.5142, allocations: 7.938 kB / 0.5164 GB, free: 0.8164 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.5143, allocations: 322 kB / 0.5167 GB, free: 0.4961 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001941/0.5145, allocations: 125.1 kB / 0.5169 GB, free: 380 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002355/0.5147, allocations: 195.8 kB / 0.517 GB, free: 160 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002435/0.515, allocations: 152.8 kB / 0.5172 GB, free: 8 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.515, allocations: 3.953 kB / 0.5172 GB, free: 4 kB / 394.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.002265/0.5172, allocations: 1.013 MB / 0.5182 GB, free: 14.97 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.5173, allocations: 7.953 kB / 0.5182 GB, free: 14.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.5173, allocations: 4 kB / 0.5182 GB, free: 14.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004292/0.5177, allocations: 136.9 kB / 0.5183 GB, free: 14.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003849/0.5181, allocations: 91.89 kB / 0.5184 GB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007372/0.5189, allocations: 0.7685 MB / 0.5192 GB, free: 13.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004515/0.5193, allocations: 19.89 kB / 0.5192 GB, free: 13.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.193e-05/0.5194, allocations: 16 kB / 0.5192 GB, free: 13.91 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: core.Hstat:VARIABLE(unit = "A/m" ) "Static (ferromagnetic) portion of the magnetic field strength" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * 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 {1 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002051/0.5196, allocations: 116.8 kB / 0.5193 GB, free: 13.79 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003631/0.52, allocations: 276.5 kB / 0.5196 GB, free: 13.51 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001188/0.5212, allocations: 0.7275 MB / 0.5203 GB, free: 12.78 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.493e-06/0.5212, allocations: 8 kB / 0.5203 GB, free: 12.77 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.5212, allocations: 0 / 0.5203 GB, free: 12.77 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-06/0.5212, allocations: 3.984 kB / 0.5203 GB, free: 12.77 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00177/0.523, allocations: 1.621 MB / 0.5219 GB, free: 11.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.523, allocations: 0 / 0.5219 GB, free: 11.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004315/0.5234, allocations: 99.86 kB / 0.522 GB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002378/0.5237, allocations: 96.64 kB / 0.5221 GB, free: 10.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.133e-05/0.5237, allocations: 15.94 kB / 0.5221 GB, free: 10.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005053/0.5243, allocations: 0.6422 MB / 0.5227 GB, free: 10.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/0.5243, allocations: 0 / 0.5227 GB, free: 10.23 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001291/0.5256, allocations: 1.032 MB / 0.5237 GB, free: 9.168 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00097/0.5266, allocations: 0.6811 MB / 0.5244 GB, free: 8.465 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002163/0.5268, allocations: 8 kB / 0.5244 GB, free: 8.457 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004752/0.5273, allocations: 19.98 kB / 0.5244 GB, free: 8.438 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.557e-05/0.5273, allocations: 36.33 kB / 0.5244 GB, free: 8.402 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.334e-05/0.5274, allocations: 12 kB / 0.5244 GB, free: 8.391 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004397/0.5318, allocations: 3.642 MB / 0.528 GB, free: 4.758 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5318, allocations: 3.938 kB / 0.528 GB, free: 4.754 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008824/0.5327, allocations: 312 kB / 0.5283 GB, free: 4.449 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * 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 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008008/0.5335, allocations: 361.3 kB / 0.5287 GB, free: 4.176 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006821/0.5342, allocations: 339 kB / 0.529 GB, free: 3.844 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.5342, allocations: 0 / 0.529 GB, free: 3.844 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000299/0.5345, allocations: 185.5 kB / 0.5292 GB, free: 3.66 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000864/0.5354, allocations: 179.5 kB / 0.5293 GB, free: 3.48 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007142/0.5425, allocations: 4.807 MB / 0.534 GB, free: 14.62 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001758/0.5443, allocations: 1.86 MB / 0.5358 GB, free: 12.73 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001048/0.5454, allocations: 379.5 kB / 0.5362 GB, free: 12.36 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003804/0.5458, allocations: 131.4 kB / 0.5363 GB, free: 12.23 MB / 426.7 MB Notification: Performance of SimCode: time 1.082e-06/0.5458, allocations: 0 / 0.5363 GB, free: 12.23 MB / 426.7 MB Notification: Performance of Templates: time 0.2286/0.7744, allocations: 15.25 MB / 0.5512 GB, free: 123.3 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches