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.002064/0.002064, allocations: 196.3 kB / 14.16 MB, free: 1.156 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 225.4 MB / 240.1 MB, free: 15.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008505/0.0008505, allocations: 89.09 kB / 292.1 MB, free: 5.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.733e-05/3.737e-05, allocations: 8 kB / 350.7 MB, free: 2.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1115, allocations: 51.49 MB / 402.2 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4231/0.5346, allocations: 168.6 MB / 0.5573 GB, free: 2.273 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002737/0.5349, allocations: 100.6 kB / 0.5574 GB, free: 2.219 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.782/2.317, allocations: 408.8 MB / 0.9566 GB, free: 38.22 MB / 474.7 MB Notification: Performance of FrontEnd: time 5.05e-06/2.317, allocations: 0.6094 kB / 0.9566 GB, free: 38.22 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001687/2.319, allocations: 260.1 kB / 0.9569 GB, free: 38.2 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.04667/2.366, allocations: 10.2 MB / 0.9669 GB, free: 34.93 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/2.366, allocations: 10.22 kB / 0.9669 GB, free: 34.93 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009657/2.375, allocations: 1.737 MB / 0.9686 GB, free: 34.79 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02613/2.401, allocations: 3.774 MB / 0.9722 GB, free: 34.16 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02857/2.43, allocations: 8.908 MB / 0.9809 GB, free: 33.02 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001231/2.431, allocations: 0.8067 MB / 0.9817 GB, free: 33 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005875/2.437, allocations: 1.066 MB / 0.9828 GB, free: 32.99 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05614/2.493, allocations: 16.18 MB / 0.9986 GB, free: 31.65 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009944/2.494, allocations: 13.23 kB / 0.9986 GB, free: 31.65 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005371/2.5, allocations: 477.8 kB / 0.999 GB, free: 31.64 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001061/2.501, allocations: 0.7051 MB / 0.9997 GB, free: 31.61 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03457/2.535, allocations: 13.42 MB / 1.013 GB, free: 29.67 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1174/2.653, allocations: 57.2 MB / 1.069 GB, free: 10.73 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0238/2.677, allocations: 21.44 MB / 1.09 GB, free: 3.992 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006596/2.683, allocations: 3.271 MB / 1.093 GB, free: 1.012 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.412/3.095, allocations: 10.16 MB / 1.103 GB, free: 70.07 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.666e-05/3.096, allocations: 69.78 kB / 1.103 GB, free: 70.04 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=314): time 4.93e-06/3.096, allocations: 1.625 kB / 1.103 GB, free: 70.04 MB / 0.4948 GB Notification: Performance of matching and sorting (n=347): time 0.02921/3.125, allocations: 14.07 MB / 1.117 GB, free: 66.93 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003487/3.128, allocations: 2.909 MB / 1.119 GB, free: 65.32 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01033/3.139, allocations: 4.457 MB / 1.124 GB, free: 64.96 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0008745/3.14, allocations: 80.95 kB / 1.124 GB, free: 64.93 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004145/3.144, allocations: 5.146 MB / 1.129 GB, free: 62.41 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002012/3.146, allocations: 1.215 MB / 1.13 GB, free: 61.66 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007185/3.147, allocations: 125.3 kB / 1.13 GB, free: 61.66 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004692/3.147, allocations: 0.5518 MB / 1.131 GB, free: 61.34 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005617/3.153, allocations: 2.639 MB / 1.133 GB, free: 61.33 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007345/3.16, allocations: 5.337 MB / 1.138 GB, free: 57.98 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00717/3.167, allocations: 3.829 MB / 1.142 GB, free: 57.91 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001737/3.168, allocations: 25.31 kB / 1.142 GB, free: 57.91 MB / 0.4948 GB Notification: Performance of matching and sorting (n=811) (initialization): time 0.02218/3.19, allocations: 9.184 MB / 1.151 GB, free: 57.35 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001097/3.19, allocations: 46 kB / 1.151 GB, free: 57.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001829/3.19, allocations: 92.66 kB / 1.151 GB, free: 57.35 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002254/3.192, allocations: 0.9282 MB / 1.152 GB, free: 57.31 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005645/3.198, allocations: 1.469 MB / 1.154 GB, free: 57.31 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01149/3.209, allocations: 9.695 MB / 1.163 GB, free: 53.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008794/3.218, allocations: 495.8 kB / 1.164 GB, free: 53.18 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001801/3.22, allocations: 336.5 kB / 1.164 GB, free: 53.18 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 (755): * Single equations (assignments): 745 * 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 {(8,67.2%) 26,(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002635/3.223, allocations: 0.514 MB / 1.164 GB, free: 53.02 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002354/3.225, allocations: 0.503 MB / 1.165 GB, free: 52.75 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01559/3.241, allocations: 6.177 MB / 1.171 GB, free: 52.28 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01402/3.255, allocations: 5.129 MB / 1.176 GB, free: 51.9 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.11e-05/3.255, allocations: 7.844 kB / 1.176 GB, free: 51.9 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001333/3.255, allocations: 21.55 kB / 1.176 GB, free: 51.9 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07182/3.327, allocations: 21.44 MB / 1.197 GB, free: 44.05 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.356e-05/3.327, allocations: 14.39 kB / 1.197 GB, free: 44.05 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004312/3.331, allocations: 0.5797 MB / 1.198 GB, free: 44.04 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004435/3.336, allocations: 1.142 MB / 1.199 GB, free: 43.75 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001006/3.337, allocations: 81.75 kB / 1.199 GB, free: 43.71 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02156/3.359, allocations: 14.58 MB / 1.213 GB, free: 33.32 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004049/3.363, allocations: 2.818 MB / 1.216 GB, free: 31.16 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02556/3.388, allocations: 9.674 MB / 1.225 GB, free: 26.19 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004592/3.393, allocations: 1.037 MB / 1.226 GB, free: 25.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002388/3.395, allocations: 67.62 kB / 1.226 GB, free: 25.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006675/3.402, allocations: 251.7 kB / 1.226 GB, free: 25.45 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001588/3.404, allocations: 268.7 kB / 1.227 GB, free: 25.41 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001266/3.405, allocations: 109.3 kB / 1.227 GB, free: 25.38 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.012/3.417, allocations: 3.288 MB / 1.23 GB, free: 24.13 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.21e-07/3.417, allocations: 2.844 kB / 1.23 GB, free: 24.13 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01438/3.431, allocations: 1.959 MB / 1.232 GB, free: 23.5 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],smee.stator.zeroInductor.i0,smeeQS.gamma,smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (292): * Single equations (assignments): 283 * 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 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8,(8,67.2%) 26} * Non-linear torn systems: 1 {5 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01778/3.449, allocations: 11.76 MB / 1.243 GB, free: 12.71 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01264/3.462, allocations: 6.905 MB / 1.25 GB, free: 6.508 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.089e-05/3.462, allocations: 2 kB / 1.25 GB, free: 6.508 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006912/3.469, allocations: 3.544 MB / 1.254 GB, free: 3.25 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008226/3.477, allocations: 1.074 MB / 1.255 GB, free: 2.41 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06401/3.541, allocations: 18.63 MB / 1.273 GB, free: 2.586 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4015/3.943, allocations: 7.02 MB / 1.28 GB, free: 72.29 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008253/3.951, allocations: 1.844 MB / 1.282 GB, free: 72.24 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009652/3.961, allocations: 4.068 MB / 1.286 GB, free: 72.23 MB / 0.5105 GB Notification: Performance of SimCode: time 1.863e-06/3.961, allocations: 0 / 1.286 GB, free: 72.23 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2553/4.216, allocations: 147.1 MB / 1.429 GB, free: 20.11 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002119/4.216, allocations: 244.7 kB / 1.429 GB, free: 19.77 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.456/11.67, allocations: 0 / 1.429 GB, free: 19.77 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