Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_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.000896/0.000896, allocations: 195.9 kB / 17.38 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.174/1.174, allocations: 226.5 MB / 244.7 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007718/0.0007718, allocations: 98.55 kB / 296.7 MB, free: 6.855 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001961/0.0001961, allocations: 7.984 kB / 356.9 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1737/0.1739, allocations: 51.29 MB / 408.2 MB, free: 27.65 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase): time 0.01728/0.1912, allocations: 27.06 MB / 435.2 MB, free: 0.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01306/0.2043, allocations: 7.971 MB / 443.2 MB, free: 8.52 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003341/0.2077, allocations: 187.4 kB / 443.4 MB, free: 8.336 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003255/0.2109, allocations: 1.417 MB / 444.8 MB, free: 6.91 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005479/0.2164, allocations: 2.194 MB / 447 MB, free: 4.707 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002953/0.2194, allocations: 1.185 MB / 448.2 MB, free: 3.531 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01055/0.23, allocations: 10.31 MB / 458.5 MB, free: 9.172 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008296/0.2383, allocations: 8.067 MB / 466.6 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003903/0.2422, allocations: 3.249 MB / 469.8 MB, free: 13.73 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004481/0.2467, allocations: 4.213 MB / 474 MB, free: 9.504 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001026/0.2477, allocations: 0.5352 MB / 474.6 MB, free: 8.969 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002055/0.2498, allocations: 0.9017 MB / 475.5 MB, free: 8.066 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001508/0.2513, allocations: 2.012 MB / 477.5 MB, free: 6.047 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004382/0.2557, allocations: 4.403 MB / 481.9 MB, free: 1.617 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01146/0.2672, allocations: 14.44 MB / 496.3 MB, free: 3.137 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.2672, allocations: 0 / 496.3 MB, free: 3.137 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2672, allocations: 0 / 496.3 MB, free: 3.137 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000367/0.2676, allocations: 0 / 496.3 MB, free: 3.137 MB / 362.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.02158/0.2892, allocations: 9.268 MB / 0.4937 GB, free: 9.762 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.2892, allocations: 12.03 kB / 0.4937 GB, free: 9.75 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00328/0.2925, allocations: 1.173 MB / 0.4949 GB, free: 8.566 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01151/0.3041, allocations: 2.179 MB / 0.497 GB, free: 6.375 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01131/0.3154, allocations: 5.762 MB / 0.5026 GB, free: 0.543 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.3045/0.6199, allocations: 0.6423 MB / 0.5033 GB, free: 78.15 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002553/0.6225, allocations: 0.844 MB / 0.5041 GB, free: 78.15 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01912/0.6416, allocations: 11.41 MB / 0.5152 GB, free: 73.89 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001559/0.6418, allocations: 12.59 kB / 0.5152 GB, free: 73.89 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006889/0.6425, allocations: 358.6 kB / 0.5156 GB, free: 73.61 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002684/0.6428, allocations: 376.9 kB / 0.516 GB, free: 73.56 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01531/0.6581, allocations: 9.702 MB / 0.5254 GB, free: 68.32 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04536/0.7035, allocations: 36.27 MB / 0.5608 GB, free: 31.87 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01171/0.7152, allocations: 18.13 MB / 0.5785 GB, free: 11.75 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006111/0.7214, allocations: 4.21 MB / 0.5827 GB, free: 7.535 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0179/0.7393, allocations: 11.78 MB / 0.5942 GB, free: 11.32 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.803e-05/0.7394, allocations: 76.97 kB / 0.5942 GB, free: 11.24 MB / 394.8 MB Notification: Performance of pre-optimization done (n=310): time 5.701e-06/0.7394, allocations: 0 / 0.5942 GB, free: 11.24 MB / 394.8 MB Notification: Performance of matching and sorting (n=362): time 0.03449/0.7739, allocations: 16.39 MB / 0.6102 GB, free: 10.64 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.197e-05/0.774, allocations: 94.17 kB / 0.6103 GB, free: 10.54 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007433/0.7814, allocations: 4.502 MB / 0.6147 GB, free: 6.035 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005102/0.782, allocations: 93.06 kB / 0.6148 GB, free: 5.941 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002776/0.7848, allocations: 3.887 MB / 0.6186 GB, free: 2.027 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001228/0.786, allocations: 1.238 MB / 0.6198 GB, free: 0.8008 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003149/0.7863, allocations: 88 kB / 0.6199 GB, free: 0.7148 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0002785/0.7866, allocations: 487.9 kB / 0.6204 GB, free: 236 kB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003414/0.79, allocations: 2 MB / 0.6223 GB, free: 14.22 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004168/0.7942, allocations: 3.463 MB / 0.6257 GB, free: 10.09 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007802/0.802, allocations: 5.823 MB / 0.6314 GB, free: 3.605 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-05/0.8021, allocations: 23.94 kB / 0.6314 GB, free: 3.582 MB / 426.8 MB Notification: Performance of matching and sorting (n=587) (initialization): time 0.01138/0.8135, allocations: 6.914 MB / 0.6382 GB, free: 12.59 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.911e-05/0.8135, allocations: 36.09 kB / 0.6382 GB, free: 12.56 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.239e-05/0.8136, allocations: 44 kB / 0.6382 GB, free: 12.52 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002341/0.8159, allocations: 0.9193 MB / 0.6391 GB, free: 11.58 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003664/0.8196, allocations: 1.061 MB / 0.6402 GB, free: 10.52 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01248/0.8321, allocations: 11.61 MB / 0.6515 GB, free: 14.39 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00359/0.8357, allocations: 251.7 kB / 0.6517 GB, free: 14.14 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004724/0.8362, allocations: 204 kB / 0.6519 GB, free: 13.95 MB / 458.8 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.004233/0.8404, allocations: 2.542 MB / 0.6544 GB, free: 11.39 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009723/0.8414, allocations: 0.4902 MB / 0.6549 GB, free: 10.89 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009906/0.8513, allocations: 5.857 MB / 0.6606 GB, free: 4.941 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.781e-05/0.8514, allocations: 43.98 kB / 0.6607 GB, free: 4.898 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.354e-05/0.8514, allocations: 16 kB / 0.6607 GB, free: 4.883 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.022e-05/0.8514, allocations: 19.94 kB / 0.6607 GB, free: 4.863 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02053/0.872, allocations: 13.53 MB / 0.6739 GB, free: 7.168 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.174e-05/0.872, allocations: 4 kB / 0.6739 GB, free: 7.164 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002494/0.8745, allocations: 0.6206 MB / 0.6745 GB, free: 6.543 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0026/0.8771, allocations: 1.089 MB / 0.6756 GB, free: 5.438 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002316/0.8774, allocations: 91.91 kB / 0.6757 GB, free: 5.348 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.167/1.044, allocations: 15.36 MB / 0.6907 GB, free: 150 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.319e-06/1.044, allocations: 5.031 kB / 0.6907 GB, free: 150 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01189/1.056, allocations: 8.548 MB / 0.699 GB, free: 146.4 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001844/1.058, allocations: 0.9986 MB / 0.7 GB, free: 145.9 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005537/1.059, allocations: 79.22 kB / 0.7001 GB, free: 145.9 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002199/1.061, allocations: 209.8 kB / 0.7003 GB, free: 145.9 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005977/1.062, allocations: 281.1 kB / 0.7005 GB, free: 145.8 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002018/1.062, allocations: 106 kB / 0.7007 GB, free: 145.8 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.003998/1.066, allocations: 3.049 MB / 0.7036 GB, free: 144.6 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.9e-07/1.066, allocations: 0 / 0.7036 GB, free: 144.6 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.003751/1.07, allocations: 1.496 MB / 0.7051 GB, free: 144.5 MB / 474.8 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.01138/1.081, allocations: 9.278 MB / 0.7142 GB, free: 140.2 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.007488/1.088, allocations: 5.869 MB / 0.7199 GB, free: 137.6 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 5.501e-06/1.088, allocations: 3 kB / 0.7199 GB, free: 137.6 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004537/1.093, allocations: 3.524 MB / 0.7233 GB, free: 134.6 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008016/1.101, allocations: 1.112 MB / 0.7244 GB, free: 133.6 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07641/1.177, allocations: 49.04 MB / 0.7723 GB, free: 83.01 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004346/1.182, allocations: 4.958 MB / 0.7771 GB, free: 78.01 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003515/1.185, allocations: 3.409 MB / 0.7805 GB, free: 74.6 MB / 474.8 MB Notification: Performance of SimCode: time 1.553e-06/1.185, allocations: 384 / 0.7805 GB, free: 74.6 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.3/11.49, allocations: 369.5 MB / 1.141 GB, free: 67.06 MB / 490.8 MB (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-07 Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase.fmu > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe 2>&1)