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: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,fileNamePrefix="Modelica_3_2_3_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_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.001383/0.001383, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.441/1.441, allocations: 205.3 MB / 214.4 MB, free: 1.668 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.0007826/0.0007826, allocations: 86.23 kB / 262.4 MB, free: 1.621 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.685e-05/1.686e-05, allocations: 8 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07879/0.07882, allocations: 47.58 MB / 363.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2828/0.3616, allocations: 88.95 MB / 452.1 MB, free: 6.527 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002011/0.3619, allocations: 83.33 kB / 452.2 MB, free: 6.488 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4536/0.8155, allocations: 154.8 MB / 0.5927 GB, free: 90.4 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.8155, allocations: 0 / 0.5927 GB, free: 90.4 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001387/0.8157, allocations: 97 kB / 0.5928 GB, free: 90.39 MB / 410.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.009954/0.8256, allocations: 4.22 MB / 0.597 GB, free: 87.67 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.8257, allocations: 11.59 kB / 0.597 GB, free: 87.67 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008573/0.8343, allocations: 1.686 MB / 0.5986 GB, free: 86.86 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004277/0.8386, allocations: 2.682 MB / 0.6012 GB, free: 85.03 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001972/0.8388, allocations: 154.7 kB / 0.6014 GB, free: 85.03 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007393/0.8395, allocations: 263.6 kB / 0.6016 GB, free: 84.8 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008072/0.8476, allocations: 5.556 MB / 0.6071 GB, free: 79.23 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01081/0.8584, allocations: 6.759 MB / 0.6137 GB, free: 72.3 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.785e-05/0.8586, allocations: 3.906 kB / 0.6137 GB, free: 72.3 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004036/0.859, allocations: 11.94 kB / 0.6137 GB, free: 72.29 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002458/0.8592, allocations: 301.3 kB / 0.614 GB, free: 71.99 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02845/0.8877, allocations: 22.35 MB / 0.6358 GB, free: 49.58 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005357/0.8931, allocations: 6.401 MB / 0.642 GB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003477/0.8966, allocations: 3.212 MB / 0.6452 GB, free: 39.49 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01357/0.9102, allocations: 10.82 MB / 0.6557 GB, free: 28.58 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.701e-05/0.9103, allocations: 56.56 kB / 0.6558 GB, free: 28.51 MB / 410.7 MB Notification: Performance of pre-optimization done (n=319): time 5.09e-06/0.9103, allocations: 0 / 0.6558 GB, free: 28.51 MB / 410.7 MB Notification: Performance of matching and sorting (n=319): time 0.006288/0.9166, allocations: 5.271 MB / 0.6609 GB, free: 23.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.524e-05/0.9166, allocations: 73.41 kB / 0.661 GB, free: 23.11 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001178/0.9178, allocations: 1.009 MB / 0.662 GB, free: 22.08 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001453/0.918, allocations: 25.7 kB / 0.662 GB, free: 22.05 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005847/0.9186, allocations: 1.676 MB / 0.6637 GB, free: 20.35 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006033/0.9192, allocations: 1.016 MB / 0.6647 GB, free: 19.32 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/0.9194, allocations: 4 kB / 0.6647 GB, free: 19.31 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001954/0.9196, allocations: 0.506 MB / 0.6652 GB, free: 18.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002214/0.9218, allocations: 2.155 MB / 0.6673 GB, free: 16.64 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002477/0.9243, allocations: 2.841 MB / 0.67 GB, free: 13.53 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003766/0.928, allocations: 3.008 MB / 0.673 GB, free: 10.51 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.22e-05/0.9281, allocations: 4 kB / 0.673 GB, free: 10.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=451) (initialization): time 0.007637/0.9357, allocations: 6.383 MB / 0.6792 GB, free: 4.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.541e-05/0.9357, allocations: 12 kB / 0.6792 GB, free: 4.059 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.683e-05/0.9358, allocations: 23.95 kB / 0.6792 GB, free: 4.035 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001664/0.9375, allocations: 1.405 MB / 0.6806 GB, free: 2.617 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001796/0.9393, allocations: 0.5187 MB / 0.6811 GB, free: 2.098 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2055/1.145, allocations: 5.278 MB / 0.6863 GB, free: 85.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002372/1.147, allocations: 327.9 kB / 0.6866 GB, free: 85.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003041/1.148, allocations: 144 kB / 0.6867 GB, free: 85.43 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[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.0005981/1.148, allocations: 239.6 kB / 0.687 GB, free: 85.32 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007588/1.156, allocations: 5.281 MB / 0.6921 GB, free: 85.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004367/1.156, allocations: 172.3 kB / 0.6923 GB, free: 85.04 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008871/1.165, allocations: 5.633 MB / 0.6978 GB, free: 84.86 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006432/1.172, allocations: 5.237 MB / 0.7029 GB, free: 84.72 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/1.172, allocations: 0 / 0.7029 GB, free: 84.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-05/1.172, allocations: 15.3 kB / 0.7029 GB, free: 84.72 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01336/1.185, allocations: 10.36 MB / 0.713 GB, free: 84.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.155e-05/1.185, allocations: 0 / 0.713 GB, free: 84.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001264/1.186, allocations: 282.2 kB / 0.7133 GB, free: 84.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00172/1.188, allocations: 1.381 MB / 0.7146 GB, free: 84.21 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002408/1.188, allocations: 40.28 kB / 0.7147 GB, free: 84.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004279/1.193, allocations: 5.242 MB / 0.7198 GB, free: 81.88 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/1.193, allocations: 0.6562 kB / 0.7198 GB, free: 81.88 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01117/1.204, allocations: 8.623 MB / 0.7282 GB, free: 78.18 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001269/1.205, allocations: 0.7413 MB / 0.7289 GB, free: 77.79 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002859/1.205, allocations: 0 / 0.7289 GB, free: 77.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009028/1.206, allocations: 60.02 kB / 0.729 GB, free: 77.79 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003812/1.207, allocations: 245.4 kB / 0.7292 GB, free: 77.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000178/1.207, allocations: 80.86 kB / 0.7293 GB, free: 77.71 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008067/1.208, allocations: 0.7264 MB / 0.73 GB, free: 77.39 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.61e-07/1.208, allocations: 0 / 0.73 GB, free: 77.39 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002483/1.21, allocations: 0.9901 MB / 0.731 GB, free: 77.25 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 (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.009913/1.22, allocations: 9.246 MB / 0.74 GB, free: 73.02 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00672/1.227, allocations: 5.024 MB / 0.7449 GB, free: 71.12 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/1.227, allocations: 0 / 0.7449 GB, free: 71.12 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003116/1.23, allocations: 2.418 MB / 0.7473 GB, free: 69.81 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001921/1.232, allocations: 271.3 kB / 0.7475 GB, free: 69.62 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01822/1.25, allocations: 9.532 MB / 0.7568 GB, free: 61.52 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002571/1.253, allocations: 3.323 MB / 0.7601 GB, free: 58.89 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001869/1.255, allocations: 0.598 MB / 0.7607 GB, free: 58.48 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00145/1.256, allocations: 1.313 MB / 0.762 GB, free: 57.27 MB / 410.7 MB Notification: Performance of SimCode: time 1.223e-06/1.256, allocations: 0 / 0.762 GB, free: 57.27 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09739/1.354, allocations: 69.87 MB / 0.8302 GB, free: 11.59 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001719/1.354, allocations: 165.2 kB / 0.8303 GB, free: 11.39 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.133/4.487, allocations: 0 / 0.8303 GB, free: 11.39 MB / 426.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar_res.mat does not exist to compare? outputFormat=mat