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.001617/0.001617, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 221.5 MB / 230.3 MB, free: 7.523 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.0008947/0.0008948, allocations: 98.64 kB / 281.2 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.016e-05/2.019e-05, allocations: 4 kB / 337.2 MB, free: 9.891 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0974/0.09744, allocations: 50.42 MB / 387.6 MB, free: 7.43 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3793/0.4768, allocations: 124.8 MB / 0.5004 GB, free: 1.746 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002554/0.4771, allocations: 91.94 kB / 0.5005 GB, free: 1.656 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6323/1.109, allocations: 191.7 MB / 0.6877 GB, free: 17.67 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.953e-06/1.109, allocations: 192 / 0.6877 GB, free: 17.67 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005408/1.11, allocations: 206.6 kB / 0.6879 GB, free: 17.47 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.0228/1.133, allocations: 7.932 MB / 0.6956 GB, free: 9.453 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/1.133, allocations: 15.98 kB / 0.6956 GB, free: 9.438 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0107/1.144, allocations: 1.905 MB / 0.6975 GB, free: 7.52 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01555/1.159, allocations: 7.042 MB / 0.7044 GB, free: 416 kB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004195/1.16, allocations: 284 kB / 0.7047 GB, free: 132 kB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.2589/1.418, allocations: 0.4942 MB / 0.7051 GB, free: 32.36 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02293/1.441, allocations: 8.234 MB / 0.7132 GB, free: 32.32 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03325/1.475, allocations: 9.654 MB / 0.7226 GB, free: 31.48 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006396/1.475, allocations: 13.92 kB / 0.7226 GB, free: 31.48 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003423/1.479, allocations: 5.969 kB / 0.7226 GB, free: 31.48 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003943/1.479, allocations: 369.6 kB / 0.723 GB, free: 31.46 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0653/1.545, allocations: 34.37 MB / 0.7565 GB, free: 25.07 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01219/1.557, allocations: 16.63 MB / 0.7728 GB, free: 12.63 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005057/1.562, allocations: 3.256 MB / 0.776 GB, free: 12.57 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01608/1.578, allocations: 9.342 MB / 0.7851 GB, free: 8.012 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.262e-05/1.578, allocations: 67.09 kB / 0.7852 GB, free: 7.949 MB / 426.7 MB Notification: Performance of pre-optimization done (n=300): time 5.68e-06/1.578, allocations: 0 / 0.7852 GB, free: 7.949 MB / 426.7 MB Notification: Performance of matching and sorting (n=352): time 0.0241/1.602, allocations: 12.17 MB / 0.797 GB, free: 2.938 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/1.602, allocations: 85.38 kB / 0.7971 GB, free: 2.871 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005529/1.608, allocations: 3.149 MB / 0.8002 GB, free: 1.609 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006433/1.609, allocations: 25.7 kB / 0.8002 GB, free: 1.578 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00238/1.611, allocations: 3.899 MB / 0.804 GB, free: 14.62 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001392/1.612, allocations: 1.147 MB / 0.8051 GB, free: 13.71 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003538/1.613, allocations: 0 / 0.8051 GB, free: 13.71 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000282/1.613, allocations: 487.6 kB / 0.8056 GB, free: 13.33 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002447/1.616, allocations: 1.651 MB / 0.8072 GB, free: 12.61 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003323/1.619, allocations: 3.047 MB / 0.8102 GB, free: 10.11 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004283/1.623, allocations: 2.552 MB / 0.8127 GB, free: 9.148 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.739e-05/1.623, allocations: 14.44 kB / 0.8127 GB, free: 9.148 MB / 442.7 MB Notification: Performance of matching and sorting (n=576) (initialization): time 0.01131/1.635, allocations: 5.965 MB / 0.8185 GB, free: 6.996 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.351e-05/1.635, allocations: 25.41 kB / 0.8186 GB, free: 6.996 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.535e-05/1.635, allocations: 49.59 kB / 0.8186 GB, free: 6.996 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001827/1.637, allocations: 0.7016 MB / 0.8193 GB, free: 6.754 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004145/1.641, allocations: 1.042 MB / 0.8203 GB, free: 6.719 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01041/1.651, allocations: 9.665 MB / 0.8297 GB, free: 15.21 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004765/1.656, allocations: 170.1 kB / 0.8299 GB, free: 15.19 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001043/1.657, allocations: 203.1 kB / 0.8301 GB, free: 15.15 MB / 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 (523): * Single equations (assignments): 515 * 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,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009777/1.658, allocations: 234.8 kB / 0.8303 GB, free: 15.01 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009229/1.667, allocations: 4.79 MB / 0.835 GB, free: 12.98 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001399/1.669, allocations: 438.8 kB / 0.8354 GB, free: 12.76 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009883/1.679, allocations: 5.058 MB / 0.8404 GB, free: 9.297 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.816e-05/1.679, allocations: 36 kB / 0.8404 GB, free: 9.262 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-05/1.679, allocations: 12 kB / 0.8404 GB, free: 9.25 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.64e-05/1.679, allocations: 17.48 kB / 0.8404 GB, free: 9.25 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0232/1.702, allocations: 11.32 MB / 0.8515 GB, free: 4 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-05/1.702, allocations: 5.641 kB / 0.8515 GB, free: 0 / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005599/1.708, allocations: 0.8401 MB / 0.8523 GB, free: 0 / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002368/1.71, allocations: 0.8827 MB / 0.8532 GB, free: 15.27 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000493/1.711, allocations: 35.27 kB / 0.8532 GB, free: 15.24 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01529/1.726, allocations: 13.46 MB / 0.8663 GB, free: 2.25 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.598e-06/1.726, allocations: 7.062 kB / 0.8663 GB, free: 2.246 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01536/1.741, allocations: 7.984 MB / 0.8741 GB, free: 11 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003242/1.745, allocations: 0.8981 MB / 0.875 GB, free: 10.18 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001234/1.746, allocations: 19.52 kB / 0.875 GB, free: 10.16 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003025/1.749, allocations: 152.3 kB / 0.8752 GB, free: 10.05 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007105/1.75, allocations: 273.5 kB / 0.8754 GB, free: 9.887 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002862/1.75, allocations: 100.1 kB / 0.8755 GB, free: 9.797 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004537/1.755, allocations: 2.314 MB / 0.8778 GB, free: 7.723 MB / 490.7 MB Notification: Performance of sort global known variables: time 2e-07/1.755, allocations: 0 / 0.8778 GB, free: 7.723 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008785/1.763, allocations: 1.332 MB / 0.8791 GB, free: 6.402 MB / 490.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,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 (273): * Single equations (assignments): 266 * 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.2965/2.06, allocations: 9.882 MB / 0.8887 GB, free: 86.93 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009224/2.069, allocations: 5.012 MB / 0.8936 GB, free: 86.17 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.2e-05/2.069, allocations: 1.906 kB / 0.8936 GB, free: 86.17 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005237/2.074, allocations: 3.109 MB / 0.8967 GB, free: 85.53 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00503/2.08, allocations: 0.7558 MB / 0.8974 GB, free: 85.51 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03576/2.115, allocations: 13.77 MB / 0.9109 GB, free: 82.76 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006706/2.122, allocations: 5.218 MB / 0.916 GB, free: 81.89 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004121/2.126, allocations: 1.002 MB / 0.9169 GB, free: 81.76 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004381/2.131, allocations: 3.277 MB / 0.9201 GB, free: 81.76 MB / 490.7 MB Notification: Performance of SimCode: time 9.02e-07/2.131, allocations: 0 / 0.9201 GB, free: 81.76 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1534/2.284, allocations: 106.4 MB / 1.024 GB, free: 37.65 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001684/2.284, allocations: 227.5 kB / 1.024 GB, free: 37.37 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.753/8.038, allocations: 0 / 1.024 GB, free: 37.37 MB / 490.7 MB (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