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: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002203/0.002203, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.083/2.083, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00113/0.00113, allocations: 93.81 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.484e-05/2.494e-05, allocations: 4 kB / 314.9 MB, free: 9.059 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3401/0.3401, allocations: 47.56 MB / 362.4 MB, free: 45.87 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2124/0.5526, allocations: 88.72 MB / 451.2 MB, free: 13.55 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004868/0.5531, allocations: 80.95 kB / 451.2 MB, free: 13.47 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7799/1.333, allocations: 154.8 MB / 0.5918 GB, free: 50.69 MB / 395.1 MB Notification: Performance of FrontEnd: time 3.196e-06/1.333, allocations: 0 / 0.5918 GB, free: 50.69 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002273/1.333, allocations: 99.88 kB / 0.5919 GB, free: 50.59 MB / 395.1 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.01922/1.353, allocations: 4.219 MB / 0.596 GB, free: 46.31 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/1.353, allocations: 8.031 kB / 0.596 GB, free: 46.3 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01402/1.367, allocations: 1.688 MB / 0.5977 GB, free: 44.61 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007839/1.375, allocations: 2.689 MB / 0.6003 GB, free: 41.87 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004535/1.375, allocations: 156 kB / 0.6004 GB, free: 41.71 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001843/1.377, allocations: 256 kB / 0.6007 GB, free: 41.46 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01516/1.392, allocations: 5.56 MB / 0.6061 GB, free: 35.9 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02055/1.413, allocations: 6.759 MB / 0.6127 GB, free: 28.96 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001778/1.413, allocations: 15.88 kB / 0.6127 GB, free: 28.95 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001178/1.414, allocations: 4 kB / 0.6127 GB, free: 28.95 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003613/1.415, allocations: 297.4 kB / 0.613 GB, free: 28.65 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05539/1.47, allocations: 22.35 MB / 0.6348 GB, free: 6.008 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01099/1.481, allocations: 6.395 MB / 0.6411 GB, free: 15.14 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008715/1.49, allocations: 3.22 MB / 0.6442 GB, free: 11.91 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03325/1.523, allocations: 10.81 MB / 0.6548 GB, free: 0.875 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.389e-05/1.523, allocations: 56.56 kB / 0.6548 GB, free: 0.8086 MB / 411.1 MB Notification: Performance of pre-optimization done (n=319): time 7.554e-06/1.523, allocations: 0 / 0.6548 GB, free: 0.8086 MB / 411.1 MB Notification: Performance of matching and sorting (n=319): time 0.3733/1.896, allocations: 5.266 MB / 0.66 GB, free: 81.72 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.723e-05/1.897, allocations: 82.56 kB / 0.6601 GB, free: 81.66 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001991/1.899, allocations: 1.004 MB / 0.661 GB, free: 81.52 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006617/1.899, allocations: 26.45 kB / 0.6611 GB, free: 81.49 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001026/1.9, allocations: 1.698 MB / 0.6627 GB, free: 80.73 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001624/1.902, allocations: 1.015 MB / 0.6637 GB, free: 80.13 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003531/1.902, allocations: 0.5938 kB / 0.6637 GB, free: 80.13 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0003425/1.903, allocations: 468.8 kB / 0.6642 GB, free: 79.81 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004778/1.908, allocations: 2.153 MB / 0.6663 GB, free: 79.8 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006211/1.914, allocations: 2.851 MB / 0.669 GB, free: 79.08 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008832/1.923, allocations: 3.007 MB / 0.672 GB, free: 79.04 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.695e-05/1.923, allocations: 5.781 kB / 0.672 GB, free: 79.04 MB / 411.1 MB Notification: Performance of matching and sorting (n=451) (initialization): time 0.01771/1.941, allocations: 6.337 MB / 0.6782 GB, free: 78.81 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.838e-05/1.941, allocations: 18.31 kB / 0.6782 GB, free: 78.81 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.393e-05/1.941, allocations: 18.78 kB / 0.6782 GB, free: 78.81 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003724/1.944, allocations: 1.403 MB / 0.6796 GB, free: 78.77 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004265/1.949, allocations: 0.5235 MB / 0.6801 GB, free: 78.77 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007958/1.957, allocations: 5.286 MB / 0.6853 GB, free: 76.65 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003444/1.96, allocations: 321.7 kB / 0.6856 GB, free: 76.48 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000907/1.961, allocations: 139.3 kB / 0.6857 GB, free: 76.48 MB / 411.1 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[1].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[3].u.re:VARIABLE() "Real part of complex number" type: Real [3] complexToPolar[1].u.im:VARIABLE() "Imaginary part of complex number" type: Real [3] complexToPolar[2].u.re:VARIABLE() "Real part of complex number" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: powerSensor.powerSensor[2].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[3].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[1].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] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: 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.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] 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[2].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[3].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] 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[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary 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[2].i.re:VARIABLE(flow=true unit = "A" ) "Real 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 (301): * Single equations (assignments): 239 * 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.001005/1.962, allocations: 241.3 kB / 0.6859 GB, free: 76.35 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01261/1.975, allocations: 5.274 MB / 0.6911 GB, free: 76.1 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009559/1.976, allocations: 176.5 kB / 0.6912 GB, free: 76.01 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01453/1.99, allocations: 5.645 MB / 0.6968 GB, free: 75.82 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01263/2.003, allocations: 5.24 MB / 0.7019 GB, free: 74.14 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.637e-05/2.003, allocations: 0 / 0.7019 GB, free: 74.14 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.644e-05/2.003, allocations: 11.5 kB / 0.7019 GB, free: 74.14 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02544/2.029, allocations: 10.35 MB / 0.712 GB, free: 69.7 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.549e-05/2.029, allocations: 0 / 0.712 GB, free: 69.7 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002656/2.031, allocations: 285 kB / 0.7123 GB, free: 69.69 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003386/2.035, allocations: 1.378 MB / 0.7136 GB, free: 69.22 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006777/2.036, allocations: 40.5 kB / 0.7137 GB, free: 69.21 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007176/2.043, allocations: 5.252 MB / 0.7188 GB, free: 65.81 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.965e-06/2.043, allocations: 0 / 0.7188 GB, free: 65.81 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01915/2.062, allocations: 8.621 MB / 0.7272 GB, free: 62.11 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002492/2.065, allocations: 0.7397 MB / 0.7279 GB, free: 61.58 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008363/2.065, allocations: 3.938 kB / 0.7279 GB, free: 61.58 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002017/2.067, allocations: 58.44 kB / 0.728 GB, free: 61.55 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008857/2.068, allocations: 241.2 kB / 0.7282 GB, free: 61.4 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003156/2.069, allocations: 80.86 kB / 0.7283 GB, free: 61.33 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.001351/2.07, allocations: 0.729 MB / 0.729 GB, free: 60.68 MB / 411.1 MB Notification: Performance of sort global known variables: time 5.82e-07/2.07, allocations: 0 / 0.729 GB, free: 60.68 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.004403/2.075, allocations: 0.9922 MB / 0.73 GB, free: 59.69 MB / 411.1 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 (174): * Single equations (assignments): 112 * 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.01964/2.094, allocations: 9.239 MB / 0.739 GB, free: 51.57 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.01201/2.106, allocations: 5.028 MB / 0.7439 GB, free: 47.16 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/2.106, allocations: 0 / 0.7439 GB, free: 47.16 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006395/2.113, allocations: 2.423 MB / 0.7463 GB, free: 45.06 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003509/2.116, allocations: 276.2 kB / 0.7465 GB, free: 44.86 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02781/2.144, allocations: 9.314 MB / 0.7556 GB, free: 36.86 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004889/2.149, allocations: 3.245 MB / 0.7588 GB, free: 34.27 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003276/2.152, allocations: 1.334 MB / 0.7601 GB, free: 33.04 MB / 411.1 MB Notification: Performance of SimCode: time 1.232e-06/2.153, allocations: 0 / 0.7601 GB, free: 33.04 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.985/6.138, allocations: 167.3 MB / 0.9234 GB, free: 35.42 MB / 427.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar_res.mat does not exist to compare? outputFormat=mat