Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.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.UnsymmetricalLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|resistor1_3.pin_p.reference.gamma|resistor2_3.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad") translateModel(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|resistor1_3.pin_p.reference.gamma|resistor2_3.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad") [: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.0009833/0.0009833, allocations: 175.8 kB / 8.477 MB, free: 1.879 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.184/1.184, allocations: 205.2 MB / 214.1 MB, free: 5.078 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009066/0.0009067, allocations: 90.25 kB / 262.1 MB, free: 5.129 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.074e-06/7.104e-06, allocations: 4 kB / 315 MB, free: 41.46 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07817/0.0782, allocations: 47.58 MB / 362.6 MB, free: 9.93 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2706/0.3488, allocations: 88.6 MB / 451.2 MB, free: 9.418 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001991/0.3491, allocations: 84.2 kB / 451.2 MB, free: 9.406 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.5728/0.922, allocations: 214.6 MB / 0.6502 GB, free: 80.63 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004048/0.9224, allocations: 145.6 kB / 0.6504 GB, free: 80.62 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1888 * Number of variables: 1888 Notification: Performance of Generate backend data structure: time 0.02089/0.9433, allocations: 6.144 MB / 0.6564 GB, free: 77.93 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.9434, allocations: 8.812 kB / 0.6564 GB, free: 77.93 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02332/0.9667, allocations: 3.436 MB / 0.6597 GB, free: 77.23 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01109/0.9779, allocations: 3.953 MB / 0.6636 GB, free: 75.17 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006836/0.9786, allocations: 222.3 kB / 0.6638 GB, free: 75.17 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002757/0.9814, allocations: 380.6 kB / 0.6642 GB, free: 75.16 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01858/0.9999, allocations: 8.724 MB / 0.6727 GB, free: 68.28 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02618/1.026, allocations: 9.845 MB / 0.6823 GB, free: 58.23 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003008/1.027, allocations: 11.91 kB / 0.6823 GB, free: 58.22 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002071/1.029, allocations: 4 kB / 0.6823 GB, free: 58.22 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004579/1.029, allocations: 477.7 kB / 0.6828 GB, free: 57.75 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05779/1.087, allocations: 34.03 MB / 0.716 GB, free: 23.26 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007663/1.095, allocations: 5.578 MB / 0.7214 GB, free: 17.7 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006341/1.101, allocations: 4.706 MB / 0.726 GB, free: 12.98 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1768/1.278, allocations: 17.21 MB / 0.7428 GB, free: 109.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.015e-05/1.278, allocations: 80.3 kB / 0.7429 GB, free: 109.4 MB / 426.7 MB Notification: Performance of pre-optimization done (n=530): time 8.035e-06/1.278, allocations: 0 / 0.7429 GB, free: 109.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=530): time 0.01205/1.29, allocations: 8.571 MB / 0.7513 GB, free: 109.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.206e-05/1.29, allocations: 121.5 kB / 0.7514 GB, free: 109.1 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00195/1.292, allocations: 1.474 MB / 0.7529 GB, free: 108.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004153/1.292, allocations: 29.36 kB / 0.7529 GB, free: 108.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000909/1.293, allocations: 2.19 MB / 0.755 GB, free: 108.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001346/1.295, allocations: 1.696 MB / 0.7567 GB, free: 107 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003194/1.295, allocations: 3.656 kB / 0.7567 GB, free: 107 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002664/1.295, allocations: 0.5306 MB / 0.7572 GB, free: 106.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004081/1.299, allocations: 3.35 MB / 0.7605 GB, free: 106.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004776/1.304, allocations: 4.395 MB / 0.7648 GB, free: 105.6 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007016/1.311, allocations: 4.231 MB / 0.7689 GB, free: 105.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.648e-05/1.311, allocations: 8.938 kB / 0.7689 GB, free: 105.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01649/1.328, allocations: 9.937 MB / 0.7786 GB, free: 105.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/1.328, allocations: 6.75 kB / 0.7786 GB, free: 105.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.469e-05/1.328, allocations: 27.12 kB / 0.7786 GB, free: 105.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004176/1.332, allocations: 2.719 MB / 0.7813 GB, free: 105.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003974/1.336, allocations: 0.8239 MB / 0.7821 GB, free: 105.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008521/1.345, allocations: 10.03 MB / 0.7919 GB, free: 100.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003997/1.349, allocations: 436 kB / 0.7923 GB, free: 100.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001127/1.35, allocations: 227.6 kB / 0.7925 GB, free: 100.3 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: currentSensor1.y[2].re:VARIABLE() "Real part of complex number" type: Real [3] currentSensor1.y[1].im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentSensor1.y[1].re:VARIABLE() "Real part of complex number" type: Real [3] currentSensor1.y[2].im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentSensor1.y[3].re:VARIABLE() "Real part of complex number" type: Real [3] currentSensor1.y[3].im:VARIABLE() "Imaginary part of complex number" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star1_1.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star1_1.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star1_1.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star1_1.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star1_1.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star1_1.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star1_2.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star1_2.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star1_2.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star1_2.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star1_2.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star1_2.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star2_2.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star2_2.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star2_2.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star2_2.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] resistor2_2.i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real resistor2_2.i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: currentSensor2.y[2].im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentSensor2.y[3].im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentSensor2.y[3].re:VARIABLE() "Real part of complex number" type: Real [3] currentSensor2.y[1].re:VARIABLE() "Real part of complex number" type: Real [3] currentSensor2.y[1].im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentSensor2.y[2].re:VARIABLE() "Real part of complex number" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star2_1.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star2_1.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star2_1.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star2_1.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star2_1.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star2_1.plugToPins_p.pin_p[2].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: 132 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (482): * Single equations (assignments): 424 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 6 {6 9,6 9,6 51,6 9,6 9,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.001677/1.352, allocations: 299.9 kB / 0.7928 GB, free: 100.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008228/1.352, allocations: 278.3 kB / 0.7931 GB, free: 100.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01408/1.366, allocations: 9.305 MB / 0.8022 GB, free: 97.85 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001336/1.367, allocations: 147.1 kB / 0.8023 GB, free: 97.77 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.18e-05/1.367, allocations: 0 / 0.8023 GB, free: 97.77 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.602e-05/1.367, allocations: 21.61 kB / 0.8023 GB, free: 97.77 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0277/1.394, allocations: 16.72 MB / 0.8187 GB, free: 90.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.9e-05/1.394, allocations: 0 / 0.8187 GB, free: 90.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002484/1.397, allocations: 0.4937 MB / 0.8191 GB, free: 90.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003972/1.401, allocations: 2.662 MB / 0.8217 GB, free: 89.92 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005963/1.402, allocations: 60.69 kB / 0.8218 GB, free: 89.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008386/1.41, allocations: 9.958 MB / 0.8315 GB, free: 83.26 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/1.41, allocations: 0 / 0.8315 GB, free: 83.26 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01975/1.43, allocations: 13.84 MB / 0.845 GB, free: 71.69 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00101/1.431, allocations: 447.4 kB / 0.8455 GB, free: 71.24 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001178/1.432, allocations: 0 / 0.8455 GB, free: 71.24 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002339/1.434, allocations: 80.95 kB / 0.8455 GB, free: 71.19 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009059/1.435, allocations: 370.1 kB / 0.8459 GB, free: 70.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005155/1.436, allocations: 136.9 kB / 0.846 GB, free: 70.84 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001565/1.437, allocations: 1.057 MB / 0.8471 GB, free: 69.92 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005069/1.442, allocations: 1.466 MB / 0.8485 GB, free: 68.45 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (currentSensorN.pin_p.reference.gamma,resistor2_1.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (301): * Single equations (assignments): 243 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,6 51} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008383/1.443, allocations: 164.4 kB / 0.8486 GB, free: 68.32 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01412/1.457, allocations: 8.074 MB / 0.8565 GB, free: 61.16 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/1.457, allocations: 0.8125 kB / 0.8565 GB, free: 61.16 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007436/1.465, allocations: 4.074 MB / 0.8605 GB, free: 57.57 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003049/1.468, allocations: 361.1 kB / 0.8609 GB, free: 57.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02492/1.493, allocations: 12.31 MB / 0.8729 GB, free: 46.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005885/1.499, allocations: 4.666 MB / 0.8774 GB, free: 42.84 MB / 426.7 MB Notification: Performance of SimCode: time 2.024e-06/1.499, allocations: 2.156 kB / 0.8774 GB, free: 42.84 MB / 426.7 MB Notification: Performance of Templates: time 0.2531/1.752, allocations: 76.85 MB / 0.9525 GB, free: 93.02 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.sim & ./Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/MultiPhase/Examples/UnsymmetricalLoad/UnsymmetricalLoad.csv","../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches