Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001904/0.001904, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.726/1.726, allocations: 225.6 MB / 234.8 MB, free: 3.207 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001116/0.001116, allocations: 95.31 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.906e-05/2.9e-05, allocations: 4 kB / 343.8 MB, free: 8.148 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1181, allocations: 51.48 MB / 395.3 MB, free: 4.629 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5039/0.622, allocations: 167.9 MB / 0.55 GB, free: 6.285 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003048/0.6224, allocations: 104.4 kB / 0.5501 GB, free: 6.23 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.684/2.306, allocations: 404.3 MB / 0.9449 GB, free: 42.42 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.185e-06/2.306, allocations: 0 / 0.9449 GB, free: 42.42 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0008556/2.307, allocations: 257 kB / 0.9452 GB, free: 42.39 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3043 * Number of variables: 3043 Notification: Performance of Generate backend data structure: time 0.0391/2.346, allocations: 10.2 MB / 0.9551 GB, free: 39.16 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.758e-05/2.347, allocations: 9.219 kB / 0.9551 GB, free: 39.16 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02573/2.372, allocations: 3.768 MB / 0.9588 GB, free: 38.54 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02881/2.401, allocations: 8.903 MB / 0.9675 GB, free: 37.39 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001144/2.402, allocations: 356.5 kB / 0.9678 GB, free: 37.39 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005957/2.408, allocations: 0.6288 MB / 0.9685 GB, free: 37.39 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03481/2.443, allocations: 12.19 MB / 0.9804 GB, free: 37.34 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04722/2.49, allocations: 14.52 MB / 0.9946 GB, free: 36.05 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006567/2.491, allocations: 16.69 kB / 0.9946 GB, free: 36.05 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003958/2.495, allocations: 17.08 kB / 0.9946 GB, free: 36.04 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008087/2.496, allocations: 0.7109 MB / 0.9953 GB, free: 36.02 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1055/2.601, allocations: 55.59 MB / 1.05 GB, free: 10.54 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02497/2.626, allocations: 22.41 MB / 1.071 GB, free: 7.348 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006203/2.633, allocations: 3.495 MB / 1.075 GB, free: 6.082 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0216/2.654, allocations: 10.41 MB / 1.085 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.602e-05/2.654, allocations: 69.88 kB / 1.085 GB, free: 13.82 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=313): time 5.069e-06/2.654, allocations: 0 / 1.085 GB, free: 13.82 MB / 0.4948 GB Notification: Performance of matching and sorting (n=346): time 0.4522/3.107, allocations: 16.62 MB / 1.101 GB, free: 69.74 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.369e-05/3.107, allocations: 121.2 kB / 1.101 GB, free: 69.65 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009156/3.116, allocations: 3.904 MB / 1.105 GB, free: 69.38 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0008713/3.117, allocations: 25.7 kB / 1.105 GB, free: 69.35 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003444/3.12, allocations: 5.169 MB / 1.11 GB, free: 68.29 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001613/3.122, allocations: 1.161 MB / 1.111 GB, free: 67.54 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005447/3.122, allocations: 0 / 1.111 GB, free: 67.54 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003394/3.123, allocations: 0.5541 MB / 1.112 GB, free: 67.23 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003908/3.127, allocations: 2.619 MB / 1.115 GB, free: 67.21 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005658/3.132, allocations: 5.274 MB / 1.12 GB, free: 63.88 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01193/3.144, allocations: 4.936 MB / 1.125 GB, free: 63.86 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002616/3.145, allocations: 27.94 kB / 1.125 GB, free: 63.86 MB / 0.4948 GB Notification: Performance of matching and sorting (n=810) (initialization): time 0.02552/3.17, allocations: 9.762 MB / 1.134 GB, free: 63.38 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001567/3.17, allocations: 45.56 kB / 1.134 GB, free: 63.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002481/3.171, allocations: 91.69 kB / 1.134 GB, free: 63.38 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002759/3.173, allocations: 0.9161 MB / 1.135 GB, free: 63.34 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006928/3.18, allocations: 1.487 MB / 1.137 GB, free: 63.34 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0114/3.192, allocations: 9.343 MB / 1.146 GB, free: 59.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008264/3.2, allocations: 402.2 kB / 1.146 GB, free: 59.38 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002185/3.202, allocations: 338.1 kB / 1.146 GB, free: 59.38 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 416 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (754): * Single equations (assignments): 744 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 4 * 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: 3 {(2,100.0%) 8,(1,100.0%) 5,(8,67.2%) 26} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001857/3.204, allocations: 343.2 kB / 1.147 GB, free: 59.21 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01542/3.22, allocations: 6.351 MB / 1.153 GB, free: 58.59 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001856/3.222, allocations: 493.2 kB / 1.153 GB, free: 58.34 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01442/3.236, allocations: 6.845 MB / 1.16 GB, free: 57.87 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01297/3.249, allocations: 5.89 MB / 1.166 GB, free: 57.5 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.559e-05/3.249, allocations: 10.28 kB / 1.166 GB, free: 57.5 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001268/3.249, allocations: 17.2 kB / 1.166 GB, free: 57.5 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04852/3.298, allocations: 20.68 MB / 1.186 GB, free: 56.31 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-05/3.298, allocations: 6.531 kB / 1.186 GB, free: 56.31 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003098/3.301, allocations: 0.6149 MB / 1.187 GB, free: 56.31 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003009/3.304, allocations: 1.126 MB / 1.188 GB, free: 56.26 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007664/3.305, allocations: 38.42 kB / 1.188 GB, free: 56.26 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01503/3.32, allocations: 14.25 MB / 1.202 GB, free: 47.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003064/3.323, allocations: 2.725 MB / 1.204 GB, free: 45.85 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01963/3.343, allocations: 10.42 MB / 1.215 GB, free: 40.82 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00358/3.346, allocations: 1.024 MB / 1.216 GB, free: 40.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001741/3.348, allocations: 16.17 kB / 1.216 GB, free: 40.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004017/3.352, allocations: 227.1 kB / 1.216 GB, free: 40.18 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009018/3.353, allocations: 264.6 kB / 1.216 GB, free: 40.14 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002817/3.353, allocations: 112.6 kB / 1.216 GB, free: 40.11 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005955/3.359, allocations: 2.809 MB / 1.219 GB, free: 38.98 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.5e-07/3.359, allocations: 5 kB / 1.219 GB, free: 38.98 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01062/3.37, allocations: 1.752 MB / 1.221 GB, free: 38.95 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smeeQS.gamma,smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma,$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],smee.stator.zeroInductor.i0) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (291): * Single equations (assignments): 282 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(8,65.6%) 26,(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8} * Non-linear torn systems: 1 {5 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.02047/3.39, allocations: 12.46 MB / 1.233 GB, free: 32.37 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01155/3.402, allocations: 6.754 MB / 1.239 GB, free: 29.7 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.186e-05/3.402, allocations: 4.062 kB / 1.239 GB, free: 29.69 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006014/3.408, allocations: 3.528 MB / 1.243 GB, free: 26.91 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00615/3.414, allocations: 0.8824 MB / 1.244 GB, free: 26.23 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05226/3.467, allocations: 18.23 MB / 1.261 GB, free: 10.4 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01346/3.48, allocations: 6.786 MB / 1.268 GB, free: 5.34 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.007384/3.488, allocations: 1.82 MB / 1.27 GB, free: 4.145 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007715/3.495, allocations: 4.011 MB / 1.274 GB, free: 432 kB / 0.4948 GB Notification: Performance of SimCode: time 1.724e-06/3.495, allocations: 0 / 1.274 GB, free: 432 kB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7561/4.251, allocations: 133 MB / 1.404 GB, free: 47.18 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003514/4.252, allocations: 215.2 kB / 1.404 GB, free: 46.89 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.913/11.17, allocations: 0 / 1.404 GB, free: 46.89 MB / 0.5105 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat