Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001621/0.001621, allocations: 198.8 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.579/1.579, allocations: 225.6 MB / 234.8 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001348/0.001348, allocations: 96.23 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.554e-05/1.569e-05, allocations: 4 kB / 343.7 MB, free: 8.273 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1052, allocations: 51.48 MB / 395.2 MB, free: 4.758 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3388/0.444, allocations: 93.17 MB / 488.3 MB, free: 60 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002482/0.4444, allocations: 85.97 kB / 488.4 MB, free: 16 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04495/0.4893, allocations: 15.79 MB / 0.4924 GB, free: 3.133 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4894, allocations: 0 / 0.4924 GB, free: 3.133 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.219e-05/0.4894, allocations: 15.98 kB / 0.4924 GB, free: 3.117 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.00165/0.4911, allocations: 0.8475 MB / 0.4932 GB, free: 2.266 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.548e-05/0.4911, allocations: 8.031 kB / 0.4933 GB, free: 2.258 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002584/0.4914, allocations: 95.05 kB / 0.4933 GB, free: 2.164 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007276/0.4921, allocations: 494.9 kB / 0.4938 GB, free: 1.75 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.813e-05/0.4922, allocations: 58.62 kB / 0.4939 GB, free: 1.691 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001761/0.4924, allocations: 43.92 kB / 0.4939 GB, free: 1.652 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007629/0.4932, allocations: 449.2 kB / 0.4943 GB, free: 1.383 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000817/0.494, allocations: 499.1 kB / 0.4948 GB, free: 1.016 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.963e-05/0.494, allocations: 7.906 kB / 0.4948 GB, free: 1.008 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.582e-05/0.4941, allocations: 0 / 0.4948 GB, free: 1.008 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.611e-05/0.4941, allocations: 16 kB / 0.4948 GB, free: 0.9922 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003181/0.4973, allocations: 2.227 MB / 0.497 GB, free: 15.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005665/0.4979, allocations: 406.7 kB / 0.4974 GB, free: 14.96 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000342/0.4982, allocations: 229.6 kB / 0.4976 GB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.331e-05/0.4983, allocations: 8.219 kB / 0.4976 GB, free: 14.81 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.4983, allocations: 42.25 kB / 0.4977 GB, free: 14.76 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 1.663e-06/0.4983, allocations: 0 / 0.4977 GB, free: 14.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.008296/0.5066, allocations: 2.534 MB / 0.5001 GB, free: 12.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.491e-05/0.5067, allocations: 85.67 kB / 0.5002 GB, free: 12.55 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005441/0.5073, allocations: 435.5 kB / 0.5006 GB, free: 12.24 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.904e-05/0.5073, allocations: 25.7 kB / 0.5007 GB, free: 12.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001898/0.5075, allocations: 316.5 kB / 0.501 GB, free: 11.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001558/0.5077, allocations: 204 kB / 0.5012 GB, free: 11.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.329e-05/0.5077, allocations: 0 / 0.5012 GB, free: 11.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.5079, allocations: 361.9 kB / 0.5015 GB, free: 11.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000325/0.5082, allocations: 215.2 kB / 0.5017 GB, free: 11.35 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003696/0.5086, allocations: 304.7 kB / 0.502 GB, free: 11.13 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003722/0.5089, allocations: 243.7 kB / 0.5022 GB, free: 10.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.509, allocations: 11.89 kB / 0.5022 GB, free: 10.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.00651/0.5155, allocations: 1.717 MB / 0.5039 GB, free: 9.219 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/0.5155, allocations: 11.94 kB / 0.5039 GB, free: 9.207 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.5155, allocations: 4 kB / 0.5039 GB, free: 9.203 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006019/0.5216, allocations: 1.164 MB / 0.5051 GB, free: 8.035 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000446/0.522, allocations: 91.83 kB / 0.5052 GB, free: 7.945 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01208/0.5341, allocations: 5.642 MB / 0.5107 GB, free: 2.168 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006654/0.5348, allocations: 28.05 kB / 0.5107 GB, free: 2.141 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.822e-05/0.5349, allocations: 27.98 kB / 0.5107 GB, free: 2.113 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.transformer.core.port_p.V_m:DUMMY_DER(flow=false fixed = false ) "Magnetic potential at the port" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 30} Notification: Performance of prepare postOptimizeDAE: time 0.0002872/0.5352, allocations: 124.3 kB / 0.5108 GB, free: 1.988 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000131/0.5353, allocations: 55.34 kB / 0.5109 GB, free: 1.934 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001369/0.5367, allocations: 0.7087 MB / 0.5116 GB, free: 1.211 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-06/0.5367, allocations: 8 kB / 0.5116 GB, free: 1.203 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.5367, allocations: 0 / 0.5116 GB, free: 1.203 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.5367, allocations: 3.984 kB / 0.5116 GB, free: 1.199 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003236/0.54, allocations: 1.696 MB / 0.5133 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.54, allocations: 0 / 0.5133 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005381/0.5406, allocations: 113.7 kB / 0.5134 GB, free: 15.35 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001576/0.5421, allocations: 340.5 kB / 0.5137 GB, free: 15.01 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.612e-05/0.5422, allocations: 4 kB / 0.5137 GB, free: 15.01 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004326/0.5465, allocations: 2.731 MB / 0.5164 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.813e-06/0.5466, allocations: 4.031 kB / 0.5164 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002365/0.549, allocations: 1.216 MB / 0.5176 GB, free: 10.92 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003638/0.5493, allocations: 212.2 kB / 0.5178 GB, free: 10.69 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.284e-05/0.5494, allocations: 7.984 kB / 0.5178 GB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005873/0.55, allocations: 35.92 kB / 0.5178 GB, free: 10.65 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/0.5502, allocations: 48.5 kB / 0.5178 GB, free: 10.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.214e-05/0.5502, allocations: 23.98 kB / 0.5179 GB, free: 10.58 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004259/0.5507, allocations: 339 kB / 0.5182 GB, free: 10.25 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5507, allocations: 0 / 0.5182 GB, free: 10.25 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009373/0.5516, allocations: 200.1 kB / 0.5184 GB, free: 10.05 MB / 394.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.Phi,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete 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.0003345/0.552, allocations: 158.5 kB / 0.5185 GB, free: 9.895 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001334/0.5533, allocations: 0.7636 MB / 0.5193 GB, free: 9.121 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.5533, allocations: 0 / 0.5193 GB, free: 9.121 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006671/0.554, allocations: 475.4 kB / 0.5197 GB, free: 8.648 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004819/0.5545, allocations: 54.44 kB / 0.5198 GB, free: 8.598 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002104/0.5566, allocations: 1.059 MB / 0.5208 GB, free: 7.508 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005082/0.5571, allocations: 0.9233 MB / 0.5217 GB, free: 6.559 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003004/0.5574, allocations: 62.31 kB / 0.5218 GB, free: 6.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001387/0.5576, allocations: 43.42 kB / 0.5218 GB, free: 6.457 MB / 394.7 MB Notification: Performance of SimCode: time 2.866e-06/0.5576, allocations: 0 / 0.5218 GB, free: 6.457 MB / 394.7 MB Notification: Performance of Templates: time 0.01731/0.5749, allocations: 10.83 MB / 0.5324 GB, free: 11.79 MB / 410.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches