Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.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.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.pin_p.reference.gamma|voltageSource.pin_p.reference.gamma|idealTransformer.v1.re|idealTransformer.v1.im|idealTransformer.i1.re|idealTransformer.i1.im|idealTransformer.v2.re|idealTransformer.v2.im|idealTransformer.i2.re|idealTransformer.i2.im",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer") translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.pin_p.reference.gamma|voltageSource.pin_p.reference.gamma|idealTransformer.v1.re|idealTransformer.v1.im|idealTransformer.i1.re|idealTransformer.i1.im|idealTransformer.v2.re|idealTransformer.v2.im|idealTransformer.i2.re|idealTransformer.i2.im",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer") [: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.001516/0.001516, allocations: 184 kB / 8.135 MB, free: 2.207 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.175/1.175, allocations: 221.4 MB / 229.9 MB, free: 3.082 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.000943/0.000943, allocations: 103 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.713e-06/6.743e-06, allocations: 4 kB / 336.5 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2119/0.2119, allocations: 50.39 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09223/0.3042, allocations: 86.3 MB / 473.2 MB, free: 496 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003016/0.3045, allocations: 75.95 kB / 473.3 MB, free: 420 kB / 346.7 MB Notification: Performance of FrontEnd: time 0.05973/0.3643, allocations: 26.08 MB / 499.4 MB, free: 6.051 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.353e-05/0.3643, allocations: 16 kB / 499.4 MB, free: 6.035 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.002489/0.3668, allocations: 1.049 MB / 0.4887 GB, free: 4.941 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.3669, allocations: 8.031 kB / 0.4887 GB, free: 4.934 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003465/0.3704, allocations: 0.5219 MB / 0.4892 GB, free: 4.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006994/0.3711, allocations: 423.9 kB / 0.4896 GB, free: 3.953 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.695e-05/0.3711, allocations: 28 kB / 0.4897 GB, free: 3.926 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001198/0.3713, allocations: 56 kB / 0.4897 GB, free: 3.871 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001486/0.3728, allocations: 0.8162 MB / 0.4905 GB, free: 3.055 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001309/0.3741, allocations: 0.779 MB / 0.4913 GB, free: 2.262 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.231e-05/0.3741, allocations: 4.656 kB / 0.4913 GB, free: 2.258 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.34e-05/0.3742, allocations: 0 / 0.4913 GB, free: 2.258 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.373e-05/0.3742, allocations: 28 kB / 0.4913 GB, free: 2.23 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1237/0.4979, allocations: 3.301 MB / 0.4945 GB, free: 123.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007535/0.4987, allocations: 0.581 MB / 0.4951 GB, free: 123.7 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002728/0.499, allocations: 230.1 kB / 0.4953 GB, free: 123.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.824e-05/0.4991, allocations: 101.2 kB / 0.4954 GB, free: 123.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/0.4991, allocations: 49.22 kB / 0.4955 GB, free: 123.6 MB / 378.7 MB Notification: Performance of pre-optimization done (n=65): time 2.495e-06/0.4991, allocations: 0 / 0.4955 GB, free: 123.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=65): time 0.001031/0.5002, allocations: 0.5079 MB / 0.4959 GB, free: 123.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.899e-05/0.5002, allocations: 110.9 kB / 0.4961 GB, free: 123.4 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001829/0.5004, allocations: 217.8 kB / 0.4963 GB, free: 123.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.248e-05/0.5004, allocations: 25.7 kB / 0.4963 GB, free: 123.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.5005, allocations: 372.3 kB / 0.4966 GB, free: 123.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.642e-05/0.5006, allocations: 216.3 kB / 0.4968 GB, free: 122.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.834e-05/0.5007, allocations: 0 / 0.4968 GB, free: 122.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.796e-05/0.5007, allocations: 346.6 kB / 0.4972 GB, free: 122.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002653/0.501, allocations: 195 kB / 0.4974 GB, free: 122.6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003751/0.5014, allocations: 402.4 kB / 0.4977 GB, free: 122.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006125/0.502, allocations: 288.6 kB / 0.498 GB, free: 122.4 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.502, allocations: 3.938 kB / 0.498 GB, free: 122.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001146/0.5032, allocations: 0.6847 MB / 0.4987 GB, free: 122.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.5032, allocations: 3.562 kB / 0.4987 GB, free: 122.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.5032, allocations: 10.25 kB / 0.4987 GB, free: 122.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.366e-05/0.5032, allocations: 13.09 kB / 0.4987 GB, free: 122.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007407/0.504, allocations: 189 kB / 0.4989 GB, free: 122.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.376e-05/0.504, allocations: 20.25 kB / 0.4989 GB, free: 122.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004267/0.5044, allocations: 69.31 kB / 0.499 GB, free: 122.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.104e-05/0.5045, allocations: 35.61 kB / 0.499 GB, free: 122.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 98 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001057/0.5046, allocations: 128.8 kB / 0.4991 GB, free: 122.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001081/0.5047, allocations: 36.88 kB / 0.4992 GB, free: 122.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001174/0.5059, allocations: 0.6252 MB / 0.4998 GB, free: 122.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.255e-06/0.5059, allocations: 8.438 kB / 0.4998 GB, free: 122.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.5059, allocations: 3.906 kB / 0.4998 GB, free: 122.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.506, allocations: 9.156 kB / 0.4998 GB, free: 122.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001886/0.5078, allocations: 1.341 MB / 0.5011 GB, free: 121.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.5079, allocations: 3.656 kB / 0.5011 GB, free: 121.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006164/0.5085, allocations: 146.6 kB / 0.5013 GB, free: 121.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.115e-06/0.5085, allocations: 2.656 kB / 0.5013 GB, free: 121.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.779e-05/0.5085, allocations: 9.047 kB / 0.5013 GB, free: 121.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.5086, allocations: 3.656 kB / 0.5013 GB, free: 121.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.746e-06/0.5086, allocations: 0 / 0.5013 GB, free: 121.8 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001237/0.5098, allocations: 1.085 MB / 0.5023 GB, free: 121.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.701e-05/0.5099, allocations: 126.7 kB / 0.5025 GB, free: 121.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.106e-05/0.51, allocations: 3.812 kB / 0.5025 GB, free: 121.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003978/0.5104, allocations: 22.14 kB / 0.5025 GB, free: 121.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.888e-05/0.5105, allocations: 35.05 kB / 0.5025 GB, free: 121.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.872e-05/0.5105, allocations: 29.83 kB / 0.5025 GB, free: 121.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001047/0.5106, allocations: 153.2 kB / 0.5027 GB, free: 121.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006873/0.5113, allocations: 218.9 kB / 0.5029 GB, free: 121.2 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (i1.pin_p.reference.gamma,load.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002231/0.5115, allocations: 153.8 kB / 0.503 GB, free: 121.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000684/0.5122, allocations: 0.556 MB / 0.5036 GB, free: 121.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.5122, allocations: 3.062 kB / 0.5036 GB, free: 121.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003017/0.5125, allocations: 285.2 kB / 0.5039 GB, free: 121.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003179/0.5129, allocations: 18.45 kB / 0.5039 GB, free: 121.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001604/0.5145, allocations: 0.8996 MB / 0.5048 GB, free: 120.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004802/0.515, allocations: 0.9656 MB / 0.5057 GB, free: 120.1 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.515, allocations: 0 / 0.5057 GB, free: 120.1 MB / 378.7 MB Notification: Performance of Templates: time 0.009596/0.5246, allocations: 6.203 MB / 0.5118 GB, free: 119.8 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.sim & ./Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Transformer/Transformer.csv","../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches