Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|voltageSource.plug_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar") translateModel(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|voltageSource.plug_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar") [: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 3.2.3+maint.om/package.mo): time 0.001048/0.001048, allocations: 184.8 kB / 8.482 MB, free: 1.789 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.185/1.185, allocations: 205.2 MB / 214.1 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008636/0.0008636, allocations: 88.64 kB / 262.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.712e-06/6.833e-06, allocations: 4 kB / 315 MB, free: 8.613 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2075/0.2075, allocations: 47.55 MB / 362.5 MB, free: 45.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1011/0.3087, allocations: 88.64 MB / 451.2 MB, free: 13.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002457/0.309, allocations: 79.95 kB / 451.3 MB, free: 13.27 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.4385/0.7475, allocations: 154 MB / 0.591 GB, free: 50.96 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002767/0.7478, allocations: 99.94 kB / 0.5911 GB, free: 50.86 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1303 * Number of variables: 1303 Notification: Performance of Generate backend data structure: time 0.01402/0.7619, allocations: 4.262 MB / 0.5953 GB, free: 46.54 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/0.7619, allocations: 8.031 kB / 0.5953 GB, free: 46.53 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01035/0.7723, allocations: 1.638 MB / 0.5969 GB, free: 44.89 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006256/0.7786, allocations: 2.689 MB / 0.5995 GB, free: 42.15 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003898/0.779, allocations: 163.9 kB / 0.5997 GB, free: 41.99 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00142/0.7805, allocations: 260 kB / 0.5999 GB, free: 41.74 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01062/0.7911, allocations: 5.677 MB / 0.6055 GB, free: 36.05 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01406/0.8052, allocations: 6.868 MB / 0.6122 GB, free: 29.01 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001095/0.8054, allocations: 3.906 kB / 0.6122 GB, free: 29.01 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004972/0.8059, allocations: 4 kB / 0.6122 GB, free: 29 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000251/0.8061, allocations: 305.3 kB / 0.6125 GB, free: 28.7 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03717/0.8433, allocations: 23.17 MB / 0.6351 GB, free: 5.086 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00475/0.8481, allocations: 3.724 MB / 0.6387 GB, free: 1.359 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0049/0.853, allocations: 3.273 MB / 0.6419 GB, free: 14.05 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02234/0.8754, allocations: 11.87 MB / 0.6535 GB, free: 1.793 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.996e-05/0.8755, allocations: 60.47 kB / 0.6536 GB, free: 1.723 MB / 410.7 MB Notification: Performance of pre-optimization done (n=336): time 6.883e-06/0.8756, allocations: 0 / 0.6536 GB, free: 1.723 MB / 410.7 MB Notification: Performance of matching and sorting (n=336): time 0.1238/0.9994, allocations: 5.486 MB / 0.6589 GB, free: 121.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.22e-05/0.9995, allocations: 77.97 kB / 0.659 GB, free: 121.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001295/1.001, allocations: 1.031 MB / 0.66 GB, free: 120.9 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001692/1.001, allocations: 28.86 kB / 0.66 GB, free: 120.9 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005243/1.001, allocations: 1.559 MB / 0.6616 GB, free: 120.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006673/1.002, allocations: 1.079 MB / 0.6626 GB, free: 119.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001804/1.002, allocations: 0 / 0.6626 GB, free: 119.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002113/1.003, allocations: 0.4957 MB / 0.6631 GB, free: 119.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002381/1.005, allocations: 2.299 MB / 0.6653 GB, free: 119.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002631/1.008, allocations: 3.004 MB / 0.6683 GB, free: 118.6 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003432/1.011, allocations: 2.894 MB / 0.6711 GB, free: 118.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.123e-05/1.011, allocations: 6.969 kB / 0.6711 GB, free: 118.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.00771/1.019, allocations: 6.484 MB / 0.6774 GB, free: 118.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/1.019, allocations: 7.141 kB / 0.6775 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.071e-05/1.019, allocations: 20.94 kB / 0.6775 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001749/1.021, allocations: 1.423 MB / 0.6789 GB, free: 118.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002189/1.023, allocations: 0.5486 MB / 0.6794 GB, free: 118.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003947/1.027, allocations: 5.441 MB / 0.6847 GB, free: 116.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001947/1.029, allocations: 289.9 kB / 0.685 GB, free: 116 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002766/1.029, allocations: 154 kB / 0.6851 GB, free: 116 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: complexToPolar[2].u.im:VARIABLE() "Imaginary part of complex number" type: Real [3] complexToPolar[2].u.re:VARIABLE() "Real part of complex number" type: Real [3] complexToPolar[1].u.re:VARIABLE() "Real part of complex number" type: Real [3] complexToPolar[3].u.re:VARIABLE() "Real part of complex number" type: Real [3] complexToPolar[3].u.im:VARIABLE() "Imaginary part of complex number" type: Real [3] complexToPolar[1].u.im:VARIABLE() "Imaginary part of complex number" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: powerSensor.powerSensor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensor.powerSensor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensor.powerSensor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensor.powerSensor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensor.powerSensor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensor.powerSensor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star2.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star2.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star2.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star2.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star2.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star2.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (318): * Single equations (assignments): 256 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 58 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,6 9,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005465/1.03, allocations: 231.3 kB / 0.6854 GB, free: 115.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003301/1.03, allocations: 172.8 kB / 0.6855 GB, free: 115.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007034/1.037, allocations: 5.88 MB / 0.6913 GB, free: 115.6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006032/1.043, allocations: 5.426 MB / 0.6966 GB, free: 115.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-05/1.043, allocations: 0 / 0.6966 GB, free: 115.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-05/1.043, allocations: 17.3 kB / 0.6966 GB, free: 115.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01437/1.057, allocations: 11.04 MB / 0.7074 GB, free: 112.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/1.057, allocations: 0 / 0.7074 GB, free: 112.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001575/1.059, allocations: 324.2 kB / 0.7077 GB, free: 112.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001891/1.061, allocations: 1.398 MB / 0.709 GB, free: 112.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002274/1.061, allocations: 45.03 kB / 0.7091 GB, free: 112.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004424/1.066, allocations: 5.398 MB / 0.7143 GB, free: 108.9 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/1.066, allocations: 2 kB / 0.7144 GB, free: 108.9 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01101/1.077, allocations: 9.054 MB / 0.7232 GB, free: 105.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001389/1.078, allocations: 0.7582 MB / 0.7239 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003984/1.079, allocations: 0 / 0.7239 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009785/1.079, allocations: 37.42 kB / 0.724 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004771/1.08, allocations: 239.6 kB / 0.7242 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002084/1.08, allocations: 80.94 kB / 0.7243 GB, free: 104.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.000831/1.081, allocations: 0.7443 MB / 0.725 GB, free: 104.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002523/1.084, allocations: 1.001 MB / 0.726 GB, free: 103.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSensor0.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (191): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 58 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {6 9,6 9,6 9,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004231/1.084, allocations: 172.6 kB / 0.7261 GB, free: 103.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006344/1.09, allocations: 5.345 MB / 0.7314 GB, free: 98.96 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/1.09, allocations: 0 / 0.7314 GB, free: 98.96 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003022/1.093, allocations: 2.588 MB / 0.7339 GB, free: 96.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001559/1.095, allocations: 267.7 kB / 0.7341 GB, free: 96.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0136/1.109, allocations: 8.483 MB / 0.7424 GB, free: 89.08 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00303/1.112, allocations: 3.482 MB / 0.7458 GB, free: 86.29 MB / 410.7 MB Notification: Performance of SimCode: time 1.493e-06/1.112, allocations: 3.469 kB / 0.7458 GB, free: 86.29 MB / 410.7 MB Notification: Performance of Templates: time 0.06346/1.175, allocations: 49.24 MB / 0.7939 GB, free: 47.94 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.sim & ./Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/MultiPhase/Examples/BalancingStar/BalancingStar.csv","../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches