Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingDelta.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.BalancingDelta,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingDelta",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingDelta,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingDelta",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.001016/0.001016, allocations: 180.2 kB / 8.478 MB, free: 1.84 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.029/1.029, 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.0008647/0.0008647, allocations: 91.25 kB / 262.1 MB, free: 5.125 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1421/0.143, allocations: 52.97 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05871/0.2017, allocations: 47.59 MB / 362.6 MB, free: 9.848 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.204/0.4057, allocations: 88.55 MB / 451.2 MB, free: 9.18 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001957/0.4059, allocations: 79.64 kB / 451.3 MB, free: 9.168 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1203 * Number of variables: 1203 Notification: Performance of Generate backend data structure: time 0.4067/0.8127, allocations: 143 MB / 0.5804 GB, free: 90.87 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.8127, allocations: 10.25 kB / 0.5804 GB, free: 90.87 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009889/0.8226, allocations: 1.765 MB / 0.5821 GB, free: 90.66 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003763/0.8264, allocations: 2.439 MB / 0.5845 GB, free: 90.4 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001349/0.8266, allocations: 144.4 kB / 0.5846 GB, free: 90.4 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005379/0.8271, allocations: 243.2 kB / 0.5848 GB, free: 90.4 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00705/0.8342, allocations: 5.33 MB / 0.5901 GB, free: 90.37 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008054/0.8422, allocations: 6.254 MB / 0.5962 GB, free: 89.87 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001036/0.8423, allocations: 3.797 kB / 0.5962 GB, free: 89.87 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003921/0.8427, allocations: 3.938 kB / 0.5962 GB, free: 89.87 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001814/0.8429, allocations: 278.3 kB / 0.5964 GB, free: 89.86 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02389/0.8668, allocations: 21.67 MB / 0.6176 GB, free: 86.04 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00308/0.8699, allocations: 3.472 MB / 0.621 GB, free: 86 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002919/0.8729, allocations: 2.907 MB / 0.6238 GB, free: 85.75 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01193/0.8848, allocations: 11.06 MB / 0.6346 GB, free: 79.25 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.025e-05/0.8849, allocations: 52.31 kB / 0.6347 GB, free: 79.2 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 4.698e-06/0.8849, allocations: 0 / 0.6347 GB, free: 79.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=280): time 0.005083/0.89, allocations: 4.556 MB / 0.6391 GB, free: 77.41 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.409e-05/0.89, allocations: 75.69 kB / 0.6392 GB, free: 77.34 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001248/0.8913, allocations: 1.133 MB / 0.6403 GB, free: 76.86 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001323/0.8914, allocations: 29.7 kB / 0.6403 GB, free: 76.82 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004491/0.8919, allocations: 1.571 MB / 0.6419 GB, free: 75.63 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004809/0.8924, allocations: 0.9012 MB / 0.6427 GB, free: 74.92 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001623/0.8925, allocations: 0 / 0.6427 GB, free: 74.92 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.8927, allocations: 0.4916 MB / 0.6432 GB, free: 74.53 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002114/0.8948, allocations: 2.043 MB / 0.6452 GB, free: 73.74 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00274/0.8976, allocations: 2.812 MB / 0.648 GB, free: 72.02 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003625/0.9012, allocations: 2.624 MB / 0.6505 GB, free: 71.03 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.612e-05/0.9012, allocations: 6.812 kB / 0.6505 GB, free: 71.03 MB / 426.7 MB Notification: Performance of matching and sorting (n=450) (initialization): time 0.008169/0.9094, allocations: 5.794 MB / 0.6562 GB, free: 68.93 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.9095, allocations: 3.594 kB / 0.6562 GB, free: 68.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.128e-05/0.9095, allocations: 22.12 kB / 0.6562 GB, free: 68.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001366/0.9109, allocations: 1.076 MB / 0.6573 GB, free: 68.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002256/0.9131, allocations: 0.5868 MB / 0.6578 GB, free: 67.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00295/0.9161, allocations: 4.08 MB / 0.6618 GB, free: 63.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001997/0.9181, allocations: 310.8 kB / 0.6621 GB, free: 63.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002821/0.9184, allocations: 143.3 kB / 0.6623 GB, free: 63.52 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: complexToPolar[3].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.im:VARIABLE() "Imaginary part of complex number" type: Real [3] complexToPolar[2].u.re:VARIABLE() "Real part of complex number" type: Real [3] complexToPolar[2].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[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] 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] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: 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[1].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[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] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (332): * Single equations (assignments): 280 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 49 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {6 9,6 9,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0004778/0.9189, allocations: 229.2 kB / 0.6625 GB, free: 63.35 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002977/0.9192, allocations: 165.8 kB / 0.6626 GB, free: 63.18 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005764/0.925, allocations: 4.891 MB / 0.6674 GB, free: 59 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004773/0.9298, allocations: 4.471 MB / 0.6718 GB, free: 55.06 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.9298, allocations: 0 / 0.6718 GB, free: 55.06 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-05/0.9298, allocations: 11.16 kB / 0.6718 GB, free: 55.06 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01137/0.9412, allocations: 9.158 MB / 0.6807 GB, free: 47.35 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.867e-06/0.9412, allocations: 0 / 0.6807 GB, free: 47.35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001404/0.9426, allocations: 290.2 kB / 0.681 GB, free: 47.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001241/0.9439, allocations: 1.042 MB / 0.682 GB, free: 46.25 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001802/0.9441, allocations: 35.31 kB / 0.6821 GB, free: 46.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002819/0.9469, allocations: 4.038 MB / 0.686 GB, free: 42.46 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.9469, allocations: 4 kB / 0.686 GB, free: 42.46 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007616/0.9545, allocations: 7.562 MB / 0.6934 GB, free: 35.76 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01015/0.9647, allocations: 10.76 MB / 0.7039 GB, free: 26.17 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005216/0.9653, allocations: 313.3 kB / 0.7042 GB, free: 25.86 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004514/0.9657, allocations: 0 / 0.7042 GB, free: 25.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.9668, allocations: 39.52 kB / 0.7042 GB, free: 25.84 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003543/0.9671, allocations: 207.3 kB / 0.7044 GB, free: 25.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001781/0.9673, allocations: 67.31 kB / 0.7045 GB, free: 25.65 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0009289/0.9683, allocations: 0.7988 MB / 0.7053 GB, free: 24.93 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002924/0.9712, allocations: 0.9437 MB / 0.7062 GB, free: 24 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSensor31.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (167): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 49 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {6 9,6 9,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003896/0.9716, allocations: 173.2 kB / 0.7064 GB, free: 23.86 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005281/0.9769, allocations: 4.697 MB / 0.711 GB, free: 19.72 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.9769, allocations: 0 / 0.711 GB, free: 19.72 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002333/0.9792, allocations: 2.162 MB / 0.7131 GB, free: 17.82 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001256/0.9805, allocations: 237.5 kB / 0.7133 GB, free: 17.64 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01227/0.9928, allocations: 7.603 MB / 0.7207 GB, free: 11 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003268/0.9961, allocations: 3.199 MB / 0.7238 GB, free: 8.422 MB / 426.7 MB Notification: Performance of SimCode: time 9.91e-07/0.9961, allocations: 0 / 0.7238 GB, free: 8.422 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingDelta.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingDelta.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingDelta.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingDelta.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingDelta_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingDelta_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingDelta.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingDelta.pipe 2>&1)