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.SMPM_OpenCircuit.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.SMPM_OpenCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",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.001525/0.001525, allocations: 177.7 kB / 8.698 MB, free: 388 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.844/1.844, allocations: 205.3 MB / 214.4 MB, free: 1.73 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.0008662/0.0008668, allocations: 90.22 kB / 262.5 MB, free: 1.676 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.561e-05/2.563e-05, allocations: 4 kB / 315.6 MB, free: 22.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.115, allocations: 47.59 MB / 363.2 MB, free: 6.945 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4499/0.565, allocations: 148.5 MB / 0.4997 GB, free: 11.84 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/0.5653, allocations: 106.8 kB / 0.4998 GB, free: 11.78 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.009/1.574, allocations: 229.3 MB / 0.7237 GB, free: 40.46 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.677e-06/1.575, allocations: 0 / 0.7237 GB, free: 40.46 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005824/1.575, allocations: 162.7 kB / 0.7239 GB, free: 40.44 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.0291/1.604, allocations: 6.779 MB / 0.7305 GB, free: 38.16 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.279e-05/1.604, allocations: 7 kB / 0.7305 GB, free: 38.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02132/1.626, allocations: 3.655 MB / 0.7341 GB, free: 37.74 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01922/1.645, allocations: 5.929 MB / 0.7399 GB, free: 36.92 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00082/1.646, allocations: 233.5 kB / 0.7401 GB, free: 36.92 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004278/1.65, allocations: 425.1 kB / 0.7405 GB, free: 36.91 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02354/1.674, allocations: 9.153 MB / 0.7495 GB, free: 36.88 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0343/1.708, allocations: 10.19 MB / 0.7594 GB, free: 36.09 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005625/1.709, allocations: 21.52 kB / 0.7594 GB, free: 36.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00338/1.712, allocations: 6 kB / 0.7594 GB, free: 36.09 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007026/1.713, allocations: 493.4 kB / 0.7599 GB, free: 36.07 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07993/1.793, allocations: 37.69 MB / 0.7967 GB, free: 18.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01511/1.808, allocations: 18.17 MB / 0.8145 GB, free: 2.238 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009184/1.817, allocations: 4.379 MB / 0.8187 GB, free: 14.85 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03083/1.848, allocations: 14.01 MB / 0.8324 GB, free: 3.074 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.549e-05/1.848, allocations: 69.94 kB / 0.8325 GB, free: 2.996 MB / 426.7 MB Notification: Performance of pre-optimization done (n=399): time 7.774e-06/1.848, allocations: 0 / 0.8325 GB, free: 2.996 MB / 426.7 MB Notification: Performance of matching and sorting (n=415): time 0.04118/1.889, allocations: 16.2 MB / 0.8483 GB, free: 5.039 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.959e-05/1.889, allocations: 86.25 kB / 0.8484 GB, free: 4.941 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006492/1.896, allocations: 2.444 MB / 0.8508 GB, free: 2.754 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008288/1.897, allocations: 25.7 kB / 0.8508 GB, free: 2.723 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.3543/2.251, allocations: 3.166 MB / 0.8539 GB, free: 70.73 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002939/2.254, allocations: 1.349 MB / 0.8552 GB, free: 70.58 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005915/2.255, allocations: 0 / 0.8552 GB, free: 70.58 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000741/2.255, allocations: 0.5247 MB / 0.8557 GB, free: 70.27 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007025/2.262, allocations: 2.879 MB / 0.8585 GB, free: 70.25 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007917/2.27, allocations: 4.849 MB / 0.8633 GB, free: 67.84 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009576/2.28, allocations: 4.484 MB / 0.8676 GB, free: 67.79 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00019/2.28, allocations: 18.91 kB / 0.8677 GB, free: 67.79 MB / 442.7 MB Notification: Performance of matching and sorting (n=716) (initialization): time 0.02543/2.306, allocations: 9.654 MB / 0.8771 GB, free: 67.44 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001311/2.306, allocations: 36.8 kB / 0.8771 GB, free: 67.44 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001586/2.306, allocations: 65.06 kB / 0.8772 GB, free: 67.44 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004734/2.311, allocations: 2.463 MB / 0.8796 GB, free: 67.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004848/2.316, allocations: 1.084 MB / 0.8807 GB, free: 67.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006596/2.322, allocations: 5.55 MB / 0.8861 GB, free: 66.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005237/2.328, allocations: 245.7 kB / 0.8863 GB, free: 66.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007665/2.328, allocations: 266.8 kB / 0.8866 GB, free: 66.27 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: resistorQS.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQS.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.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: 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[2].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.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[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: 298 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (560): * Single equations (assignments): 538 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {6 9,11 79} Notification: Performance of prepare postOptimizeDAE: time 0.001096/2.329, allocations: 334.6 kB / 0.8869 GB, free: 66.16 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01202/2.341, allocations: 7.712 MB / 0.8944 GB, free: 65.81 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000957/2.342, allocations: 384.8 kB / 0.8948 GB, free: 65.61 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01316/2.356, allocations: 8.414 MB / 0.903 GB, free: 65.36 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.189e-05/2.356, allocations: 96.81 kB / 0.9031 GB, free: 65.36 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.316e-05/2.356, allocations: 0 / 0.9031 GB, free: 65.36 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.179e-05/2.356, allocations: 18.09 kB / 0.9031 GB, free: 65.36 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03565/2.391, allocations: 19.44 MB / 0.9221 GB, free: 60.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-05/2.392, allocations: 6.094 kB / 0.9221 GB, free: 60.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002469/2.394, allocations: 0.558 MB / 0.9226 GB, free: 60.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004892/2.399, allocations: 2.414 MB / 0.925 GB, free: 59.46 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007867/2.4, allocations: 53.38 kB / 0.925 GB, free: 59.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007974/2.408, allocations: 7.224 MB / 0.9321 GB, free: 54.95 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001555/2.409, allocations: 1.793 MB / 0.9338 GB, free: 53.37 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0204/2.43, allocations: 13.03 MB / 0.9466 GB, free: 47.02 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003205/2.433, allocations: 1.068 MB / 0.9476 GB, free: 46.39 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001625/2.435, allocations: 22.7 kB / 0.9476 GB, free: 46.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003402/2.438, allocations: 171.8 kB / 0.9478 GB, free: 46.39 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008396/2.439, allocations: 321.9 kB / 0.9481 GB, free: 46.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005589/2.44, allocations: 118.7 kB / 0.9482 GB, free: 46.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004631/2.444, allocations: 1.747 MB / 0.9499 GB, free: 45.57 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/2.444, allocations: 0 / 0.9499 GB, free: 45.57 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007987/2.452, allocations: 1.201 MB / 0.9511 GB, free: 45.54 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (281): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 0 * Non-linear torn systems: 3 {3 3,6 9,10 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.02239/2.475, allocations: 15.47 MB / 0.9662 GB, free: 32.1 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01321/2.488, allocations: 7.216 MB / 0.9733 GB, free: 25.72 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.389e-05/2.488, allocations: 0 / 0.9733 GB, free: 25.72 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007091/2.495, allocations: 3.631 MB / 0.9768 GB, free: 22.51 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006226/2.501, allocations: 0.6973 MB / 0.9775 GB, free: 21.97 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0425/2.544, allocations: 14 MB / 0.9911 GB, free: 9.727 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004629/2.549, allocations: 4.673 MB / 0.9957 GB, free: 6.16 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004408/2.553, allocations: 1.151 MB / 0.9968 GB, free: 5.355 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00393/2.557, allocations: 2.544 MB / 0.9993 GB, free: 3 MB / 442.7 MB Notification: Performance of SimCode: time 1.352e-06/2.557, allocations: 0 / 0.9993 GB, free: 3 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5092/3.066, allocations: 118.6 MB / 1.115 GB, free: 51.11 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001865/3.066, allocations: 201.1 kB / 1.115 GB, free: 50.82 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.548/8.614, allocations: 0 / 1.115 GB, free: 50.82 MB / 458.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.SMPM_OpenCircuit_res.mat does not exist to compare? outputFormat=mat