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.001425/0.001425, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.476/1.476, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009291/0.000929, allocations: 92.06 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002962/0.0002961, allocations: 16 kB / 351.2 MB, free: 15.16 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2854/0.2857, allocations: 50.4 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4555/0.7413, allocations: 148.8 MB / 0.5375 GB, free: 48.62 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003521/0.7418, allocations: 103.9 kB / 0.5376 GB, free: 48.61 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7241/1.466, allocations: 233.7 MB / 0.7658 GB, free: 60.05 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.945e-06/1.466, allocations: 4 kB / 0.7658 GB, free: 60.04 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005733/1.467, allocations: 158 kB / 0.766 GB, free: 59.89 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: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.0244/1.491, allocations: 7.276 MB / 0.7731 GB, free: 52.57 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/1.491, allocations: 12.03 kB / 0.7731 GB, free: 52.56 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004892/1.496, allocations: 1.147 MB / 0.7742 GB, free: 51.41 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02052/1.516, allocations: 3.686 MB / 0.7778 GB, free: 47.74 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01468/1.531, allocations: 6.066 MB / 0.7837 GB, free: 41.69 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000455/1.532, allocations: 0.5194 MB / 0.7842 GB, free: 41.18 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003011/1.535, allocations: 0.6979 MB / 0.7849 GB, free: 40.49 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02581/1.56, allocations: 11.16 MB / 0.7958 GB, free: 29.13 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002695/1.561, allocations: 11.84 kB / 0.7958 GB, free: 29.12 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001464/1.562, allocations: 305.1 kB / 0.7961 GB, free: 28.83 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004421/1.563, allocations: 0.5068 MB / 0.7966 GB, free: 28.32 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0215/1.584, allocations: 10.24 MB / 0.8066 GB, free: 18.07 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6891/2.273, allocations: 37.87 MB / 0.8436 GB, free: 38.98 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02232/2.296, allocations: 28.17 MB / 0.8711 GB, free: 29.61 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01734/2.313, allocations: 7.979 MB / 0.8789 GB, free: 28.53 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.104e-05/2.313, allocations: 66.61 kB / 0.879 GB, free: 28.49 MB / 458.8 MB Notification: Performance of pre-optimization done (n=222): time 3.467e-06/2.313, allocations: 0 / 0.879 GB, free: 28.49 MB / 458.8 MB Notification: Performance of matching and sorting (n=238): time 0.02151/2.335, allocations: 10.45 MB / 0.8892 GB, free: 26.98 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002384/2.337, allocations: 1.943 MB / 0.8911 GB, free: 25.51 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006888/2.344, allocations: 3.363 MB / 0.8944 GB, free: 25.2 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006279/2.345, allocations: 66.14 kB / 0.8944 GB, free: 25.16 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002171/2.347, allocations: 3.532 MB / 0.8979 GB, free: 23.28 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001039/2.348, allocations: 0.8403 MB / 0.8987 GB, free: 22.77 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002461/2.348, allocations: 95.16 kB / 0.8988 GB, free: 22.77 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0003607/2.349, allocations: 0.4983 MB / 0.8993 GB, free: 22.45 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002708/2.351, allocations: 1.892 MB / 0.9011 GB, free: 22.44 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003838/2.355, allocations: 4.303 MB / 0.9053 GB, free: 19.35 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004137/2.359, allocations: 2.823 MB / 0.9081 GB, free: 19.31 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.102e-05/2.359, allocations: 24.66 kB / 0.9081 GB, free: 19.31 MB / 458.8 MB Notification: Performance of matching and sorting (n=624) (initialization): time 0.01244/2.372, allocations: 6.948 MB / 0.9149 GB, free: 18.93 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.348e-05/2.372, allocations: 43.25 kB / 0.9149 GB, free: 18.93 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00017/2.372, allocations: 86.09 kB / 0.915 GB, free: 18.93 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002006/2.374, allocations: 0.7551 MB / 0.9157 GB, free: 18.89 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004012/2.378, allocations: 1.112 MB / 0.9168 GB, free: 18.89 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006679/2.385, allocations: 5.407 MB / 0.9221 GB, free: 17.54 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004718/2.39, allocations: 302.6 kB / 0.9224 GB, free: 17.5 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006995/2.39, allocations: 268.4 kB / 0.9227 GB, free: 17.5 MB / 458.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.005205/2.396, allocations: 2.524 MB / 0.9251 GB, free: 16.35 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001125/2.397, allocations: 389 kB / 0.9255 GB, free: 16.15 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006752/2.404, allocations: 4.3 MB / 0.9297 GB, free: 14.35 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.552e-05/2.404, allocations: 23.16 kB / 0.9297 GB, free: 14.35 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.557e-06/2.404, allocations: 6.938 kB / 0.9297 GB, free: 14.35 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-05/2.404, allocations: 10.69 kB / 0.9297 GB, free: 14.35 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03597/2.44, allocations: 14.27 MB / 0.9437 GB, free: 23.99 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.502e-05/2.44, allocations: 7.344 kB / 0.9437 GB, free: 23.99 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003334/2.443, allocations: 482.1 kB / 0.9441 GB, free: 23.98 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003427/2.446, allocations: 0.7016 MB / 0.9448 GB, free: 23.79 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005218/2.447, allocations: 65.33 kB / 0.9449 GB, free: 23.76 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01358/2.461, allocations: 7.164 MB / 0.9519 GB, free: 19.12 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002656/2.463, allocations: 1.896 MB / 0.9537 GB, free: 17.45 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0161/2.479, allocations: 7.865 MB / 0.9614 GB, free: 12.62 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003599/2.483, allocations: 0.807 MB / 0.9622 GB, free: 12.1 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001467/2.485, allocations: 60.22 kB / 0.9623 GB, free: 12.07 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003616/2.488, allocations: 167.1 kB / 0.9624 GB, free: 12.03 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006342/2.489, allocations: 227.4 kB / 0.9626 GB, free: 11.99 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002653/2.489, allocations: 88.67 kB / 0.9627 GB, free: 11.97 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.005634/2.495, allocations: 2.469 MB / 0.9651 GB, free: 10.74 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.984e-06/2.495, allocations: 0 / 0.9651 GB, free: 10.74 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.009933/2.505, allocations: 1.351 MB / 0.9664 GB, free: 9.402 MB / 474.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.02063/2.525, allocations: 11.77 MB / 0.9779 GB, free: 15.58 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.008863/2.534, allocations: 5.111 MB / 0.9829 GB, free: 11.17 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.741e-05/2.534, allocations: 4 kB / 0.9829 GB, free: 11.17 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0042/2.539, allocations: 2.406 MB / 0.9853 GB, free: 9.004 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00595/2.545, allocations: 0.9012 MB / 0.9862 GB, free: 8.297 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3925/2.937, allocations: 96.33 MB / 1.08 GB, free: 56.18 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00666/2.944, allocations: 4.62 MB / 1.085 GB, free: 55.33 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.005257/2.949, allocations: 1.397 MB / 1.086 GB, free: 55.25 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00457/2.954, allocations: 2.534 MB / 1.089 GB, free: 55.24 MB / 0.4949 GB Notification: Performance of SimCode: time 1.984e-06/2.954, allocations: 0 / 1.089 GB, free: 55.24 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1709/3.125, allocations: 107.1 MB / 1.193 GB, free: 268 kB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.3223/3.447, allocations: 280.8 kB / 1.193 GB, free: 135.4 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.459/8.906, allocations: 0 / 1.193 GB, free: 135.4 MB / 0.4949 GB (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