Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001565/0.001565, allocations: 202 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.2 MB / 245 MB, free: 7.613 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009071/0.0009068, allocations: 89.7 kB / 297.2 MB, free: 6.199 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002461/0.0002462, allocations: 4 kB / 358.1 MB, free: 9.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2255/0.2258, allocations: 51.47 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3901/0.6159, allocations: 149.8 MB / 0.5462 GB, free: 39.45 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002767/0.6163, allocations: 106.6 kB / 0.5463 GB, free: 39.43 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7565/1.373, allocations: 244.5 MB / 0.7851 GB, free: 64.33 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.976e-06/1.373, allocations: 0 / 0.7851 GB, free: 64.33 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005344/1.373, allocations: 159.9 kB / 0.7853 GB, free: 64.17 MB / 458.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.02309/1.397, allocations: 7.321 MB / 0.7924 GB, free: 56.8 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/1.397, allocations: 8.031 kB / 0.7924 GB, free: 56.8 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004394/1.401, allocations: 1.157 MB / 0.7936 GB, free: 55.64 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01993/1.421, allocations: 3.683 MB / 0.7972 GB, free: 51.97 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01463/1.436, allocations: 6.089 MB / 0.8031 GB, free: 45.89 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004873/1.436, allocations: 0.5193 MB / 0.8036 GB, free: 45.38 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002887/1.439, allocations: 0.6977 MB / 0.8043 GB, free: 44.7 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02072/1.46, allocations: 11.16 MB / 0.8152 GB, free: 33.34 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000205/1.46, allocations: 19.73 kB / 0.8152 GB, free: 33.32 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008332/1.461, allocations: 305.3 kB / 0.8155 GB, free: 33.03 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004181/1.461, allocations: 0.5067 MB / 0.816 GB, free: 32.52 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01838/1.48, allocations: 10.24 MB / 0.826 GB, free: 22.27 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5277/2.007, allocations: 38.77 MB / 0.8639 GB, free: 42.51 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0189/2.026, allocations: 28.36 MB / 0.8916 GB, free: 32.93 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01384/2.04, allocations: 8.484 MB / 0.8998 GB, free: 31.35 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.171e-05/2.04, allocations: 65.27 kB / 0.8999 GB, free: 31.31 MB / 474.8 MB Notification: Performance of pre-optimization done (n=222): time 3.457e-06/2.04, allocations: 0 / 0.8999 GB, free: 31.31 MB / 474.8 MB Notification: Performance of matching and sorting (n=238): time 0.01921/2.06, allocations: 10.45 MB / 0.9101 GB, free: 29.8 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001963/2.062, allocations: 1.953 MB / 0.912 GB, free: 28.33 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005666/2.067, allocations: 3.37 MB / 0.9153 GB, free: 28.01 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005112/2.068, allocations: 68.98 kB / 0.9154 GB, free: 27.98 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002478/2.07, allocations: 3.536 MB / 0.9188 GB, free: 26.11 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.000965/2.071, allocations: 0.8483 MB / 0.9197 GB, free: 25.6 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002272/2.072, allocations: 96.22 kB / 0.9197 GB, free: 25.6 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0003271/2.072, allocations: 0.4908 MB / 0.9202 GB, free: 25.29 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002625/2.074, allocations: 1.888 MB / 0.9221 GB, free: 25.27 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003323/2.078, allocations: 4.311 MB / 0.9263 GB, free: 22.18 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003287/2.081, allocations: 2.823 MB / 0.929 GB, free: 22.15 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.691e-05/2.081, allocations: 27.25 kB / 0.9291 GB, free: 22.15 MB / 474.8 MB Notification: Performance of matching and sorting (n=624) (initialization): time 0.01073/2.092, allocations: 6.938 MB / 0.9358 GB, free: 21.82 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.92e-05/2.092, allocations: 40.72 kB / 0.9359 GB, free: 21.82 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001255/2.092, allocations: 87.78 kB / 0.936 GB, free: 21.82 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001835/2.094, allocations: 0.7474 MB / 0.9367 GB, free: 21.79 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003404/2.097, allocations: 1.114 MB / 0.9378 GB, free: 21.79 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006954/2.104, allocations: 5.423 MB / 0.9431 GB, free: 20.42 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00496/2.109, allocations: 299 kB / 0.9434 GB, free: 20.39 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006401/2.11, allocations: 274.6 kB / 0.9436 GB, free: 20.39 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 383 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (587): * Single equations (assignments): 584 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * 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: 1 {(4,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004683/2.115, allocations: 2.515 MB / 0.9461 GB, free: 20.22 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008918/2.116, allocations: 386.7 kB / 0.9464 GB, free: 20.02 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00658/2.122, allocations: 4.304 MB / 0.9506 GB, free: 19.74 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-05/2.122, allocations: 23.66 kB / 0.9507 GB, free: 19.74 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/2.122, allocations: 7.906 kB / 0.9507 GB, free: 19.74 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-05/2.122, allocations: 20.34 kB / 0.9507 GB, free: 19.74 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02211/2.144, allocations: 14.28 MB / 0.9646 GB, free: 13.43 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.488e-05/2.144, allocations: 13.81 kB / 0.9647 GB, free: 13.43 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001722/2.146, allocations: 473.6 kB / 0.9651 GB, free: 13.42 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001862/2.148, allocations: 0.6939 MB / 0.9658 GB, free: 13.25 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002032/2.148, allocations: 69.97 kB / 0.9659 GB, free: 13.21 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008853/2.157, allocations: 7.164 MB / 0.9728 GB, free: 24.55 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001854/2.159, allocations: 1.907 MB / 0.9747 GB, free: 22.88 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01011/2.169, allocations: 7.868 MB / 0.9824 GB, free: 18.05 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002556/2.172, allocations: 0.7978 MB / 0.9832 GB, free: 17.54 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000983/2.173, allocations: 67.2 kB / 0.9832 GB, free: 17.5 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002031/2.175, allocations: 172 kB / 0.9834 GB, free: 17.46 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000437/2.175, allocations: 221.1 kB / 0.9836 GB, free: 17.43 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001647/2.175, allocations: 89.56 kB / 0.9837 GB, free: 17.41 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.003877/2.179, allocations: 2.477 MB / 0.9861 GB, free: 16.45 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.1e-07/2.179, allocations: 0 / 0.9861 GB, free: 16.45 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.00663/2.186, allocations: 1.368 MB / 0.9875 GB, free: 16.3 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 46 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (243): * Single equations (assignments): 240 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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: 1 {(4,100.0%) 32} * Non-linear torn systems: 1 {3 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01162/2.198, allocations: 11.42 MB / 0.9986 GB, free: 8.367 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.009296/2.207, allocations: 5.11 MB / 1.004 GB, free: 3.91 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.34e-05/2.207, allocations: 0 / 1.004 GB, free: 3.91 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003843/2.211, allocations: 2.413 MB / 1.006 GB, free: 1.738 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004726/2.216, allocations: 0.9059 MB / 1.007 GB, free: 1.027 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3718/2.587, allocations: 96.67 MB / 1.101 GB, free: 41.43 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004221/2.592, allocations: 4.621 MB / 1.106 GB, free: 40.58 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.004475/2.596, allocations: 1.369 MB / 1.107 GB, free: 40.43 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003137/2.599, allocations: 2.537 MB / 1.11 GB, free: 40.42 MB / 0.4949 GB Notification: Performance of SimCode: time 7.82e-07/2.599, allocations: 0 / 1.11 GB, free: 40.42 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4668/3.066, allocations: 107.6 MB / 1.215 GB, free: 84.41 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001845/3.067, allocations: 279 kB / 1.215 GB, free: 84.06 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.255/8.322, allocations: 0 / 1.215 GB, free: 84.06 MB / 0.4949 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat does not exist to compare? outputFormat=mat