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.001421/0.001421, allocations: 201.1 kB / 8.766 MB, free: 324 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001259/0.00126, allocations: 93.33 kB / 286.7 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.451e-05/2.455e-05, allocations: 4 kB / 343.8 MB, free: 8.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1277, allocations: 51.48 MB / 395.3 MB, free: 4.656 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5188/0.6466, allocations: 149.1 MB / 0.5316 GB, free: 8.879 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003749/0.647, allocations: 100.4 kB / 0.5317 GB, free: 8.828 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.372/2.02, allocations: 241.5 MB / 0.7676 GB, free: 50.01 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.893e-06/2.02, allocations: 1.219 kB / 0.7676 GB, free: 50.01 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006249/2.02, allocations: 161.8 kB / 0.7677 GB, free: 50 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.02592/2.046, allocations: 6.824 MB / 0.7744 GB, free: 47.7 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.015e-05/2.046, allocations: 12.5 kB / 0.7744 GB, free: 47.7 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02223/2.068, allocations: 3.648 MB / 0.7779 GB, free: 47.29 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01884/2.087, allocations: 6.054 MB / 0.7839 GB, free: 46.47 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006399/2.088, allocations: 229.2 kB / 0.7841 GB, free: 46.47 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004283/2.092, allocations: 419.1 kB / 0.7845 GB, free: 46.46 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03171/2.124, allocations: 8.922 MB / 0.7932 GB, free: 46.43 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04479/2.169, allocations: 9.904 MB / 0.8029 GB, free: 45.64 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000495/2.169, allocations: 19.7 kB / 0.8029 GB, free: 45.64 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003139/2.173, allocations: 3.75 kB / 0.8029 GB, free: 45.64 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008485/2.174, allocations: 0.5097 MB / 0.8034 GB, free: 45.62 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0804/2.254, allocations: 38.23 MB / 0.8407 GB, free: 32.08 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02081/2.275, allocations: 28.08 MB / 0.8681 GB, free: 20.52 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004332/2.279, allocations: 2.609 MB / 0.8707 GB, free: 19.5 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01567/2.295, allocations: 8.817 MB / 0.8793 GB, free: 14.76 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.751e-05/2.295, allocations: 55.59 kB / 0.8793 GB, free: 14.7 MB / 474.7 MB Notification: Performance of pre-optimization done (n=217): time 6.042e-06/2.295, allocations: 0 / 0.8793 GB, free: 14.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=233): time 0.02654/2.322, allocations: 10.84 MB / 0.8899 GB, free: 10.42 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.225e-05/2.322, allocations: 82.28 kB / 0.89 GB, free: 10.36 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005054/2.327, allocations: 2.832 MB / 0.8928 GB, free: 9.188 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006412/2.327, allocations: 25.7 kB / 0.8928 GB, free: 9.156 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002786/2.33, allocations: 3.554 MB / 0.8963 GB, free: 6.426 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001381/2.332, allocations: 0.795 MB / 0.897 GB, free: 5.816 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002388/2.332, allocations: 3.656 kB / 0.8971 GB, free: 5.816 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000342/2.332, allocations: 0.4934 MB / 0.8975 GB, free: 5.426 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002774/2.335, allocations: 1.874 MB / 0.8994 GB, free: 4.648 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004545/2.34, allocations: 4.268 MB / 0.9035 GB, free: 0.5781 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009722/2.349, allocations: 3.804 MB / 0.9072 GB, free: 15.88 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001037/2.349, allocations: 24.03 kB / 0.9073 GB, free: 15.88 MB / 490.7 MB Notification: Performance of matching and sorting (n=620) (initialization): time 0.01839/2.368, allocations: 7.316 MB / 0.9144 GB, free: 11.23 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.655e-05/2.368, allocations: 47.95 kB / 0.9145 GB, free: 11.18 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001483/2.368, allocations: 84 kB / 0.9145 GB, free: 11.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002137/2.37, allocations: 0.7332 MB / 0.9153 GB, free: 10.52 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004767/2.375, allocations: 1.134 MB / 0.9164 GB, free: 9.551 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007241/2.382, allocations: 5.027 MB / 0.9213 GB, free: 5.039 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005365/2.388, allocations: 240.7 kB / 0.9215 GB, free: 4.859 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001231/2.389, allocations: 269.9 kB / 0.9218 GB, free: 4.602 MB / 490.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.0009675/2.39, allocations: 310.7 kB / 0.9221 GB, free: 4.289 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0114/2.401, allocations: 4.548 MB / 0.9265 GB, free: 0.5156 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001482/2.403, allocations: 355.4 kB / 0.9268 GB, free: 172 kB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3548/2.758, allocations: 5.096 MB / 0.9318 GB, free: 75.71 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.58e-05/2.758, allocations: 23.75 kB / 0.9318 GB, free: 75.71 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/2.758, allocations: 5.719 kB / 0.9318 GB, free: 75.71 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.654e-05/2.758, allocations: 13.55 kB / 0.9319 GB, free: 75.71 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02846/2.786, allocations: 14.32 MB / 0.9458 GB, free: 74.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.846e-05/2.786, allocations: 12.89 kB / 0.9459 GB, free: 74.79 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002076/2.788, allocations: 499.1 kB / 0.9463 GB, free: 74.79 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002103/2.791, allocations: 0.6853 MB / 0.947 GB, free: 74.77 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003148/2.791, allocations: 32.5 kB / 0.947 GB, free: 74.77 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007565/2.798, allocations: 6.698 MB / 0.9536 GB, free: 72.36 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001378/2.8, allocations: 1.798 MB / 0.9553 GB, free: 71.04 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01442/2.814, allocations: 8.639 MB / 0.9638 GB, free: 68.97 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002854/2.817, allocations: 0.7853 MB / 0.9645 GB, free: 68.88 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001179/2.818, allocations: 15.33 kB / 0.9645 GB, free: 68.88 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002837/2.821, allocations: 159.3 kB / 0.9647 GB, free: 68.88 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000479/2.822, allocations: 215.9 kB / 0.9649 GB, free: 68.87 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002322/2.822, allocations: 88.94 kB / 0.965 GB, free: 68.87 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00485/2.827, allocations: 2.011 MB / 0.967 GB, free: 68.72 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.41e-07/2.827, allocations: 0 / 0.967 GB, free: 68.72 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009101/2.836, allocations: 1.196 MB / 0.9681 GB, free: 68.72 MB / 490.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.01733/2.853, allocations: 12.18 MB / 0.98 GB, free: 63.61 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008529/2.862, allocations: 4.978 MB / 0.9849 GB, free: 63.21 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.113e-05/2.862, allocations: 2.219 kB / 0.9849 GB, free: 63.21 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004512/2.867, allocations: 2.393 MB / 0.9872 GB, free: 62.85 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005107/2.872, allocations: 0.7439 MB / 0.9879 GB, free: 62.83 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0317/2.904, allocations: 12.51 MB / 1 GB, free: 60.27 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006597/2.91, allocations: 4.617 MB / 1.005 GB, free: 59.43 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.005138/2.915, allocations: 1.338 MB / 1.006 GB, free: 59.38 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004648/2.92, allocations: 2.533 MB / 1.008 GB, free: 59.38 MB / 490.7 MB Notification: Performance of SimCode: time 2.585e-06/2.92, allocations: 0 / 1.008 GB, free: 59.38 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.497/3.417, allocations: 96.38 MB / 1.103 GB, free: 44.8 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002107/3.417, allocations: 208.9 kB / 1.103 GB, free: 44.52 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.547/8.965, allocations: 2.578 kB / 1.103 GB, free: 44.52 MB / 490.7 MB (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