Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_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.001341/0.001341, allocations: 203.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009373/0.0009374, allocations: 91.8 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.927e-05/1.92e-05, allocations: 4 kB / 343.8 MB, free: 8.168 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1132, allocations: 51.48 MB / 395.3 MB, free: 4.645 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4367/0.5499, allocations: 137.7 MB / 0.5205 GB, free: 4.289 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002657/0.5502, allocations: 91.81 kB / 0.5206 GB, free: 4.242 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5637/1.114, allocations: 133.3 MB / 0.6508 GB, free: 72.91 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.485e-06/1.114, allocations: 3.938 kB / 0.6508 GB, free: 72.91 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005096/1.115, allocations: 148.1 kB / 0.6509 GB, free: 72.88 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.01683/1.131, allocations: 5.461 MB / 0.6563 GB, free: 70.32 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/1.131, allocations: 14.09 kB / 0.6563 GB, free: 70.32 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008025/1.139, allocations: 1.183 MB / 0.6574 GB, free: 69.91 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01336/1.153, allocations: 4.927 MB / 0.6622 GB, free: 67.49 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003561/1.153, allocations: 185.9 kB / 0.6624 GB, free: 67.49 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002124/1.155, allocations: 336.3 kB / 0.6627 GB, free: 67.48 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0127/1.168, allocations: 5.26 MB / 0.6679 GB, free: 65.24 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01746/1.186, allocations: 6.218 MB / 0.6739 GB, free: 62.49 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000204/1.186, allocations: 10.77 kB / 0.674 GB, free: 62.49 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008138/1.187, allocations: 11.77 kB / 0.674 GB, free: 62.48 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002041/1.187, allocations: 245.6 kB / 0.6742 GB, free: 62.46 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04498/1.232, allocations: 22.92 MB / 0.6966 GB, free: 43.94 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00729/1.239, allocations: 8.806 MB / 0.7052 GB, free: 34.16 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003334/1.243, allocations: 2.153 MB / 0.7073 GB, free: 32.01 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01279/1.255, allocations: 7.4 MB / 0.7145 GB, free: 24.35 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.573e-05/1.256, allocations: 64.55 kB / 0.7146 GB, free: 24.28 MB / 442.7 MB Notification: Performance of pre-optimization done (n=241): time 6.712e-06/1.256, allocations: 0 / 0.7146 GB, free: 24.28 MB / 442.7 MB Notification: Performance of matching and sorting (n=292): time 0.02337/1.279, allocations: 10.63 MB / 0.725 GB, free: 13.57 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.623e-05/1.279, allocations: 81.67 kB / 0.725 GB, free: 13.48 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003878/1.283, allocations: 2.397 MB / 0.7274 GB, free: 11.08 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004922/1.283, allocations: 33.64 kB / 0.7274 GB, free: 11.04 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001292/1.285, allocations: 2.687 MB / 0.73 GB, free: 8.324 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008694/1.286, allocations: 0.9622 MB / 0.731 GB, free: 7.348 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001755/1.286, allocations: 0 / 0.731 GB, free: 7.348 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001642/1.286, allocations: 450 kB / 0.7314 GB, free: 6.902 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001813/1.288, allocations: 1.413 MB / 0.7328 GB, free: 5.488 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002216/1.29, allocations: 2.566 MB / 0.7353 GB, free: 2.398 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003551/1.294, allocations: 2.122 MB / 0.7374 GB, free: 264 kB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.321e-05/1.294, allocations: 12 kB / 0.7374 GB, free: 252 kB / 442.7 MB Notification: Performance of matching and sorting (n=478) (initialization): time 0.3213/1.615, allocations: 5.238 MB / 0.7425 GB, free: 66.53 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.265e-05/1.615, allocations: 23.58 kB / 0.7425 GB, free: 66.53 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.497e-05/1.615, allocations: 38.5 kB / 0.7425 GB, free: 66.53 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00189/1.617, allocations: 0.8524 MB / 0.7434 GB, free: 66.49 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00342/1.62, allocations: 0.8622 MB / 0.7442 GB, free: 66.49 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009911/1.63, allocations: 9.361 MB / 0.7534 GB, free: 62.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004229/1.635, allocations: 161.3 kB / 0.7535 GB, free: 62.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008117/1.635, allocations: 169.4 kB / 0.7537 GB, free: 62.7 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 171 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (425): * Single equations (assignments): 416 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(6,72.2%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007187/1.636, allocations: 215.9 kB / 0.7539 GB, free: 62.59 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00879/1.645, allocations: 4.252 MB / 0.758 GB, free: 62.21 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001414/1.646, allocations: 358 kB / 0.7584 GB, free: 62.21 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0089/1.655, allocations: 4.504 MB / 0.7628 GB, free: 61.79 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.897e-05/1.655, allocations: 28.03 kB / 0.7628 GB, free: 61.79 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.268e-05/1.656, allocations: 15.94 kB / 0.7628 GB, free: 61.79 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.94e-05/1.656, allocations: 16.75 kB / 0.7628 GB, free: 61.78 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02105/1.677, allocations: 9.268 MB / 0.7719 GB, free: 60.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.008195/1.685, allocations: 3.87 MB / 0.7757 GB, free: 60.37 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002554/1.687, allocations: 0.5097 MB / 0.7762 GB, free: 60.37 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002775/1.69, allocations: 0.963 MB / 0.7771 GB, free: 60.31 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005788/1.691, allocations: 30.58 kB / 0.7771 GB, free: 60.31 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0147/1.706, allocations: 14.21 MB / 0.791 GB, free: 51.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-05/1.706, allocations: 8.938 kB / 0.791 GB, free: 51.4 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01258/1.718, allocations: 7.047 MB / 0.7979 GB, free: 47.79 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003404/1.722, allocations: 0.7382 MB / 0.7986 GB, free: 47.32 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001048/1.723, allocations: 18.14 kB / 0.7986 GB, free: 47.31 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002308/1.725, allocations: 147.1 kB / 0.7988 GB, free: 47.31 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006325/1.726, allocations: 216.2 kB / 0.799 GB, free: 47.28 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002269/1.726, allocations: 84.12 kB / 0.7991 GB, free: 47.26 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003571/1.73, allocations: 1.764 MB / 0.8008 GB, free: 46.54 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.293e-06/1.73, allocations: 0 / 0.8008 GB, free: 46.54 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005736/1.735, allocations: 1.042 MB / 0.8018 GB, free: 46.52 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.stray.Phi.re,smeeM.stator.stray.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (229): * Single equations (assignments): 220 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,75.0%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0129/1.748, allocations: 8.948 MB / 0.8105 GB, free: 41.5 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00768/1.756, allocations: 4.481 MB / 0.8149 GB, free: 39.48 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/1.756, allocations: 2.062 kB / 0.8149 GB, free: 39.48 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005337/1.761, allocations: 2.875 MB / 0.8177 GB, free: 37.97 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004289/1.766, allocations: 0.6137 MB / 0.8183 GB, free: 37.81 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02303/1.789, allocations: 9.703 MB / 0.8278 GB, free: 33.94 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005582/1.794, allocations: 3.628 MB / 0.8313 GB, free: 32.65 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003507/1.798, allocations: 0.8089 MB / 0.8321 GB, free: 32.56 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003344/1.801, allocations: 2.22 MB / 0.8343 GB, free: 30.71 MB / 442.7 MB Notification: Performance of SimCode: time 1.093e-06/1.801, allocations: 0 / 0.8343 GB, free: 30.71 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5439/2.345, allocations: 83.23 MB / 0.9156 GB, free: 73.12 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001643/2.346, allocations: 185 kB / 0.9158 GB, free: 72.93 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.141/7.487, allocations: 0.75 kB / 0.9158 GB, free: 72.93 MB / 474.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat