Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",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.001454/0.001454, allocations: 177 kB / 8.699 MB, free: 384 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.672/1.672, allocations: 205.3 MB / 214.4 MB, free: 1.734 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.0009653/0.0009652, allocations: 82.23 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.646e-05/1.638e-05, allocations: 4 kB / 315.6 MB, free: 22.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0992/0.09923, allocations: 47.57 MB / 363.2 MB, free: 6.949 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4343/0.5336, allocations: 166.6 MB / 0.5174 GB, free: 10.36 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003055/0.5339, allocations: 99.5 kB / 0.5175 GB, free: 10.3 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.601/2.135, allocations: 389.3 MB / 0.8977 GB, free: 37.24 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.494e-06/2.135, allocations: 2.812 kB / 0.8977 GB, free: 37.24 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0009319/2.136, allocations: 262.1 kB / 0.8979 GB, free: 37.21 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3112 * Number of variables: 3112 Notification: Performance of Generate backend data structure: time 0.0409/2.177, allocations: 10.28 MB / 0.908 GB, free: 33.89 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/2.177, allocations: 10.41 kB / 0.908 GB, free: 33.89 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02615/2.203, allocations: 4.379 MB / 0.9123 GB, free: 33.25 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02663/2.23, allocations: 8.864 MB / 0.9209 GB, free: 32.09 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001005/2.231, allocations: 374.7 kB / 0.9213 GB, free: 32.09 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00557/2.237, allocations: 0.6395 MB / 0.9219 GB, free: 32.09 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03473/2.272, allocations: 13.26 MB / 0.9349 GB, free: 32.04 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05489/2.327, allocations: 15.53 MB / 0.95 GB, free: 28.99 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000801/2.327, allocations: 14.38 kB / 0.95 GB, free: 28.99 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005281/2.333, allocations: 6 kB / 0.95 GB, free: 28.99 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009972/2.334, allocations: 0.6922 MB / 0.9507 GB, free: 28.85 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1349/2.469, allocations: 56.86 MB / 1.006 GB, free: 7.793 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4464/2.915, allocations: 17.61 MB / 1.023 GB, free: 42.58 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01541/2.931, allocations: 6.285 MB / 1.03 GB, free: 42.51 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04893/2.979, allocations: 19.19 MB / 1.048 GB, free: 41.33 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.273e-05/2.98, allocations: 91.66 kB / 1.048 GB, free: 41.29 MB / 458.7 MB Notification: Performance of pre-optimization done (n=625): time 1.025e-05/2.98, allocations: 0 / 1.048 GB, free: 41.29 MB / 458.7 MB Notification: Performance of matching and sorting (n=658): time 0.0735/3.053, allocations: 25.29 MB / 1.073 GB, free: 37.91 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/3.053, allocations: 135 kB / 1.073 GB, free: 37.81 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01072/3.064, allocations: 3.357 MB / 1.077 GB, free: 37.5 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002344/3.066, allocations: 26.92 kB / 1.077 GB, free: 37.46 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004485/3.071, allocations: 4.636 MB / 1.081 GB, free: 35.22 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004378/3.075, allocations: 2.12 MB / 1.083 GB, free: 33.81 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001958/3.077, allocations: 0 / 1.083 GB, free: 33.81 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0009883/3.078, allocations: 0.6146 MB / 1.084 GB, free: 33.49 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009368/3.088, allocations: 4.364 MB / 1.088 GB, free: 33.48 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01208/3.1, allocations: 6.341 MB / 1.094 GB, free: 30.32 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01531/3.115, allocations: 6.456 MB / 1.1 GB, free: 27.9 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001523/3.116, allocations: 16.88 kB / 1.1 GB, free: 27.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=996) (initialization): time 0.03684/3.152, allocations: 13.61 MB / 1.114 GB, free: 22.84 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002264/3.153, allocations: 31.41 kB / 1.114 GB, free: 22.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001885/3.153, allocations: 63.16 kB / 1.114 GB, free: 22.84 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005437/3.158, allocations: 2.377 MB / 1.116 GB, free: 22.11 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008384/3.167, allocations: 1.558 MB / 1.118 GB, free: 22.06 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01243/3.179, allocations: 10.38 MB / 1.128 GB, free: 14.81 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009392/3.189, allocations: 441 kB / 1.128 GB, free: 14.79 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002879/3.192, allocations: 350.7 kB / 1.129 GB, free: 14.72 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: smeeQS.stator.resistor.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smeeQS.stator.resistor.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smeeQS.stator.resistor.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smeeQS.stator.resistor.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smeeQS.stator.resistor.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smeeQS.stator.resistor.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: powerSensorQS.powerSensor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensorQS.powerSensor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensorQS.powerSensor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensorQS.powerSensor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensorQS.powerSensor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensorQS.powerSensor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: starQS.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.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: terminalBoxQS.multiStar.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiStar.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: 278 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (791): * Single equations (assignments): 722 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 4 {6 9,6 9,6 9,6 43} Notification: Performance of prepare postOptimizeDAE: time 0.005014/3.197, allocations: 374.2 kB / 1.129 GB, free: 14.55 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02843/3.225, allocations: 11.25 MB / 1.14 GB, free: 9.941 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003332/3.229, allocations: 0.5157 MB / 1.14 GB, free: 9.664 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03354/3.262, allocations: 12.18 MB / 1.152 GB, free: 3.676 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02993/3.292, allocations: 11.09 MB / 1.163 GB, free: 10.35 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.846e-05/3.292, allocations: 4 kB / 1.163 GB, free: 10.35 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003284/3.293, allocations: 32.05 kB / 1.163 GB, free: 10.35 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08058/3.373, allocations: 29.78 MB / 1.192 GB, free: 2.703 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.343e-05/3.373, allocations: 10.5 kB / 1.192 GB, free: 2.695 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005191/3.378, allocations: 0.9202 MB / 1.193 GB, free: 2.008 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006669/3.385, allocations: 2.649 MB / 1.196 GB, free: 0 / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001681/3.387, allocations: 97.11 kB / 1.196 GB, free: 0 / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.436/3.823, allocations: 15.81 MB / 1.211 GB, free: 72.29 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00406/3.827, allocations: 2.727 MB / 1.214 GB, free: 70.89 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03999/3.867, allocations: 18.9 MB / 1.232 GB, free: 69.05 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005822/3.873, allocations: 1.576 MB / 1.234 GB, free: 68.96 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00275/3.876, allocations: 11.31 kB / 1.234 GB, free: 68.96 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005647/3.881, allocations: 289.1 kB / 1.234 GB, free: 68.96 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001809/3.883, allocations: 0.5061 MB / 1.235 GB, free: 68.95 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009292/3.884, allocations: 180.3 kB / 1.235 GB, free: 68.95 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005413/3.89, allocations: 2.431 MB / 1.237 GB, free: 68.77 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.52e-07/3.89, allocations: 0 / 1.237 GB, free: 68.77 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01307/3.903, allocations: 1.852 MB / 1.239 GB, free: 68.77 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smeeQS.gamma,smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma,$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],smee.stator.zeroInductor.i0) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (460): * Single equations (assignments): 392 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 43,5 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.04005/3.943, allocations: 21 MB / 1.26 GB, free: 65.42 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02204/3.965, allocations: 10.79 MB / 1.27 GB, free: 64.89 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.52e-05/3.965, allocations: 3.219 kB / 1.27 GB, free: 64.89 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01245/3.977, allocations: 5.864 MB / 1.276 GB, free: 62.75 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009051/3.986, allocations: 0.8378 MB / 1.277 GB, free: 62.54 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07096/4.057, allocations: 21.7 MB / 1.298 GB, free: 54.19 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01389/4.071, allocations: 7.009 MB / 1.305 GB, free: 51.91 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008141/4.08, allocations: 1.697 MB / 1.306 GB, free: 51.73 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008822/4.088, allocations: 4.137 MB / 1.31 GB, free: 48.21 MB / 490.7 MB Notification: Performance of SimCode: time 1.513e-06/4.088, allocations: 0 / 1.31 GB, free: 48.21 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6538/4.742, allocations: 167.6 MB / 1.474 GB, free: 65.49 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002384/4.743, allocations: 219.3 kB / 1.474 GB, free: 65.19 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.601/12.34, allocations: 0.5469 kB / 1.474 GB, free: 65.19 MB / 490.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat