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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0008113/0.0008114, allocations: 96.33 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001016/0.001016, allocations: 191.1 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000219/0.0002192, allocations: 8 kB / 306.8 MB, free: 1.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1196, allocations: 51.5 MB / 358.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase): time 0.2514/0.3711, allocations: 27.01 MB / 385.3 MB, free: 7.727 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01806/0.3892, allocations: 7.976 MB / 393.3 MB, free: 1.789 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007447/0.3967, allocations: 187 kB / 393.5 MB, free: 1.746 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006843/0.4036, allocations: 1.419 MB / 394.9 MB, free: 1.055 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01107/0.4147, allocations: 2.187 MB / 397.1 MB, free: 15.65 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006581/0.4213, allocations: 1.186 MB / 398.3 MB, free: 14.96 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01867/0.44, allocations: 10.24 MB / 408.5 MB, free: 9.098 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01142/0.4514, allocations: 6.238 MB / 414.8 MB, free: 4.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009833/0.4613, allocations: 3.253 MB / 418 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008844/0.4702, allocations: 4.217 MB / 422.2 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002915/0.4732, allocations: 0.5391 MB / 422.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006896/0.4801, allocations: 0.8706 MB / 423.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004712/0.4848, allocations: 2.008 MB / 425.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005738/0.4906, allocations: 1.899 MB / 427.6 MB, free: 7.316 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02291/0.5136, allocations: 14.42 MB / 442 MB, free: 8.855 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.5136, allocations: 0 / 442 MB, free: 8.855 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.5136, allocations: 0 / 442 MB, free: 8.855 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0006934/0.5143, allocations: 7.938 kB / 442 MB, free: 8.848 MB / 350.1 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.03045/0.5448, allocations: 9.366 MB / 451.4 MB, free: 15.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.363e-05/0.5449, allocations: 8.031 kB / 451.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004985/0.5499, allocations: 1.177 MB / 452.5 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01389/0.5638, allocations: 2.186 MB / 454.7 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01661/0.5804, allocations: 5.627 MB / 460.4 MB, free: 6.289 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00115/0.5816, allocations: 0.6421 MB / 461 MB, free: 5.645 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003569/0.5852, allocations: 0.8475 MB / 461.9 MB, free: 4.797 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03505/0.6203, allocations: 11.42 MB / 473.3 MB, free: 9.293 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002386/0.6206, allocations: 7.984 kB / 473.3 MB, free: 9.285 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001773/0.6224, allocations: 360 kB / 473.6 MB, free: 8.934 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004402/0.6228, allocations: 373.5 kB / 474 MB, free: 8.566 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02504/0.6479, allocations: 9.696 MB / 483.7 MB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08431/0.7322, allocations: 36.24 MB / 0.5077 GB, free: 9.691 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02254/0.7548, allocations: 18.12 MB / 0.5254 GB, free: 5.578 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009453/0.7643, allocations: 4.211 MB / 0.5295 GB, free: 1.348 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4564/1.221, allocations: 11.76 MB / 0.541 GB, free: 128 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.726e-05/1.221, allocations: 69.11 kB / 0.5411 GB, free: 127.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=310): time 5.37e-06/1.221, allocations: 0.8438 kB / 0.5411 GB, free: 127.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=362): time 0.03774/1.259, allocations: 16.44 MB / 0.5572 GB, free: 120.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.892e-05/1.259, allocations: 89.77 kB / 0.5572 GB, free: 120.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007268/1.266, allocations: 4.504 MB / 0.5616 GB, free: 119.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006632/1.267, allocations: 87.64 kB / 0.5617 GB, free: 119 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002398/1.269, allocations: 3.893 MB / 0.5655 GB, free: 116.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001339/1.27, allocations: 1.233 MB / 0.5667 GB, free: 115.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002461/1.271, allocations: 87.38 kB / 0.5668 GB, free: 115.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002426/1.271, allocations: 490.6 kB / 0.5673 GB, free: 114.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003093/1.274, allocations: 2.001 MB / 0.5692 GB, free: 113.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003677/1.278, allocations: 3.464 MB / 0.5726 GB, free: 111.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003608/1.281, allocations: 2.588 MB / 0.5751 GB, free: 110.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.341e-05/1.281, allocations: 11.69 kB / 0.5752 GB, free: 110.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=587) (initialization): time 0.01106/1.292, allocations: 6.925 MB / 0.5819 GB, free: 104.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.94e-05/1.293, allocations: 26.08 kB / 0.5819 GB, free: 104.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.777e-05/1.293, allocations: 48 kB / 0.582 GB, free: 104.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002185/1.295, allocations: 0.9229 MB / 0.5829 GB, free: 103.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003838/1.299, allocations: 1.061 MB / 0.5839 GB, free: 102.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01092/1.31, allocations: 11.61 MB / 0.5953 GB, free: 90.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005139/1.315, allocations: 267.7 kB / 0.5955 GB, free: 89.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008762/1.316, allocations: 200 kB / 0.5957 GB, free: 89.61 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 208 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (529): * Single equations (assignments): 521 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * 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,(3,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006298/1.322, allocations: 2.543 MB / 0.5982 GB, free: 87.05 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001592/1.324, allocations: 494 kB / 0.5987 GB, free: 86.57 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009685/1.333, allocations: 5.861 MB / 0.6044 GB, free: 80.61 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.983e-05/1.333, allocations: 40 kB / 0.6044 GB, free: 80.57 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.811e-05/1.333, allocations: 15.98 kB / 0.6044 GB, free: 80.55 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.004e-05/1.333, allocations: 15.94 kB / 0.6045 GB, free: 80.54 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02114/1.355, allocations: 13.52 MB / 0.6177 GB, free: 66.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-05/1.355, allocations: 4 kB / 0.6177 GB, free: 66.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002414/1.357, allocations: 0.6247 MB / 0.6183 GB, free: 66.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002488/1.36, allocations: 1.082 MB / 0.6193 GB, free: 65.14 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000387/1.36, allocations: 95.89 kB / 0.6194 GB, free: 65.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01422/1.374, allocations: 15.38 MB / 0.6344 GB, free: 49 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/1.374, allocations: 4 kB / 0.6344 GB, free: 49 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01358/1.388, allocations: 8.547 MB / 0.6428 GB, free: 40.26 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003784/1.392, allocations: 1.003 MB / 0.6438 GB, free: 39.23 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008974/1.393, allocations: 76 kB / 0.6438 GB, free: 39.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00219/1.395, allocations: 203.8 kB / 0.644 GB, free: 38.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006616/1.395, allocations: 278.3 kB / 0.6443 GB, free: 38.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002249/1.396, allocations: 104 kB / 0.6444 GB, free: 38.59 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005415/1.401, allocations: 3.049 MB / 0.6474 GB, free: 35.54 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.401, allocations: 3.938 kB / 0.6474 GB, free: 35.54 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006768/1.408, allocations: 1.497 MB / 0.6488 GB, free: 34.05 MB / 446.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (281): * Single equations (assignments): 274 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * 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,(2,100.0%) 13,(4,93.8%) 33,(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.01229/1.42, allocations: 9.281 MB / 0.6579 GB, free: 24.58 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008711/1.429, allocations: 5.869 MB / 0.6636 GB, free: 18.61 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.368e-06/1.429, allocations: 4 kB / 0.6636 GB, free: 18.61 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005083/1.434, allocations: 3.521 MB / 0.6671 GB, free: 15.02 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005826/1.44, allocations: 1.133 MB / 0.6682 GB, free: 13.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.345/1.785, allocations: 49.16 MB / 0.7162 GB, free: 148.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00814/1.793, allocations: 5.078 MB / 0.7212 GB, free: 147.7 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004848/1.798, allocations: 1.063 MB / 0.7222 GB, free: 147.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005288/1.803, allocations: 3.376 MB / 0.7255 GB, free: 146.6 MB / 478.1 MB Notification: Performance of SimCode: time 1.132e-06/1.803, allocations: 0 / 0.7255 GB, free: 146.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.163/1.966, allocations: 122 MB / 0.8447 GB, free: 43.52 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001508/1.967, allocations: 293.9 kB / 0.8449 GB, free: 43.16 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.848/6.815, allocations: 3.953 kB / 0.845 GB, free: 43.16 MB / 478.1 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