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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001131/0.001131, allocations: 195.1 kB / 8.539 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 225.5 MB / 234.4 MB, free: 3.32 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009403/0.0009403, allocations: 93.03 kB / 286.3 MB, free: 5.293 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.981e-06/6.021e-06, allocations: 0 / 343.1 MB, free: 8.676 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1107, allocations: 51.48 MB / 394.6 MB, free: 5.148 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.36/0.4707, allocations: 93.1 MB / 487.7 MB, free: 96 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002179/0.471, allocations: 82.77 kB / 487.8 MB, free: 52 kB / 346.7 MB Notification: Performance of FrontEnd: time 0.04506/0.5161, allocations: 15.56 MB / 0.4916 GB, free: 3.391 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.047e-05/0.5162, allocations: 16 kB / 0.4916 GB, free: 3.375 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.00168/0.5179, allocations: 0.8627 MB / 0.4924 GB, free: 2.508 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.5179, allocations: 9.062 kB / 0.4924 GB, free: 2.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002475/0.5182, allocations: 91.05 kB / 0.4925 GB, free: 2.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000776/0.5189, allocations: 0.4961 MB / 0.493 GB, free: 1.98 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.026e-05/0.519, allocations: 51.02 kB / 0.493 GB, free: 1.926 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002022/0.5193, allocations: 47.98 kB / 0.4931 GB, free: 1.879 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008824/0.5202, allocations: 452.3 kB / 0.4935 GB, free: 1.609 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009365/0.5211, allocations: 497.9 kB / 0.494 GB, free: 1.246 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.142e-05/0.5211, allocations: 0 / 0.494 GB, free: 1.246 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.933e-05/0.5212, allocations: 3.906 kB / 0.494 GB, free: 1.242 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.539e-05/0.5212, allocations: 12 kB / 0.494 GB, free: 1.23 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003439/0.5247, allocations: 2.227 MB / 0.4962 GB, free: 15.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005435/0.5252, allocations: 285.9 kB / 0.4965 GB, free: 15.26 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004074/0.5256, allocations: 228.1 kB / 0.4967 GB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.354e-05/0.5257, allocations: 6.875 kB / 0.4967 GB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.145e-05/0.5257, allocations: 45.75 kB / 0.4967 GB, free: 15.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 2.034e-06/0.5257, allocations: 0 / 0.4967 GB, free: 15.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.0095/0.5352, allocations: 2.54 MB / 0.4992 GB, free: 12.97 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.58e-05/0.5353, allocations: 85.61 kB / 0.4993 GB, free: 12.87 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006613/0.536, allocations: 434 kB / 0.4997 GB, free: 12.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.334e-05/0.5361, allocations: 25.7 kB / 0.4997 GB, free: 12.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000154/0.5362, allocations: 249.7 kB / 0.5 GB, free: 12.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001726/0.5364, allocations: 205 kB / 0.5002 GB, free: 12.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.547e-05/0.5365, allocations: 0 / 0.5002 GB, free: 12.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002068/0.5367, allocations: 370.5 kB / 0.5005 GB, free: 11.78 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003815/0.5371, allocations: 208.2 kB / 0.5007 GB, free: 11.67 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004147/0.5375, allocations: 312.9 kB / 0.501 GB, free: 11.44 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004168/0.5379, allocations: 242.1 kB / 0.5012 GB, free: 11.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.5379, allocations: 0 / 0.5012 GB, free: 11.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.00722/0.5451, allocations: 1.742 MB / 0.5029 GB, free: 9.855 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.5452, allocations: 8 kB / 0.503 GB, free: 9.848 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.5452, allocations: 3.906 kB / 0.503 GB, free: 9.844 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006606/0.5518, allocations: 1.171 MB / 0.5041 GB, free: 8.801 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005053/0.5524, allocations: 91.89 kB / 0.5042 GB, free: 8.711 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01301/0.5654, allocations: 5.521 MB / 0.5096 GB, free: 3.062 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007376/0.5661, allocations: 32.05 kB / 0.5096 GB, free: 3.031 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.336e-05/0.5662, allocations: 30.33 kB / 0.5096 GB, free: 3.004 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.0002222/0.5664, allocations: 108.9 kB / 0.5097 GB, free: 2.891 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001285/0.5666, allocations: 59.33 kB / 0.5098 GB, free: 2.832 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001378/0.568, allocations: 0.7056 MB / 0.5105 GB, free: 2.113 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.568, allocations: 8 kB / 0.5105 GB, free: 2.105 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.568, allocations: 0 / 0.5105 GB, free: 2.105 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.568, allocations: 7.984 kB / 0.5105 GB, free: 2.098 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003381/0.5714, allocations: 1.712 MB / 0.5122 GB, free: 352 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.5714, allocations: 4 kB / 0.5122 GB, free: 348 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005883/0.572, allocations: 111.9 kB / 0.5123 GB, free: 236 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001766/0.5738, allocations: 336.4 kB / 0.5126 GB, free: 15.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.618e-05/0.5738, allocations: 3.984 kB / 0.5126 GB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004299/0.5782, allocations: 2.651 MB / 0.5152 GB, free: 13.13 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.5782, allocations: 8 kB / 0.5152 GB, free: 13.12 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00237/0.5806, allocations: 1.226 MB / 0.5164 GB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003367/0.5809, allocations: 208.2 kB / 0.5166 GB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001276/0.581, allocations: 7.984 kB / 0.5166 GB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006685/0.5817, allocations: 39.97 kB / 0.5166 GB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.5818, allocations: 36.59 kB / 0.5167 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.013e-05/0.5819, allocations: 16 kB / 0.5167 GB, free: 11.55 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.000435/0.5823, allocations: 339.2 kB / 0.517 GB, free: 11.22 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009372/0.5833, allocations: 188.3 kB / 0.5172 GB, free: 11.04 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.000367/0.5836, allocations: 163.8 kB / 0.5174 GB, free: 10.87 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001406/0.5851, allocations: 0.6958 MB / 0.518 GB, free: 10.16 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.5851, allocations: 0 / 0.518 GB, free: 10.16 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000688/0.5858, allocations: 439.6 kB / 0.5185 GB, free: 9.73 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004901/0.5863, allocations: 49.55 kB / 0.5185 GB, free: 9.684 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002717/0.589, allocations: 1.104 MB / 0.5196 GB, free: 8.551 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006693/0.5897, allocations: 0.9649 MB / 0.5205 GB, free: 7.559 MB / 394.7 MB Notification: Performance of SimCode: time 7.81e-07/0.5897, allocations: 0 / 0.5205 GB, free: 7.559 MB / 394.7 MB Notification: Performance of Templates: time 0.02039/0.6101, allocations: 11.47 MB / 0.5317 GB, free: 12.25 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