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.001281/0.001281, 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.463/1.463, allocations: 221.5 MB / 230.3 MB, free: 7.578 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.000895/0.000895, allocations: 91.59 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.589e-05/1.592e-05, allocations: 4 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1124, allocations: 50.42 MB / 387.5 MB, free: 7.578 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3163/0.4287, allocations: 92.36 MB / 479.8 MB, free: 2.484 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002556/0.429, allocations: 83.95 kB / 479.9 MB, free: 2.402 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04592/0.4749, allocations: 15.69 MB / 495.6 MB, free: 2.648 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.475, allocations: 0 / 495.6 MB, free: 2.648 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.558e-05/0.475, allocations: 12 kB / 495.6 MB, free: 2.637 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.002002/0.477, allocations: 0.8543 MB / 496.5 MB, free: 1.734 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.4771, allocations: 8.031 kB / 496.5 MB, free: 1.727 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000267/0.4774, allocations: 79.06 kB / 496.5 MB, free: 1.648 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009066/0.4783, allocations: 0.4924 MB / 497 MB, free: 1.113 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.59e-05/0.4784, allocations: 55.02 kB / 497.1 MB, free: 1.055 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002051/0.4786, allocations: 43.98 kB / 497.1 MB, free: 1.012 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009347/0.4795, allocations: 450.5 kB / 497.6 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009086/0.4805, allocations: 0.4901 MB / 498.1 MB, free: 64 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/0.4805, allocations: 4 kB / 498.1 MB, free: 60 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.86e-05/0.4806, allocations: 0 / 498.1 MB, free: 60 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.537e-05/0.4806, allocations: 12 kB / 498.1 MB, free: 48 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003688/0.4843, allocations: 2.219 MB / 0.4886 GB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006505/0.4849, allocations: 421.6 kB / 0.489 GB, free: 13.3 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003737/0.4853, allocations: 226.1 kB / 0.4892 GB, free: 13.07 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.442e-05/0.4854, allocations: 8 kB / 0.4892 GB, free: 13.06 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.717e-05/0.4854, allocations: 38.56 kB / 0.4892 GB, free: 13.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 2.084e-06/0.4854, allocations: 0 / 0.4892 GB, free: 13.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.008621/0.4941, allocations: 2.536 MB / 0.4917 GB, free: 10.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.344e-05/0.4942, allocations: 89.61 kB / 0.4918 GB, free: 10.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007589/0.4949, allocations: 437.3 kB / 0.4922 GB, free: 9.883 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.81e-05/0.495, allocations: 25.7 kB / 0.4922 GB, free: 9.852 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002595/0.4953, allocations: 312.2 kB / 0.4925 GB, free: 9.543 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002307/0.4955, allocations: 208.9 kB / 0.4927 GB, free: 9.336 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.486e-05/0.4956, allocations: 4 kB / 0.4927 GB, free: 9.332 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002133/0.4958, allocations: 362.8 kB / 0.4931 GB, free: 8.969 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003617/0.4961, allocations: 205.5 kB / 0.4933 GB, free: 8.766 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004272/0.4966, allocations: 299.5 kB / 0.4936 GB, free: 8.445 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004206/0.497, allocations: 250 kB / 0.4938 GB, free: 8.203 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.497, allocations: 0 / 0.4938 GB, free: 8.203 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.0065/0.5035, allocations: 1.728 MB / 0.4955 GB, free: 6.461 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.924e-05/0.5036, allocations: 4 kB / 0.4955 GB, free: 6.457 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.5036, allocations: 4 kB / 0.4955 GB, free: 6.453 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005979/0.5096, allocations: 1.164 MB / 0.4966 GB, free: 5.285 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004704/0.5101, allocations: 99.75 kB / 0.4967 GB, free: 5.184 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01221/0.5223, allocations: 5.648 MB / 0.5022 GB, free: 15.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000953/0.5233, allocations: 35.98 kB / 0.5023 GB, free: 15.37 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001503/0.5235, allocations: 23.98 kB / 0.5023 GB, free: 15.34 MB / 394.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.000289/0.5238, allocations: 112.9 kB / 0.5024 GB, free: 15.23 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001913/0.524, allocations: 59.3 kB / 0.5025 GB, free: 15.17 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001681/0.5257, allocations: 0.7087 MB / 0.5032 GB, free: 14.45 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.349e-05/0.5257, allocations: 11.98 kB / 0.5032 GB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.5258, allocations: 0 / 0.5032 GB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/0.5258, allocations: 3.984 kB / 0.5032 GB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003832/0.5296, allocations: 1.692 MB / 0.5048 GB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.5296, allocations: 3.938 kB / 0.5048 GB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005757/0.5302, allocations: 119.8 kB / 0.5049 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001684/0.5319, allocations: 329.1 kB / 0.5053 GB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.084e-05/0.532, allocations: 12 kB / 0.5053 GB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00442/0.5364, allocations: 2.737 MB / 0.5079 GB, free: 9.383 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.5365, allocations: 0 / 0.5079 GB, free: 9.383 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0023/0.5388, allocations: 1.216 MB / 0.5091 GB, free: 8.141 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004166/0.5392, allocations: 208.3 kB / 0.5093 GB, free: 7.918 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001246/0.5393, allocations: 0 / 0.5093 GB, free: 7.918 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000654/0.54, allocations: 39.97 kB / 0.5094 GB, free: 7.879 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.5401, allocations: 52.42 kB / 0.5094 GB, free: 7.828 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.844e-05/0.5402, allocations: 16 kB / 0.5094 GB, free: 7.812 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004739/0.5407, allocations: 339 kB / 0.5098 GB, free: 7.484 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5407, allocations: 4 kB / 0.5098 GB, free: 7.48 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009767/0.5416, allocations: 196 kB / 0.5099 GB, free: 7.289 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.0003939/0.5421, allocations: 163.1 kB / 0.5101 GB, free: 7.121 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001497/0.5436, allocations: 0.7564 MB / 0.5108 GB, free: 6.352 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.5436, allocations: 4.562 kB / 0.5108 GB, free: 6.348 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006879/0.5443, allocations: 475.9 kB / 0.5113 GB, free: 5.875 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000495/0.5448, allocations: 54 kB / 0.5114 GB, free: 5.824 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002232/0.547, allocations: 1.067 MB / 0.5124 GB, free: 4.727 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005337/0.5476, allocations: 0.9194 MB / 0.5133 GB, free: 3.781 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002905/0.5479, allocations: 60.53 kB / 0.5133 GB, free: 3.723 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001416/0.548, allocations: 47.42 kB / 0.5134 GB, free: 3.676 MB / 394.7 MB Notification: Performance of SimCode: time 2.71e-07/0.548, allocations: 0 / 0.5134 GB, free: 3.676 MB / 394.7 MB Notification: Performance of Templates: time 0.01879/0.5668, allocations: 10.82 MB / 0.524 GB, free: 8.938 MB / 410.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