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: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_UnsymmetricalLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_UnsymmetricalLoad",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.0009/0.0009, allocations: 179.5 kB / 8.477 MB, free: 1.883 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.011/1.011, allocations: 205.2 MB / 214.1 MB, free: 5.176 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.0008168/0.0008169, allocations: 77.98 kB / 262.1 MB, free: 5.219 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1476/0.1484, allocations: 52.97 MB / 315.1 MB, free: 41.42 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06224/0.2107, allocations: 47.58 MB / 362.6 MB, free: 9.895 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2046/0.4153, allocations: 88.62 MB / 451.3 MB, free: 9.371 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002333/0.4156, allocations: 79.05 kB / 451.3 MB, free: 9.359 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: 1888 * Number of variables: 1888 Notification: Performance of Generate backend data structure: time 0.5336/0.9492, allocations: 220.9 MB / 0.6565 GB, free: 78.08 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.9493, allocations: 8.812 kB / 0.6565 GB, free: 78.08 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02201/0.9713, allocations: 3.437 MB / 0.6598 GB, free: 77.38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008904/0.9803, allocations: 3.952 MB / 0.6637 GB, free: 75.31 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004881/0.9808, allocations: 222.2 kB / 0.6639 GB, free: 75.31 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001882/0.9827, allocations: 375.7 kB / 0.6643 GB, free: 75.31 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01379/0.9965, allocations: 8.728 MB / 0.6728 GB, free: 68.35 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01521/1.012, allocations: 9.845 MB / 0.6824 GB, free: 58.3 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001367/1.012, allocations: 15.73 kB / 0.6824 GB, free: 58.29 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006139/1.013, allocations: 4 kB / 0.6824 GB, free: 58.29 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003011/1.013, allocations: 477.7 kB / 0.6829 GB, free: 57.82 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04141/1.054, allocations: 34.02 MB / 0.7161 GB, free: 23.35 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006026/1.06, allocations: 5.576 MB / 0.7215 GB, free: 17.78 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004647/1.065, allocations: 4.714 MB / 0.7261 GB, free: 13.06 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1391/1.204, allocations: 17.21 MB / 0.7429 GB, free: 108.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.961e-05/1.204, allocations: 77.72 kB / 0.743 GB, free: 108.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=530): time 7.333e-06/1.204, allocations: 0 / 0.743 GB, free: 108.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=530): time 0.01066/1.215, allocations: 8.569 MB / 0.7514 GB, free: 108.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/1.215, allocations: 126.2 kB / 0.7515 GB, free: 108 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001751/1.217, allocations: 1.472 MB / 0.7529 GB, free: 107.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002737/1.217, allocations: 31.73 kB / 0.753 GB, free: 107.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007198/1.218, allocations: 2.187 MB / 0.7551 GB, free: 107 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001001/1.219, allocations: 1.692 MB / 0.7568 GB, free: 106 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000279/1.219, allocations: 0 / 0.7568 GB, free: 106 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002261/1.219, allocations: 0.5316 MB / 0.7573 GB, free: 105.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003556/1.223, allocations: 3.351 MB / 0.7606 GB, free: 105.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003907/1.227, allocations: 4.401 MB / 0.7649 GB, free: 104.6 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005463/1.232, allocations: 4.226 MB / 0.769 GB, free: 104.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.54e-05/1.232, allocations: 13.62 kB / 0.769 GB, free: 104.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01227/1.244, allocations: 9.94 MB / 0.7787 GB, free: 104.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/1.245, allocations: 3.875 kB / 0.7787 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.421e-05/1.245, allocations: 33.58 kB / 0.7787 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003624/1.248, allocations: 2.704 MB / 0.7814 GB, free: 104 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003267/1.251, allocations: 0.8346 MB / 0.7822 GB, free: 104 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007458/1.259, allocations: 10.03 MB / 0.792 GB, free: 99.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003075/1.262, allocations: 437.2 kB / 0.7924 GB, free: 99.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004662/1.263, allocations: 221.8 kB / 0.7926 GB, free: 99.29 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.0008245/1.263, allocations: 306.2 kB / 0.7929 GB, free: 99.16 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004945/1.264, allocations: 282.5 kB / 0.7932 GB, free: 99.01 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01122/1.275, allocations: 9.299 MB / 0.8023 GB, free: 96.88 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001087/1.275, allocations: 151.8 kB / 0.8024 GB, free: 96.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/1.275, allocations: 3.188 kB / 0.8024 GB, free: 96.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.998e-05/1.275, allocations: 20.95 kB / 0.8024 GB, free: 96.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02128/1.297, allocations: 16.71 MB / 0.8187 GB, free: 89.83 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.77e-05/1.297, allocations: 3.875 kB / 0.8187 GB, free: 89.83 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002299/1.299, allocations: 0.4965 MB / 0.8192 GB, free: 89.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00352/1.302, allocations: 2.66 MB / 0.8218 GB, free: 88.95 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003252/1.303, allocations: 57.98 kB / 0.8219 GB, free: 88.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007251/1.31, allocations: 9.96 MB / 0.8316 GB, free: 82.29 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/1.31, allocations: 0 / 0.8316 GB, free: 82.29 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01494/1.325, allocations: 13.85 MB / 0.8451 GB, free: 70.41 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02795/1.353, allocations: 29.07 MB / 0.8735 GB, free: 44.48 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007545/1.354, allocations: 450 kB / 0.8739 GB, free: 44.04 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000543/1.354, allocations: 10 kB / 0.874 GB, free: 44.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001672/1.356, allocations: 77.88 kB / 0.874 GB, free: 43.98 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006296/1.357, allocations: 367.6 kB / 0.8744 GB, free: 43.76 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003292/1.357, allocations: 138.9 kB / 0.8745 GB, free: 43.64 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001111/1.358, allocations: 1.052 MB / 0.8755 GB, free: 42.71 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004016/1.362, allocations: 1.478 MB / 0.877 GB, free: 41.24 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.0004894/1.363, allocations: 167.6 kB / 0.8771 GB, free: 41.11 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009384/1.372, allocations: 8.075 MB / 0.885 GB, free: 33.94 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/1.372, allocations: 4 kB / 0.885 GB, free: 33.93 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005212/1.377, allocations: 4.065 MB / 0.889 GB, free: 30.35 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002205/1.38, allocations: 357.7 kB / 0.8893 GB, free: 30.09 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01772/1.397, allocations: 12.34 MB / 0.9014 GB, free: 19.26 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004279/1.402, allocations: 4.673 MB / 0.906 GB, free: 15.59 MB / 426.7 MB Notification: Performance of SimCode: time 9.91e-07/1.402, allocations: 2.812 kB / 0.906 GB, free: 15.59 MB / 426.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_UnsymmetricalLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_UnsymmetricalLoad.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad_res.mat does not exist to compare? outputFormat=mat