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") [: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 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 187.5 kB / 8.137 MB, free: 2.219 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.186/1.186, allocations: 221.4 MB / 229.9 MB, free: 3.359 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.0009538/0.0009537, allocations: 108.9 kB / 280.8 MB, free: 1.285 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.997e-06/9.027e-06, allocations: 4 kB / 336.5 MB, free: 9.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2036/0.2036, allocations: 50.39 MB / 386.9 MB, free: 38.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1018/0.3055, allocations: 92.28 MB / 479.2 MB, free: 10.55 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/0.3058, allocations: 83.88 kB / 479.3 MB, free: 10.47 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.04517/0.351, allocations: 15.46 MB / 494.7 MB, free: 10.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.828e-05/0.3511, allocations: 12 kB / 494.8 MB, free: 10.97 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.00156/0.3527, allocations: 0.8769 MB / 495.6 MB, free: 10.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.3527, allocations: 8.031 kB / 495.6 MB, free: 10.04 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001449/0.3529, allocations: 79.06 kB / 495.7 MB, free: 9.961 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007251/0.3536, allocations: 494 kB / 496.2 MB, free: 9.438 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.946e-05/0.3537, allocations: 59.77 kB / 496.3 MB, free: 9.375 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001838/0.3539, allocations: 43.98 kB / 496.3 MB, free: 9.332 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008312/0.3547, allocations: 450.5 kB / 496.7 MB, free: 8.891 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008696/0.3556, allocations: 497.9 kB / 497.2 MB, free: 8.383 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/0.3556, allocations: 0 / 497.2 MB, free: 8.383 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.682e-05/0.3557, allocations: 4 kB / 497.2 MB, free: 8.379 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.557e-05/0.3557, allocations: 15.91 kB / 497.2 MB, free: 8.363 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003376/0.3591, allocations: 2.218 MB / 499.5 MB, free: 6.051 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004674/0.3596, allocations: 292.8 kB / 499.7 MB, free: 5.742 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003817/0.36, allocations: 234.6 kB / 500 MB, free: 5.512 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.913e-05/0.36, allocations: 4 kB / 500 MB, free: 5.508 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/0.36, allocations: 46.5 kB / 0.4883 GB, free: 5.453 MB / 378.7 MB Notification: Performance of pre-optimization done (n=45): time 1.703e-06/0.36, allocations: 0 / 0.4883 GB, free: 5.453 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.009119/0.3692, allocations: 2.54 MB / 0.4908 GB, free: 2.859 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/0.3692, allocations: 85.61 kB / 0.4909 GB, free: 2.758 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005635/0.3698, allocations: 433.2 kB / 0.4913 GB, free: 2.328 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.679e-05/0.3698, allocations: 25.7 kB / 0.4913 GB, free: 2.297 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/0.37, allocations: 252.2 kB / 0.4915 GB, free: 2.047 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000154/0.3702, allocations: 201 kB / 0.4917 GB, free: 1.848 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.368e-05/0.3702, allocations: 0 / 0.4917 GB, free: 1.848 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.3704, allocations: 366.7 kB / 0.4921 GB, free: 1.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003577/0.3707, allocations: 213.3 kB / 0.4923 GB, free: 1.273 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00041/0.3711, allocations: 298.6 kB / 0.4926 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004373/0.3716, allocations: 251.1 kB / 0.4928 GB, free: 0.7031 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3716, allocations: 0 / 0.4928 GB, free: 0.7031 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.1125/0.4841, allocations: 1.747 MB / 0.4945 GB, free: 134.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.4841, allocations: 3.875 kB / 0.4945 GB, free: 134.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.4841, allocations: 3.969 kB / 0.4945 GB, free: 134.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00629/0.4904, allocations: 1.17 MB / 0.4957 GB, free: 134.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004451/0.4909, allocations: 93.42 kB / 0.4958 GB, free: 134.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01199/0.5029, allocations: 5.513 MB / 0.5011 GB, free: 132.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006904/0.5036, allocations: 36 kB / 0.5012 GB, free: 132.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.414e-05/0.5037, allocations: 25.59 kB / 0.5012 GB, free: 132.8 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.0002094/0.504, allocations: 124.9 kB / 0.5013 GB, free: 132.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001532/0.5041, allocations: 55.28 kB / 0.5014 GB, free: 132.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001242/0.5054, allocations: 0.7051 MB / 0.5021 GB, free: 132.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.5054, allocations: 10.47 kB / 0.5021 GB, free: 132.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-06/0.5054, allocations: 0 / 0.5021 GB, free: 132.6 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.5054, allocations: 3.938 kB / 0.5021 GB, free: 132.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003213/0.5086, allocations: 1.707 MB / 0.5037 GB, free: 132.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.5086, allocations: 0.6875 kB / 0.5037 GB, free: 132.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005708/0.5092, allocations: 116.1 kB / 0.5039 GB, free: 132.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001693/0.5109, allocations: 342.5 kB / 0.5042 GB, free: 132.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.737e-05/0.511, allocations: 9.484 kB / 0.5042 GB, free: 132.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003718/0.5147, allocations: 2.647 MB / 0.5068 GB, free: 131 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.5148, allocations: 0 / 0.5068 GB, free: 131 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002081/0.5168, allocations: 1.235 MB / 0.508 GB, free: 130.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002798/0.5171, allocations: 208.5 kB / 0.5082 GB, free: 130.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001183/0.5173, allocations: 4.719 kB / 0.5082 GB, free: 130.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006629/0.5179, allocations: 44.84 kB / 0.5082 GB, free: 130.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.313e-05/0.5181, allocations: 38.16 kB / 0.5083 GB, free: 130.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.301e-05/0.5181, allocations: 18.78 kB / 0.5083 GB, free: 130.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003384/0.5185, allocations: 337.3 kB / 0.5086 GB, free: 130.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008315/0.5193, allocations: 183.6 kB / 0.5088 GB, free: 130.5 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.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.00028/0.5196, allocations: 168.5 kB / 0.5089 GB, free: 130.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00111/0.5207, allocations: 0.6935 MB / 0.5096 GB, free: 130.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5207, allocations: 0 / 0.5096 GB, free: 130.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000615/0.5213, allocations: 438 kB / 0.51 GB, free: 130.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004845/0.5218, allocations: 51.05 kB / 0.5101 GB, free: 130.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002547/0.5244, allocations: 1.097 MB / 0.5112 GB, free: 129.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005087/0.5249, allocations: 0.9655 MB / 0.5121 GB, free: 129.1 MB / 378.7 MB Notification: Performance of SimCode: time 4.51e-07/0.5249, allocations: 0 / 0.5121 GB, free: 129.1 MB / 378.7 MB Notification: Performance of Templates: time 0.01891/0.5438, allocations: 11.47 MB / 0.5233 GB, free: 128.5 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