Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 221.3 MB / 235.5 MB, free: 2.918 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008492/0.0008491, allocations: 83.94 kB / 286.5 MB, free: 200 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.748e-05/2.75e-05, allocations: 0 / 344 MB, free: 4.199 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1032, allocations: 50.42 MB / 394.4 MB, free: 1.738 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.384/0.4872, allocations: 125.5 MB / 0.5077 GB, free: 9.875 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002958/0.4876, allocations: 103.9 kB / 0.5078 GB, free: 9.773 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6715/1.159, allocations: 194.1 MB / 0.6973 GB, free: 5.23 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.733e-06/1.159, allocations: 0 / 0.6973 GB, free: 5.23 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007348/1.16, allocations: 207.8 kB / 0.6975 GB, free: 5.027 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.02741/1.187, allocations: 7.929 MB / 0.7053 GB, free: 13.01 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.558e-05/1.187, allocations: 12.03 kB / 0.7053 GB, free: 13 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005743/1.193, allocations: 1.173 MB / 0.7064 GB, free: 11.81 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01359/1.207, allocations: 1.905 MB / 0.7083 GB, free: 9.895 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02292/1.23, allocations: 7.053 MB / 0.7152 GB, free: 2.766 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008263/1.231, allocations: 0.6382 MB / 0.7158 GB, free: 2.125 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003629/1.234, allocations: 0.8475 MB / 0.7166 GB, free: 1.277 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4/1.634, allocations: 10.92 MB / 0.7273 GB, free: 35.41 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007142/1.635, allocations: 3.781 kB / 0.7273 GB, free: 35.41 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003884/1.639, allocations: 367.6 kB / 0.7277 GB, free: 35.41 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007473/1.64, allocations: 372.3 kB / 0.728 GB, free: 35.39 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02925/1.669, allocations: 8.753 MB / 0.7366 GB, free: 35.31 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0852/1.754, allocations: 36.03 MB / 0.7717 GB, free: 28.76 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01572/1.77, allocations: 16.8 MB / 0.7882 GB, free: 16.3 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007863/1.778, allocations: 3.394 MB / 0.7915 GB, free: 15.36 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02544/1.803, allocations: 9.577 MB / 0.8008 GB, free: 10.18 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.79e-05/1.804, allocations: 73.89 kB / 0.8009 GB, free: 10.11 MB / 442.7 MB Notification: Performance of pre-optimization done (n=298): time 7.314e-06/1.804, allocations: 3.562 kB / 0.8009 GB, free: 10.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=350): time 0.02854/1.832, allocations: 11.6 MB / 0.8122 GB, free: 5.035 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.687e-05/1.832, allocations: 90.98 kB / 0.8123 GB, free: 4.969 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01046/1.843, allocations: 3.828 MB / 0.8161 GB, free: 3.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009122/1.844, allocations: 86.27 kB / 0.8161 GB, free: 3.422 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003594/1.847, allocations: 3.877 MB / 0.8199 GB, free: 0.4922 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002056/1.849, allocations: 1.194 MB / 0.8211 GB, free: 15.57 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008607/1.85, allocations: 90.38 kB / 0.8212 GB, free: 15.5 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005481/1.851, allocations: 480.4 kB / 0.8216 GB, free: 15.11 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003835/1.855, allocations: 1.736 MB / 0.8233 GB, free: 14.39 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005086/1.86, allocations: 3.158 MB / 0.8264 GB, free: 11.87 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004173/1.864, allocations: 2.318 MB / 0.8287 GB, free: 10.96 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.554e-05/1.864, allocations: 14.47 kB / 0.8287 GB, free: 10.96 MB / 458.7 MB Notification: Performance of matching and sorting (n=574) (initialization): time 0.01199/1.876, allocations: 6.147 MB / 0.8347 GB, free: 8.68 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.33e-05/1.876, allocations: 30.02 kB / 0.8347 GB, free: 8.68 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.962e-05/1.876, allocations: 49.44 kB / 0.8348 GB, free: 8.676 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001865/1.878, allocations: 0.7255 MB / 0.8355 GB, free: 8.445 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004041/1.882, allocations: 1.042 MB / 0.8365 GB, free: 8.414 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01142/1.894, allocations: 10.04 MB / 0.8463 GB, free: 0.5898 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005389/1.899, allocations: 253.3 kB / 0.8465 GB, free: 0.5039 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001036/1.9, allocations: 203.6 kB / 0.8467 GB, free: 480 kB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 207 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (521): * Single equations (assignments): 513 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * 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: 4 {(2,100.0%) 13,(1,100.0%) 5,(2,100.0%) 13,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002081/1.902, allocations: 396.8 kB / 0.8471 GB, free: 200 kB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001917/1.904, allocations: 484.5 kB / 0.8476 GB, free: 15.95 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01025/1.914, allocations: 5.105 MB / 0.8526 GB, free: 13.69 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.179e-05/1.915, allocations: 34.5 kB / 0.8526 GB, free: 13.69 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-05/1.915, allocations: 14.59 kB / 0.8526 GB, free: 13.69 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.425e-05/1.915, allocations: 14.53 kB / 0.8526 GB, free: 13.69 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0305/1.945, allocations: 12.49 MB / 0.8648 GB, free: 5.684 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-05/1.945, allocations: 4 kB / 0.8648 GB, free: 5.68 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003285/1.949, allocations: 0.6015 MB / 0.8654 GB, free: 5.207 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002665/1.951, allocations: 0.8849 MB / 0.8663 GB, free: 4.469 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007384/1.952, allocations: 85.89 kB / 0.8664 GB, free: 4.395 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01656/1.969, allocations: 13.98 MB / 0.88 GB, free: 6.82 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/1.969, allocations: 4 kB / 0.88 GB, free: 6.816 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01762/1.986, allocations: 8.332 MB / 0.8881 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004313/1.991, allocations: 0.951 MB / 0.8891 GB, free: 15.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001787/1.992, allocations: 79.7 kB / 0.8892 GB, free: 14.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003367/1.996, allocations: 203 kB / 0.8893 GB, free: 14.79 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006868/1.997, allocations: 280.2 kB / 0.8896 GB, free: 14.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002596/1.997, allocations: 95.08 kB / 0.8897 GB, free: 14.54 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006582/2.003, allocations: 2.893 MB / 0.8925 GB, free: 11.92 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.222e-06/2.003, allocations: 0 / 0.8925 GB, free: 11.92 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008545/2.012, allocations: 1.537 MB / 0.894 GB, free: 10.4 MB / 0.4948 GB 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,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.stray.Phi.re,smee3.stator.stray.Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (272): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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%) 13,(4,93.8%) 33,(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01943/2.032, allocations: 10.09 MB / 0.9039 GB, free: 0.8945 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.3132/2.345, allocations: 5.428 MB / 0.9092 GB, free: 96.76 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/2.345, allocations: 2.969 kB / 0.9092 GB, free: 96.76 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006216/2.351, allocations: 3.232 MB / 0.9123 GB, free: 96.07 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00726/2.358, allocations: 1.048 MB / 0.9134 GB, free: 96.05 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04474/2.403, allocations: 14.14 MB / 0.9272 GB, free: 93.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01091/2.414, allocations: 5.221 MB / 0.9323 GB, free: 92.42 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005916/2.42, allocations: 1.056 MB / 0.9333 GB, free: 92.34 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007706/2.428, allocations: 3.277 MB / 0.9365 GB, free: 92.34 MB / 0.4948 GB Notification: Performance of SimCode: time 2.285e-06/2.428, allocations: 0 / 0.9365 GB, free: 92.34 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.213/2.641, allocations: 125.4 MB / 1.059 GB, free: 34.95 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002036/2.641, allocations: 246.9 kB / 1.059 GB, free: 34.62 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.903/9.544, allocations: 0 / 1.059 GB, free: 34.62 MB / 0.4948 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase_res.mat does not exist to compare? outputFormat=mat