Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001501/0.001506, allocations: 175.3 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.526/1.526, allocations: 221.3 MB / 235.5 MB, free: 2.934 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009716/0.0009718, allocations: 93.91 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.908e-05/2.912e-05, allocations: 3.984 kB / 344 MB, free: 4.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.118, allocations: 50.41 MB / 394.4 MB, free: 1.738 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4882/0.6063, allocations: 148.8 MB / 0.5304 GB, free: 2.555 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003445/0.6067, allocations: 99.92 kB / 0.5305 GB, free: 2.457 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.211/1.818, allocations: 233.5 MB / 0.7585 GB, free: 45.07 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.685e-06/1.818, allocations: 0 / 0.7585 GB, free: 45.07 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009803/1.819, allocations: 159.8 kB / 0.7587 GB, free: 45.06 MB / 426.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.02873/1.848, allocations: 6.791 MB / 0.7653 GB, free: 42.76 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.334e-05/1.848, allocations: 10.53 kB / 0.7653 GB, free: 42.76 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006794/1.855, allocations: 1.141 MB / 0.7664 GB, free: 42.66 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02228/1.877, allocations: 3.66 MB / 0.77 GB, free: 42.24 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01866/1.896, allocations: 6.042 MB / 0.7759 GB, free: 41.41 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006854/1.896, allocations: 0.5167 MB / 0.7764 GB, free: 41.39 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003836/1.9, allocations: 0.6892 MB / 0.7771 GB, free: 41.38 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03392/1.934, allocations: 11.03 MB / 0.7879 GB, free: 39.69 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004665/1.935, allocations: 11.16 kB / 0.7879 GB, free: 39.68 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003069/1.938, allocations: 302 kB / 0.7882 GB, free: 39.46 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006454/1.938, allocations: 0.5105 MB / 0.7886 GB, free: 39.37 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02736/1.966, allocations: 10.07 MB / 0.7985 GB, free: 35.34 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07705/2.043, allocations: 37.89 MB / 0.8355 GB, free: 7.805 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02363/2.067, allocations: 28.1 MB / 0.8629 GB, free: 9.055 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00563/2.072, allocations: 2.574 MB / 0.8654 GB, free: 6.703 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02159/2.094, allocations: 7.937 MB / 0.8732 GB, free: 100 kB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.589e-05/2.094, allocations: 52.56 kB / 0.8732 GB, free: 40 kB / 458.7 MB Notification: Performance of pre-optimization done (n=217): time 6.993e-06/2.094, allocations: 0 / 0.8732 GB, free: 40 kB / 458.7 MB Notification: Performance of matching and sorting (n=233): time 0.4178/2.512, allocations: 8.683 MB / 0.8817 GB, free: 75.69 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001931/2.514, allocations: 1.917 MB / 0.8836 GB, free: 74.22 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009251/2.523, allocations: 3.32 MB / 0.8868 GB, free: 73.88 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000647/2.524, allocations: 66.45 kB / 0.8869 GB, free: 73.85 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003594/2.527, allocations: 3.545 MB / 0.8904 GB, free: 72.23 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001473/2.529, allocations: 0.8307 MB / 0.8912 GB, free: 71.73 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005019/2.53, allocations: 97.91 kB / 0.8913 GB, free: 71.73 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003702/2.53, allocations: 0.4908 MB / 0.8917 GB, free: 71.42 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004098/2.534, allocations: 1.83 MB / 0.8935 GB, free: 71.4 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006206/2.54, allocations: 4.26 MB / 0.8977 GB, free: 68.3 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006605/2.547, allocations: 2.792 MB / 0.9004 GB, free: 68.27 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001753/2.547, allocations: 24.09 kB / 0.9004 GB, free: 68.27 MB / 458.7 MB Notification: Performance of matching and sorting (n=620) (initialization): time 0.0181/2.565, allocations: 6.833 MB / 0.9071 GB, free: 67.95 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002344/2.565, allocations: 43.97 kB / 0.9072 GB, free: 67.95 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002528/2.566, allocations: 83.88 kB / 0.9072 GB, free: 67.95 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002577/2.568, allocations: 0.7526 MB / 0.908 GB, free: 67.92 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004631/2.573, allocations: 1.101 MB / 0.909 GB, free: 67.92 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007493/2.58, allocations: 5.204 MB / 0.9141 GB, free: 66.55 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006046/2.587, allocations: 308.3 kB / 0.9144 GB, free: 66.52 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001477/2.588, allocations: 268.9 kB / 0.9147 GB, free: 66.52 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 384 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (583): * Single equations (assignments): 580 * 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.002272/2.59, allocations: 441.7 kB / 0.9151 GB, free: 66.27 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001612/2.592, allocations: 389.2 kB / 0.9155 GB, free: 66.07 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009742/2.602, allocations: 4.217 MB / 0.9196 GB, free: 65.8 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.5e-05/2.602, allocations: 23.88 kB / 0.9196 GB, free: 65.8 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-05/2.602, allocations: 3.656 kB / 0.9196 GB, free: 65.8 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.826e-05/2.602, allocations: 17.03 kB / 0.9196 GB, free: 65.8 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03428/2.636, allocations: 14.13 MB / 0.9334 GB, free: 62.86 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.265e-05/2.636, allocations: 18.38 kB / 0.9335 GB, free: 62.85 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002163/2.638, allocations: 466 kB / 0.9339 GB, free: 62.81 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002169/2.641, allocations: 0.6891 MB / 0.9346 GB, free: 62.63 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004522/2.641, allocations: 68.88 kB / 0.9346 GB, free: 62.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008508/2.65, allocations: 6.928 MB / 0.9414 GB, free: 58.05 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001639/2.651, allocations: 1.861 MB / 0.9432 GB, free: 56.39 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0122/2.664, allocations: 7.736 MB / 0.9508 GB, free: 51.65 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003694/2.667, allocations: 0.7883 MB / 0.9515 GB, free: 51.15 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002217/2.67, allocations: 59.06 kB / 0.9516 GB, free: 51.12 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003379/2.673, allocations: 175.2 kB / 0.9518 GB, free: 51.08 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006432/2.674, allocations: 217.6 kB / 0.952 GB, free: 51.03 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003278/2.674, allocations: 90.67 kB / 0.9521 GB, free: 51.01 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006258/2.68, allocations: 2.43 MB / 0.9544 GB, free: 50.03 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.2e-07/2.68, allocations: 0 / 0.9544 GB, free: 50.03 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009368/2.69, allocations: 1.342 MB / 0.9557 GB, free: 49.89 MB / 458.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (238): * Single equations (assignments): 235 * 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.01454/2.704, allocations: 11.37 MB / 0.9668 GB, free: 42.16 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009351/2.714, allocations: 4.985 MB / 0.9717 GB, free: 40.01 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.528e-05/2.714, allocations: 4.062 kB / 0.9717 GB, free: 40 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004414/2.718, allocations: 2.349 MB / 0.974 GB, free: 38.84 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006486/2.725, allocations: 0.905 MB / 0.9749 GB, free: 38.58 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03927/2.764, allocations: 12.49 MB / 0.9871 GB, free: 30.17 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008735/2.773, allocations: 4.613 MB / 0.9916 GB, free: 26.66 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004939/2.778, allocations: 1.359 MB / 0.9929 GB, free: 25.76 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004219/2.782, allocations: 2.526 MB / 0.9954 GB, free: 23.42 MB / 458.7 MB Notification: Performance of SimCode: time 1.373e-06/2.782, allocations: 4 kB / 0.9954 GB, free: 23.42 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.541/3.323, allocations: 108.4 MB / 1.101 GB, free: 79.06 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001803/3.323, allocations: 243.4 kB / 1.102 GB, free: 78.73 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.924/9.248, allocations: 0 / 1.102 GB, free: 78.73 MB / 474.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat does not exist to compare? outputFormat=mat