Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.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.ComparisonPolyphase.SMEE_Generator_Polyphase,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001132/0.001131, allocations: 200.9 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 225.6 MB / 234.8 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009737/0.0009738, allocations: 87.56 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.04e-05/2.034e-05, allocations: 4 kB / 343.8 MB, free: 8.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1348, allocations: 51.48 MB / 395.3 MB, free: 4.652 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4297/0.5646, allocations: 126 MB / 0.509 GB, free: 15.75 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003517/0.565, allocations: 98.05 kB / 0.5091 GB, free: 15.69 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6888/1.254, allocations: 197.8 MB / 0.7023 GB, free: 38.32 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.134e-06/1.254, allocations: 0 / 0.7023 GB, free: 38.32 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0009973/1.255, allocations: 207.6 kB / 0.7025 GB, free: 38.12 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.02606/1.281, allocations: 7.967 MB / 0.7103 GB, free: 30.08 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/1.281, allocations: 12.03 kB / 0.7103 GB, free: 30.07 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01281/1.294, allocations: 1.995 MB / 0.7122 GB, free: 28.06 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02042/1.314, allocations: 7.1 MB / 0.7192 GB, free: 20.99 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005204/1.315, allocations: 284 kB / 0.7194 GB, free: 20.71 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003157/1.318, allocations: 0.4998 MB / 0.7199 GB, free: 20.21 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0209/1.339, allocations: 8.232 MB / 0.728 GB, free: 11.98 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03011/1.369, allocations: 9.649 MB / 0.7374 GB, free: 2.082 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004579/1.37, allocations: 11.92 kB / 0.7374 GB, free: 2.07 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002783/1.373, allocations: 8 kB / 0.7374 GB, free: 2.062 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003268/1.373, allocations: 365.5 kB / 0.7377 GB, free: 1.703 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3774/1.75, allocations: 34.56 MB / 0.7715 GB, free: 37.32 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01325/1.764, allocations: 17.8 MB / 0.7889 GB, free: 23.67 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009175/1.773, allocations: 4.515 MB / 0.7933 GB, free: 23.61 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02144/1.794, allocations: 11.28 MB / 0.8043 GB, free: 20.46 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.425e-05/1.794, allocations: 62.25 kB / 0.8044 GB, free: 20.42 MB / 442.7 MB Notification: Performance of pre-optimization done (n=300): time 5.451e-06/1.794, allocations: 0 / 0.8044 GB, free: 20.42 MB / 442.7 MB Notification: Performance of matching and sorting (n=352): time 0.03372/1.828, allocations: 13.3 MB / 0.8173 GB, free: 17.99 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.473e-05/1.828, allocations: 84.72 kB / 0.8174 GB, free: 17.92 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00592/1.834, allocations: 3.167 MB / 0.8205 GB, free: 16.68 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007238/1.835, allocations: 29.36 kB / 0.8205 GB, free: 16.65 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00288/1.838, allocations: 3.917 MB / 0.8244 GB, free: 13.87 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001302/1.839, allocations: 1.152 MB / 0.8255 GB, free: 12.96 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002402/1.839, allocations: 0 / 0.8255 GB, free: 12.96 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002223/1.84, allocations: 488.5 kB / 0.826 GB, free: 12.57 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002296/1.842, allocations: 1.7 MB / 0.8276 GB, free: 11.83 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002902/1.845, allocations: 3.104 MB / 0.8307 GB, free: 9.301 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005454/1.85, allocations: 2.797 MB / 0.8334 GB, free: 8.297 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.106e-05/1.85, allocations: 15.62 kB / 0.8334 GB, free: 8.297 MB / 442.7 MB Notification: Performance of matching and sorting (n=576) (initialization): time 0.01218/1.862, allocations: 6.455 MB / 0.8397 GB, free: 5.992 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.88e-05/1.863, allocations: 26.09 kB / 0.8397 GB, free: 5.992 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.449e-05/1.863, allocations: 44.56 kB / 0.8398 GB, free: 5.992 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002031/1.865, allocations: 0.8836 MB / 0.8406 GB, free: 5.703 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003804/1.868, allocations: 1.047 MB / 0.8417 GB, free: 5.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01057/1.879, allocations: 10.92 MB / 0.8523 GB, free: 13.68 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00441/1.884, allocations: 169.2 kB / 0.8525 GB, free: 13.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006379/1.884, allocations: 201.6 kB / 0.8527 GB, free: 13.63 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 (518): * Single equations (assignments): 510 * 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%) 8,(2,100.0%) 13,(2,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007579/1.885, allocations: 235.3 kB / 0.8529 GB, free: 13.48 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01028/1.895, allocations: 5.277 MB / 0.858 GB, free: 11.34 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001128/1.896, allocations: 443.4 kB / 0.8585 GB, free: 11.11 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01031/1.907, allocations: 5.523 MB / 0.8639 GB, free: 8.859 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.549e-05/1.907, allocations: 32.62 kB / 0.8639 GB, free: 8.859 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.981e-05/1.907, allocations: 17.44 kB / 0.8639 GB, free: 8.855 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.385e-05/1.907, allocations: 19.86 kB / 0.8639 GB, free: 8.855 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02333/1.93, allocations: 11.94 MB / 0.8756 GB, free: 3.719 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-05/1.93, allocations: 7.25 kB / 0.8756 GB, free: 3.719 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002556/1.933, allocations: 0.6047 MB / 0.8762 GB, free: 3.551 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002629/1.935, allocations: 1.045 MB / 0.8772 GB, free: 2.695 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003265/1.936, allocations: 37.86 kB / 0.8773 GB, free: 2.664 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01672/1.953, allocations: 14.72 MB / 0.8916 GB, free: 4.609 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.708e-06/1.953, allocations: 4 kB / 0.8916 GB, free: 4.605 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01501/1.968, allocations: 8.502 MB / 0.8999 GB, free: 12.67 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002795/1.97, allocations: 0.9127 MB / 0.9008 GB, free: 11.84 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001281/1.972, allocations: 16 kB / 0.9008 GB, free: 11.82 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002938/1.975, allocations: 154.7 kB / 0.901 GB, free: 11.71 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007592/1.975, allocations: 270.7 kB / 0.9012 GB, free: 11.54 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002735/1.976, allocations: 105 kB / 0.9013 GB, free: 11.45 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004625/1.98, allocations: 2.33 MB / 0.9036 GB, free: 9.363 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.8e-07/1.98, allocations: 0 / 0.9036 GB, free: 9.363 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007819/1.988, allocations: 1.357 MB / 0.9049 GB, free: 8.02 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 (270): * Single equations (assignments): 263 * 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%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3513/2.34, allocations: 10.9 MB / 0.9156 GB, free: 82.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01001/2.35, allocations: 5.198 MB / 0.9207 GB, free: 81.43 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.378e-05/2.35, allocations: 4.656 kB / 0.9207 GB, free: 81.43 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005145/2.355, allocations: 3.186 MB / 0.9238 GB, free: 80.79 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0061/2.361, allocations: 0.778 MB / 0.9245 GB, free: 80.77 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03657/2.398, allocations: 13.92 MB / 0.9381 GB, free: 78.01 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006856/2.405, allocations: 5.226 MB / 0.9432 GB, free: 77.14 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004995/2.41, allocations: 0.9963 MB / 0.9442 GB, free: 77.03 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006023/2.416, allocations: 3.32 MB / 0.9475 GB, free: 77.03 MB / 490.7 MB Notification: Performance of SimCode: time 1.272e-06/2.416, allocations: 4 kB / 0.9475 GB, free: 77.02 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1793/2.595, allocations: 108.4 MB / 1.053 GB, free: 31.73 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002954/2.595, allocations: 231.3 kB / 1.054 GB, free: 31.44 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.551/8.146, allocations: 0 / 1.054 GB, free: 31.44 MB / 490.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase.fmu > Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase_res.mat does not exist to compare? outputFormat=mat