Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.MultiPhaseInductance.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.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.MultiPhaseInductance,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_Components_MultiPhaseInductance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.MultiPhaseInductance,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_Components_MultiPhaseInductance",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.001072/0.001072, allocations: 178.6 kB / 8.475 MB, free: 1.875 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.187/1.187, allocations: 205.2 MB / 214.1 MB, free: 5.098 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.0008467/0.0008467, allocations: 87.27 kB / 262.1 MB, free: 5.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1552/0.1561, allocations: 52.98 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06328/0.2194, allocations: 47.57 MB / 362.6 MB, free: 9.859 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2173/0.4366, allocations: 93.78 MB / 456.4 MB, free: 7.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002153/0.4369, allocations: 83.77 kB / 456.5 MB, free: 7.418 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: 2549 * Number of variables: 2549 Notification: Performance of Generate backend data structure: time 0.8594/1.296, allocations: 314.7 MB / 0.7531 GB, free: 54.18 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/1.296, allocations: 7.75 kB / 0.7531 GB, free: 54.18 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03096/1.327, allocations: 5.076 MB / 0.7581 GB, free: 53.73 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01215/1.339, allocations: 6.099 MB / 0.764 GB, free: 52.96 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004026/1.34, allocations: 285.8 kB / 0.7643 GB, free: 52.96 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001892/1.342, allocations: 486.5 kB / 0.7648 GB, free: 52.95 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02198/1.364, allocations: 14.46 MB / 0.7789 GB, free: 52.91 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02676/1.391, allocations: 15.58 MB / 0.7941 GB, free: 52.12 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002552/1.391, allocations: 6.719 kB / 0.7941 GB, free: 52.12 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001944/1.393, allocations: 7.125 kB / 0.7941 GB, free: 52.12 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005755/1.393, allocations: 0.7477 MB / 0.7948 GB, free: 52.09 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07865/1.472, allocations: 50.99 MB / 0.8446 GB, free: 35.34 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0147/1.487, allocations: 11.07 MB / 0.8554 GB, free: 27.16 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01115/1.498, allocations: 9.571 MB / 0.8648 GB, free: 18.49 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008055/1.499, allocations: 321.5 kB / 0.8651 GB, free: 18.23 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.161e-05/1.499, allocations: 108.6 kB / 0.8652 GB, free: 18.11 MB / 426.7 MB Notification: Performance of pre-optimization done (n=968): time 1.466e-05/1.499, allocations: 0 / 0.8652 GB, free: 18.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=968): time 0.02605/1.525, allocations: 18.33 MB / 0.8831 GB, free: 2.043 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.416e-05/1.525, allocations: 155.2 kB / 0.8832 GB, free: 1.871 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002468/1.528, allocations: 1.547 MB / 0.8848 GB, free: 0.5195 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007655/1.528, allocations: 29.64 kB / 0.8848 GB, free: 496 kB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001211/1.53, allocations: 2.276 MB / 0.887 GB, free: 14.5 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002842/1.532, allocations: 3.04 MB / 0.89 GB, free: 11.69 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007318/1.533, allocations: 0 / 0.89 GB, free: 11.69 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005264/1.534, allocations: 0.6551 MB / 0.8906 GB, free: 11.12 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009334/1.543, allocations: 6.862 MB / 0.8973 GB, free: 5.098 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2236/1.767, allocations: 7.81 MB / 0.9049 GB, free: 102.1 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01202/1.779, allocations: 8.132 MB / 0.9129 GB, free: 101.9 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.828e-05/1.779, allocations: 3.438 kB / 0.9129 GB, free: 101.9 MB / 442.8 MB Notification: Performance of matching and sorting (n=1038) (initialization): time 0.02594/1.805, allocations: 19.01 MB / 0.9315 GB, free: 101.6 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/1.805, allocations: 11.22 kB / 0.9315 GB, free: 101.6 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-05/1.805, allocations: 3.969 kB / 0.9315 GB, free: 101.6 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01222/1.817, allocations: 6.587 MB / 0.9379 GB, free: 101.6 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006991/1.824, allocations: 1.135 MB / 0.939 GB, free: 101.6 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01672/1.841, allocations: 13.72 MB / 0.9524 GB, free: 99.44 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005414/1.846, allocations: 0.5978 MB / 0.953 GB, free: 99.32 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001805/1.848, allocations: 273.5 kB / 0.9533 GB, free: 99.32 MB / 442.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: inductor_e.inductor[4].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [5] resistor_e.resistor[4].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [5] resistor_e.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [5] resistor_e.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [5] resistor_e.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [5] resistor_e.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [5] inductor_e.inductor[5].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [5] resistor_e.resistor[5].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [5] resistor_e.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [5] resistor_e.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [5] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star_e.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [5] star_e.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [5] star_e.plugToPins_p.pin_p[5].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [5] star_e.plugToPins_p.pin_p[5].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [5] star_e.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [5] star_e.plugToPins_p.pin_p[4].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [5] star_e.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [5] star_e.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [5] star_e.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [5] star_e.plugToPins_p.pin_p[4].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [5] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: resistor_m.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [5] resistor_m.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [5] resistor_m.resistor[5].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [5] resistor_m.resistor[5].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [5] resistor_m.resistor[4].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [5] resistor_m.resistor[4].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [5] resistor_m.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [5] resistor_m.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [5] resistor_m.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [5] resistor_m.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [5] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star_m.plugToPins_p.pin_p[5].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [5] star_m.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [5] star_m.plugToPins_p.pin_p[4].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [5] star_m.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [5] star_m.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [5] star_m.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [5] star_m.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [5] star_m.plugToPins_p.pin_p[5].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [5] star_m.plugToPins_p.pin_p[4].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [5] star_m.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [5] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (599): * Single equations (assignments): 520 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 75 * 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 {10 25,10 63,10 25,10 95} Notification: Performance of prepare postOptimizeDAE: time 0.002866/1.851, allocations: 280.9 kB / 0.9535 GB, free: 99.2 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001701/1.853, allocations: 404.6 kB / 0.9539 GB, free: 98.98 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03075/1.883, allocations: 20.44 MB / 0.9739 GB, free: 97.58 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002166/1.884, allocations: 280.9 kB / 0.9741 GB, free: 97.43 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.3e-05/1.884, allocations: 0 / 0.9741 GB, free: 97.43 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.825e-05/1.884, allocations: 39.81 kB / 0.9742 GB, free: 97.43 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04913/1.933, allocations: 34.07 MB / 1.007 GB, free: 83.89 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.837e-05/1.933, allocations: 0 / 1.007 GB, free: 83.89 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005776/1.939, allocations: 1.083 MB / 1.009 GB, free: 83.86 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01231/1.951, allocations: 6.59 MB / 1.015 GB, free: 79.26 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001051/1.952, allocations: 116.4 kB / 1.015 GB, free: 79.18 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01434/1.967, allocations: 13.72 MB / 1.028 GB, free: 66.95 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/1.967, allocations: 0 / 1.028 GB, free: 66.95 MB / 442.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03861/2.005, allocations: 30.48 MB / 1.058 GB, free: 40.29 MB / 442.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04952/2.055, allocations: 42.26 MB / 1.099 GB, free: 3.242 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004842/2.06, allocations: 2.136 MB / 1.102 GB, free: 1.43 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001902/2.062, allocations: 7.25 kB / 1.102 GB, free: 1.426 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004579/2.066, allocations: 235.3 kB / 1.102 GB, free: 1.285 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001905/2.068, allocations: 0.6843 MB / 1.102 GB, free: 0.8516 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001158/2.069, allocations: 258.2 kB / 1.103 GB, free: 0.625 MB / 442.8 MB Notification: Performance of sort global known variables: time 0.1255/2.195, allocations: 1.233 MB / 1.104 GB, free: 103.1 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.006249/2.201, allocations: 2.187 MB / 1.106 GB, free: 103 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (resistor_m.plug_p.reference.gamma,resistor_e.plug_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (574): * Single equations (assignments): 495 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 75 * 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 {10 25,10 63,10 25,10 95} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008264/2.202, allocations: 207.6 kB / 1.106 GB, free: 102.9 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.02148/2.223, allocations: 16.36 MB / 1.122 GB, free: 102.7 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/2.223, allocations: 3.812 kB / 1.122 GB, free: 102.7 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01251/2.236, allocations: 8.738 MB / 1.131 GB, free: 102.7 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003203/2.239, allocations: 427.3 kB / 1.131 GB, free: 102.6 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03343/2.273, allocations: 20.41 MB / 1.151 GB, free: 100.5 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01007/2.283, allocations: 6.695 MB / 1.158 GB, free: 99.61 MB / 442.8 MB Notification: Performance of SimCode: time 7.82e-07/2.283, allocations: 0 / 1.158 GB, free: 99.61 MB / 442.8 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.MultiPhaseInductance.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.MultiPhaseInductance.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.MultiPhaseInductance.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.MultiPhaseInductance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.MultiPhaseInductance_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_Components_MultiPhaseInductance_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_Components_MultiPhaseInductance.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.MultiPhaseInductance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.MultiPhaseInductance_res.mat does not exist to compare? outputFormat=mat