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"}) [: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.0009603/0.0009602, allocations: 182.8 kB / 8.477 MB, free: 1.859 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.056/1.056, allocations: 205.2 MB / 214.1 MB, free: 13.91 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.0008961/0.0008961, allocations: 91.42 kB / 262.1 MB, free: 13.54 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09106/0.09199, allocations: 52.99 MB / 315.1 MB, free: 8.496 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1872/0.2792, allocations: 47.56 MB / 362.6 MB, free: 45.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08934/0.3686, allocations: 88.64 MB / 451.3 MB, free: 13.21 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001909/0.3688, allocations: 79.95 kB / 451.4 MB, free: 13.14 MB / 346.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.416/0.7848, allocations: 158.3 MB / 0.5954 GB, free: 46.31 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.7849, allocations: 12 kB / 0.5954 GB, free: 46.3 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009523/0.7944, allocations: 1.638 MB / 0.597 GB, free: 44.65 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004991/0.7994, allocations: 2.689 MB / 0.5996 GB, free: 41.92 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002985/0.7997, allocations: 155.9 kB / 0.5997 GB, free: 41.77 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001249/0.801, allocations: 268 kB / 0.6 GB, free: 41.5 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00979/0.8108, allocations: 5.673 MB / 0.6055 GB, free: 35.82 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0124/0.8232, allocations: 6.861 MB / 0.6122 GB, free: 28.79 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001238/0.8234, allocations: 7.906 kB / 0.6122 GB, free: 28.78 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007688/0.8242, allocations: 8 kB / 0.6123 GB, free: 28.77 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002205/0.8244, allocations: 309.3 kB / 0.6125 GB, free: 28.46 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03266/0.8571, allocations: 23.17 MB / 0.6352 GB, free: 4.852 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004157/0.8612, allocations: 3.726 MB / 0.6388 GB, free: 1.121 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003921/0.8652, allocations: 3.265 MB / 0.642 GB, free: 13.83 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01749/0.8827, allocations: 11.88 MB / 0.6536 GB, free: 1.551 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.183e-05/0.8828, allocations: 60.47 kB / 0.6537 GB, free: 1.48 MB / 410.7 MB Notification: Performance of pre-optimization done (n=336): time 6.683e-06/0.8828, allocations: 0 / 0.6537 GB, free: 1.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=336): time 0.1168/0.9996, allocations: 5.48 MB / 0.659 GB, free: 118.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.975e-05/0.9997, allocations: 79.72 kB / 0.6591 GB, free: 118.6 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001207/1.001, allocations: 1.031 MB / 0.6601 GB, free: 118.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001963/1.001, allocations: 25.7 kB / 0.6601 GB, free: 118.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004848/1.002, allocations: 1.564 MB / 0.6617 GB, free: 117.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006695/1.002, allocations: 1.071 MB / 0.6627 GB, free: 117.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001807/1.002, allocations: 3.594 kB / 0.6627 GB, free: 117.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001982/1.003, allocations: 0.4983 MB / 0.6632 GB, free: 116.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002439/1.005, allocations: 2.3 MB / 0.6654 GB, free: 116.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002701/1.008, allocations: 3.003 MB / 0.6684 GB, free: 116.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003593/1.011, allocations: 2.899 MB / 0.6712 GB, free: 116.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.377e-05/1.011, allocations: 6.844 kB / 0.6712 GB, free: 116.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.007898/1.019, allocations: 6.486 MB / 0.6775 GB, free: 115.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/1.019, allocations: 5.719 kB / 0.6775 GB, free: 115.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.891e-05/1.019, allocations: 20.22 kB / 0.6776 GB, free: 115.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001822/1.021, allocations: 1.415 MB / 0.6789 GB, free: 115.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002331/1.024, allocations: 0.5575 MB / 0.6795 GB, free: 115.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004146/1.028, allocations: 5.439 MB / 0.6848 GB, free: 113.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001961/1.03, allocations: 286.6 kB / 0.6851 GB, free: 113.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003099/1.03, allocations: 146 kB / 0.6852 GB, free: 113.5 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.000596/1.031, allocations: 243.4 kB / 0.6854 GB, free: 113.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003561/1.031, allocations: 175.3 kB / 0.6856 GB, free: 113.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007095/1.038, allocations: 5.887 MB / 0.6914 GB, free: 113.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006006/1.044, allocations: 5.418 MB / 0.6966 GB, free: 113 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/1.044, allocations: 0 / 0.6966 GB, free: 113 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.888e-05/1.044, allocations: 11.25 kB / 0.6967 GB, free: 113 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0138/1.058, allocations: 11.05 MB / 0.7075 GB, free: 110.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.174e-05/1.058, allocations: 0 / 0.7075 GB, free: 110.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001615/1.06, allocations: 325.3 kB / 0.7078 GB, free: 110.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002035/1.062, allocations: 1.387 MB / 0.7091 GB, free: 110 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002679/1.062, allocations: 41.36 kB / 0.7092 GB, free: 110 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004592/1.067, allocations: 5.408 MB / 0.7144 GB, free: 106.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/1.067, allocations: 0 / 0.7144 GB, free: 106.6 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01078/1.077, allocations: 9.051 MB / 0.7233 GB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01221/1.09, allocations: 12.78 MB / 0.7358 GB, free: 93.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001219/1.091, allocations: 0.7514 MB / 0.7365 GB, free: 92.87 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003719/1.091, allocations: 7.906 kB / 0.7365 GB, free: 92.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009589/1.092, allocations: 37.34 kB / 0.7365 GB, free: 92.84 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004098/1.093, allocations: 243.6 kB / 0.7368 GB, free: 92.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001962/1.093, allocations: 83.2 kB / 0.7368 GB, free: 92.62 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0007668/1.094, allocations: 0.7423 MB / 0.7376 GB, free: 91.96 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002905/1.097, allocations: 1.005 MB / 0.7386 GB, free: 90.96 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.0004239/1.097, allocations: 175.9 kB / 0.7387 GB, free: 90.82 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005974/1.103, allocations: 5.351 MB / 0.7439 GB, free: 86.12 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/1.103, allocations: 0 / 0.7439 GB, free: 86.12 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002835/1.106, allocations: 2.587 MB / 0.7465 GB, free: 83.86 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001446/1.107, allocations: 266.3 kB / 0.7467 GB, free: 83.66 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01246/1.12, allocations: 8.484 MB / 0.755 GB, free: 76.24 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002879/1.123, allocations: 3.483 MB / 0.7584 GB, free: 73.45 MB / 410.7 MB Notification: Performance of SimCode: time 6.62e-07/1.123, allocations: 0 / 0.7584 GB, free: 73.45 MB / 410.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)