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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0009299/0.0009298, allocations: 99.83 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009926/0.0009927, allocations: 203.5 kB / 17.9 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002437/0.0002438, allocations: 8 kB / 306.7 MB, free: 1.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1181, allocations: 51.5 MB / 358.2 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.2579/0.376, allocations: 33.44 MB / 391.7 MB, free: 2.508 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02648/0.4025, allocations: 10.96 MB / 402.6 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009952/0.4125, allocations: 259.9 kB / 402.9 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009704/0.4222, allocations: 2.138 MB / 405 MB, free: 9.285 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01682/0.4391, allocations: 3.787 MB / 408.8 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007383/0.4465, allocations: 1.744 MB / 410.6 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02068/0.4672, allocations: 9.841 MB / 420.4 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03491/0.5021, allocations: 18.08 MB / 438.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009663/0.5118, allocations: 4.286 MB / 442.8 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009646/0.5215, allocations: 4.832 MB / 447.6 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003569/0.5251, allocations: 0.707 MB / 448.3 MB, free: 1.988 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006742/0.5319, allocations: 1.062 MB / 449.4 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004079/0.536, allocations: 2.192 MB / 451.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004912/0.541, allocations: 2.375 MB / 453.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02392/0.5649, allocations: 20.07 MB / 474 MB, free: 8.215 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.5649, allocations: 0 / 474 MB, free: 8.215 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.565, allocations: 0 / 474 MB, free: 8.215 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007564/0.5657, allocations: 0 / 474 MB, free: 8.215 MB / 382.1 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.03549/0.6012, allocations: 11.97 MB / 486 MB, free: 12.14 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.6013, allocations: 8.031 kB / 486 MB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006661/0.6079, allocations: 1.753 MB / 487.7 MB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02909/0.6371, allocations: 5.113 MB / 492.8 MB, free: 5.234 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02218/0.6593, allocations: 7.335 MB / 0.4884 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009908/0.6603, allocations: 0.8307 MB / 0.4893 GB, free: 12.99 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004522/0.6648, allocations: 1.09 MB / 0.4903 GB, free: 11.9 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04494/0.7098, allocations: 16.47 MB / 0.5064 GB, free: 11.36 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004489/0.7103, allocations: 19.8 kB / 0.5064 GB, free: 11.34 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003444/0.7138, allocations: 464 kB / 0.5069 GB, free: 10.89 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006293/0.7144, allocations: 0.5734 MB / 0.5074 GB, free: 10.31 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03399/0.7484, allocations: 14.73 MB / 0.5218 GB, free: 11.55 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3757/1.124, allocations: 58.08 MB / 0.5785 GB, free: 97.63 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02053/1.145, allocations: 21.18 MB / 0.5992 GB, free: 77.42 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.025/1.17, allocations: 10.26 MB / 0.6092 GB, free: 70.15 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.828e-05/1.17, allocations: 72.39 kB / 0.6093 GB, free: 70.08 MB / 446.1 MB Notification: Performance of pre-optimization done (n=333): time 5.591e-06/1.17, allocations: 0 / 0.6093 GB, free: 70.08 MB / 446.1 MB Notification: Performance of matching and sorting (n=360): time 0.03778/1.208, allocations: 17.56 MB / 0.6265 GB, free: 53.15 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.857e-05/1.208, allocations: 116.4 kB / 0.6266 GB, free: 53.02 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01096/1.219, allocations: 5.111 MB / 0.6316 GB, free: 47.91 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007608/1.22, allocations: 85.7 kB / 0.6316 GB, free: 47.82 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003624/1.223, allocations: 5.15 MB / 0.6367 GB, free: 42.65 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001577/1.225, allocations: 1.263 MB / 0.6379 GB, free: 41.39 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000952/1.226, allocations: 128 kB / 0.638 GB, free: 41.27 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0004952/1.226, allocations: 0.5629 MB / 0.6386 GB, free: 40.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00486/1.231, allocations: 2.722 MB / 0.6412 GB, free: 37.97 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006333/1.238, allocations: 5.497 MB / 0.6466 GB, free: 31.15 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006179/1.244, allocations: 3.893 MB / 0.6504 GB, free: 27.24 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.735e-05/1.244, allocations: 28 kB / 0.6504 GB, free: 27.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.01782/1.262, allocations: 9.412 MB / 0.6596 GB, free: 17.72 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001458/1.262, allocations: 48 kB / 0.6597 GB, free: 17.67 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001887/1.262, allocations: 92 kB / 0.6598 GB, free: 17.58 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002385/1.264, allocations: 0.9274 MB / 0.6607 GB, free: 16.64 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005517/1.27, allocations: 1.501 MB / 0.6621 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01043/1.28, allocations: 9.927 MB / 0.6718 GB, free: 4.812 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006307/1.287, allocations: 415.1 kB / 0.6722 GB, free: 4.406 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001368/1.288, allocations: 339.9 kB / 0.6725 GB, free: 4.074 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 427 * 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 (780): * Single equations (assignments): 772 * Array equations: 0 * 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 {(8,67.2%) 26,(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008276/1.296, allocations: 3.759 MB / 0.6762 GB, free: 312 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001899/1.298, allocations: 0.5016 MB / 0.6767 GB, free: 15.79 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01339/1.312, allocations: 6.163 MB / 0.6827 GB, free: 9.562 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005588/1.317, allocations: 3.205 MB / 0.6858 GB, free: 6.352 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.965e-05/1.317, allocations: 11.98 kB / 0.6859 GB, free: 6.34 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.233e-05/1.318, allocations: 15.94 kB / 0.6859 GB, free: 6.324 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03404/1.352, allocations: 15.03 MB / 0.7006 GB, free: 7.191 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.729e-05/1.352, allocations: 7.984 kB / 0.7006 GB, free: 7.184 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003185/1.355, allocations: 0.6282 MB / 0.7012 GB, free: 6.555 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002707/1.358, allocations: 0.907 MB / 0.7021 GB, free: 5.633 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006242/1.358, allocations: 83.97 kB / 0.7021 GB, free: 5.551 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2453/1.604, allocations: 13.09 MB / 0.7149 GB, free: 142.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/1.604, allocations: 9.375 kB / 0.7149 GB, free: 142.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01516/1.619, allocations: 9.678 MB / 0.7244 GB, free: 138.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002979/1.622, allocations: 1.025 MB / 0.7254 GB, free: 138.6 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001217/1.623, allocations: 69.16 kB / 0.7255 GB, free: 138.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002915/1.626, allocations: 213.2 kB / 0.7257 GB, free: 138.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007058/1.627, allocations: 267.5 kB / 0.7259 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000257/1.627, allocations: 104 kB / 0.726 GB, free: 138.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0071/1.634, allocations: 3.382 MB / 0.7293 GB, free: 137.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.92e-07/1.634, allocations: 0 / 0.7293 GB, free: 137.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00792/1.642, allocations: 1.807 MB / 0.7311 GB, free: 137 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smee.phiMechanical,smee.stator.zeroInductor.i0,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smeeQS.short.port_p.reference.gamma,mechanicalPowerSensorQS.relSpeedSensor.phi_rel) * 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 (315): * Single equations (assignments): 306 * 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: 5 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8,(3,77.8%) 4,(8,65.6%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01255/1.655, allocations: 11.35 MB / 0.7422 GB, free: 130.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00983/1.664, allocations: 7.08 MB / 0.7491 GB, free: 127.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.253e-06/1.664, allocations: 0 / 0.7491 GB, free: 127.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004962/1.669, allocations: 3.529 MB / 0.7525 GB, free: 126.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005437/1.675, allocations: 1.073 MB / 0.7536 GB, free: 125.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1419/1.817, allocations: 120.2 MB / 0.8709 GB, free: 4.77 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01028/1.827, allocations: 6.747 MB / 0.8775 GB, free: 13.98 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007786/1.835, allocations: 1.846 MB / 0.8793 GB, free: 12.13 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009309/1.844, allocations: 3.996 MB / 0.8832 GB, free: 8.133 MB / 494.1 MB Notification: Performance of SimCode: time 1.733e-06/1.844, allocations: 4 kB / 0.8832 GB, free: 8.129 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.392/2.236, allocations: 137 MB / 1.017 GB, free: 65.54 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001553/2.237, allocations: 265.2 kB / 1.017 GB, free: 65.18 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.304/7.541, allocations: 3.125 kB / 1.017 GB, free: 65.18 MB / 494.1 MB (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