Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001662/0.001662, allocations: 184.6 kB / 8.155 MB, free: 2.195 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.713/1.713, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.001239/0.001239, allocations: 94.53 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.057e-05/1.075e-05, allocations: 4 kB / 314.3 MB, free: 9.027 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.2414, allocations: 47.55 MB / 361.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.138/0.3795, allocations: 88.64 MB / 450.5 MB, free: 13.39 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003086/0.3799, allocations: 83.94 kB / 450.6 MB, free: 13.3 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.6348/1.015, allocations: 153.9 MB / 0.5903 GB, free: 50.48 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000244/1.015, allocations: 99.88 kB / 0.5904 GB, free: 50.38 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.0207/1.036, allocations: 4.262 MB / 0.5946 GB, free: 46.06 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/1.036, allocations: 8.031 kB / 0.5946 GB, free: 46.05 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0158/1.052, allocations: 1.634 MB / 0.5962 GB, free: 44.41 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00818/1.06, allocations: 2.692 MB / 0.5988 GB, free: 41.69 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004846/1.06, allocations: 159.9 kB / 0.599 GB, free: 41.53 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001948/1.062, allocations: 256 kB / 0.5992 GB, free: 41.28 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0174/1.08, allocations: 5.677 MB / 0.6048 GB, free: 35.6 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02276/1.103, allocations: 6.872 MB / 0.6115 GB, free: 28.55 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001971/1.103, allocations: 7.906 kB / 0.6115 GB, free: 28.54 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001473/1.104, allocations: 0 / 0.6115 GB, free: 28.54 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003661/1.105, allocations: 305.3 kB / 0.6118 GB, free: 28.24 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06009/1.165, allocations: 23.18 MB / 0.6344 GB, free: 4.684 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008118/1.173, allocations: 3.719 MB / 0.638 GB, free: 0.9609 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00854/1.182, allocations: 3.265 MB / 0.6412 GB, free: 13.67 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0357/1.217, allocations: 11.89 MB / 0.6528 GB, free: 1.387 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.227e-05/1.217, allocations: 60.47 kB / 0.6529 GB, free: 1.316 MB / 410.7 MB Notification: Performance of pre-optimization done (n=336): time 7.935e-06/1.217, allocations: 0 / 0.6529 GB, free: 1.316 MB / 410.7 MB Notification: Performance of matching and sorting (n=336): time 0.164/1.381, allocations: 5.484 MB / 0.6583 GB, free: 121.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/1.382, allocations: 77.12 kB / 0.6583 GB, free: 121.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002201/1.384, allocations: 1.027 MB / 0.6593 GB, free: 121 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000683/1.384, allocations: 25.7 kB / 0.6594 GB, free: 121 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008293/1.385, allocations: 1.586 MB / 0.6609 GB, free: 120.4 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001703/1.387, allocations: 1.069 MB / 0.6619 GB, free: 119.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003992/1.387, allocations: 5.281 kB / 0.6619 GB, free: 119.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003742/1.388, allocations: 469.6 kB / 0.6624 GB, free: 119.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005445/1.393, allocations: 2.297 MB / 0.6646 GB, free: 119.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006585/1.4, allocations: 3.005 MB / 0.6676 GB, free: 118.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007726/1.408, allocations: 2.891 MB / 0.6704 GB, free: 118.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-05/1.408, allocations: 6.531 kB / 0.6704 GB, free: 118.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.01737/1.425, allocations: 6.443 MB / 0.6767 GB, free: 118.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.585e-05/1.425, allocations: 6.25 kB / 0.6767 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-05/1.425, allocations: 18.44 kB / 0.6767 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003786/1.429, allocations: 1.421 MB / 0.6781 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005156/1.434, allocations: 0.5566 MB / 0.6787 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00829/1.443, allocations: 5.456 MB / 0.684 GB, free: 116.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003239/1.446, allocations: 235 kB / 0.6842 GB, free: 116.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008466/1.447, allocations: 147.7 kB / 0.6843 GB, free: 116.1 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.001143/1.448, allocations: 160.9 kB / 0.6845 GB, free: 116.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006975/1.449, allocations: 179.2 kB / 0.6847 GB, free: 116 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01615/1.465, allocations: 5.889 MB / 0.6904 GB, free: 115.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01401/1.479, allocations: 5.419 MB / 0.6957 GB, free: 115.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.797e-05/1.479, allocations: 0 / 0.6957 GB, free: 115.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.783e-05/1.479, allocations: 13.2 kB / 0.6957 GB, free: 115.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03031/1.509, allocations: 11.1 MB / 0.7066 GB, free: 112.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.011e-05/1.51, allocations: 7.359 kB / 0.7066 GB, free: 112.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003703/1.513, allocations: 321.3 kB / 0.7069 GB, free: 112.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004057/1.517, allocations: 1.385 MB / 0.7082 GB, free: 112.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007563/1.518, allocations: 45.64 kB / 0.7083 GB, free: 112.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008846/1.527, allocations: 5.399 MB / 0.7135 GB, free: 108.9 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.094e-06/1.527, allocations: 0 / 0.7135 GB, free: 108.9 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02161/1.549, allocations: 9.048 MB / 0.7224 GB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002624/1.551, allocations: 0.7818 MB / 0.7231 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009723/1.552, allocations: 7.438 kB / 0.7231 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002382/1.555, allocations: 37.42 kB / 0.7232 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001174/1.556, allocations: 245.2 kB / 0.7234 GB, free: 104.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005225/1.557, allocations: 85.19 kB / 0.7235 GB, free: 104.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.001577/1.558, allocations: 0.7448 MB / 0.7242 GB, free: 104.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004904/1.563, allocations: 0.9987 MB / 0.7252 GB, free: 103.3 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.001025/1.564, allocations: 168.2 kB / 0.7254 GB, free: 103.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0135/1.578, allocations: 5.35 MB / 0.7306 GB, free: 98.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.613e-06/1.578, allocations: 0 / 0.7306 GB, free: 98.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007167/1.585, allocations: 2.58 MB / 0.7331 GB, free: 96.18 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003669/1.589, allocations: 270.1 kB / 0.7334 GB, free: 95.98 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02568/1.614, allocations: 8.373 MB / 0.7415 GB, free: 88.63 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006952/1.621, allocations: 3.393 MB / 0.7449 GB, free: 85.9 MB / 410.7 MB Notification: Performance of SimCode: time 1.273e-06/1.621, allocations: 0 / 0.7449 GB, free: 85.9 MB / 410.7 MB Notification: Performance of Templates: time 0.3501/1.972, allocations: 140.9 MB / 0.8824 GB, free: 115.7 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches