Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.SMEE_Generator,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009073/0.0009074, allocations: 190.9 kB / 17.37 MB, free: 4.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.177/1.177, allocations: 226.5 MB / 244.7 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000732/0.000732, allocations: 97.91 kB / 296.7 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001991/0.0001991, allocations: 8 kB / 356.9 MB, free: 10.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1705/0.1707, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.01386/0.1846, allocations: 21.87 MB / 430 MB, free: 5.738 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009/0.1937, allocations: 6.912 MB / 436.9 MB, free: 14.82 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001885/0.1956, allocations: 147.4 kB / 437.1 MB, free: 14.68 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002434/0.198, allocations: 1.184 MB / 438.3 MB, free: 13.48 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003769/0.2018, allocations: 1.881 MB / 440.1 MB, free: 11.59 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002104/0.2039, allocations: 1.001 MB / 441.1 MB, free: 10.6 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006718/0.2107, allocations: 7.347 MB / 448.5 MB, free: 3.223 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004822/0.2155, allocations: 4.59 MB / 453.1 MB, free: 14.55 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002655/0.2182, allocations: 2.288 MB / 455.4 MB, free: 12.25 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002916/0.2211, allocations: 3.019 MB / 458.4 MB, free: 9.219 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005604/0.2217, allocations: 364 kB / 458.7 MB, free: 8.863 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001573/0.2232, allocations: 0.8116 MB / 459.5 MB, free: 8.051 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001186/0.2244, allocations: 1.495 MB / 461 MB, free: 6.551 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002647/0.2271, allocations: 2.995 MB / 464 MB, free: 3.535 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007152/0.2343, allocations: 9.334 MB / 473.4 MB, free: 10.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2343, allocations: 0 / 473.4 MB, free: 10.18 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2343, allocations: 0 / 473.4 MB, free: 10.18 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001389/0.2344, allocations: 0 / 473.4 MB, free: 10.18 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.01223/0.2467, allocations: 6.273 MB / 479.6 MB, free: 3.82 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.2467, allocations: 8.031 kB / 479.7 MB, free: 3.812 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009765/0.2477, allocations: 0.774 MB / 480.4 MB, free: 3.027 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005081/0.2528, allocations: 1.266 MB / 481.7 MB, free: 1.754 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005711/0.2585, allocations: 3.846 MB / 485.5 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003085/0.2588, allocations: 447.7 kB / 486 MB, free: 13.4 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007134/0.2595, allocations: 0.5623 MB / 486.5 MB, free: 12.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01168/0.2712, allocations: 7.272 MB / 493.8 MB, free: 5.508 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001195/0.2714, allocations: 7.906 kB / 493.8 MB, free: 5.5 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004841/0.2719, allocations: 239.9 kB / 494 MB, free: 5.266 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002406/0.2721, allocations: 263.3 kB / 494.3 MB, free: 5.008 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01111/0.2832, allocations: 6.15 MB / 0.4887 GB, free: 14.85 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1902/0.4734, allocations: 24.03 MB / 0.5122 GB, free: 72.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006212/0.4797, allocations: 9.01 MB / 0.521 GB, free: 66.14 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003531/0.4833, allocations: 2.51 MB / 0.5234 GB, free: 65.29 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01009/0.4934, allocations: 7.656 MB / 0.5309 GB, free: 60.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.739e-05/0.4934, allocations: 60.28 kB / 0.531 GB, free: 60.42 MB / 378.7 MB Notification: Performance of pre-optimization done (n=238): time 4.037e-06/0.4934, allocations: 0 / 0.531 GB, free: 60.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=282): time 0.02876/0.5222, allocations: 14.63 MB / 0.5453 GB, free: 51.58 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.23e-05/0.5223, allocations: 81.59 kB / 0.5453 GB, free: 51.49 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003981/0.5263, allocations: 3.476 MB / 0.5487 GB, free: 48.03 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002428/0.5265, allocations: 69.7 kB / 0.5488 GB, free: 47.95 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001126/0.5277, allocations: 2.689 MB / 0.5514 GB, free: 45.24 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004919/0.5282, allocations: 0.9647 MB / 0.5524 GB, free: 44.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001718/0.5283, allocations: 76 kB / 0.5524 GB, free: 44.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.5285, allocations: 449.8 kB / 0.5529 GB, free: 43.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002156/0.5306, allocations: 1.581 MB / 0.5544 GB, free: 42.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002461/0.5331, allocations: 2.782 MB / 0.5571 GB, free: 38.87 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004952/0.5381, allocations: 4.672 MB / 0.5617 GB, free: 33.63 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.467e-05/0.5381, allocations: 8 kB / 0.5617 GB, free: 33.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.007428/0.5455, allocations: 5.565 MB / 0.5671 GB, free: 27.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.743e-05/0.5456, allocations: 20 kB / 0.5672 GB, free: 27.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.19e-05/0.5456, allocations: 40 kB / 0.5672 GB, free: 27.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001406/0.547, allocations: 0.704 MB / 0.5679 GB, free: 27.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00268/0.5497, allocations: 0.8736 MB / 0.5687 GB, free: 26.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007392/0.5571, allocations: 9.75 MB / 0.5783 GB, free: 16.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002889/0.56, allocations: 235.6 kB / 0.5785 GB, free: 15.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002273/0.5603, allocations: 174.8 kB / 0.5787 GB, free: 15.64 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 174 * 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 (426): * Single equations (assignments): 416 * Array equations: 4 * 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 {(3,100.0%) 12,(1,100.0%) 6,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002673/0.5629, allocations: 1.617 MB / 0.5802 GB, free: 14.01 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005724/0.5635, allocations: 391.2 kB / 0.5806 GB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006586/0.5701, allocations: 4.631 MB / 0.5851 GB, free: 8.871 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-05/0.5702, allocations: 28 kB / 0.5852 GB, free: 8.844 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/0.5702, allocations: 11.94 kB / 0.5852 GB, free: 8.832 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.112e-05/0.5702, allocations: 19.94 kB / 0.5852 GB, free: 8.812 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01346/0.5837, allocations: 10.1 MB / 0.595 GB, free: 14.51 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.33e-05/0.5837, allocations: 8 kB / 0.5951 GB, free: 14.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002331/0.5861, allocations: 0.5077 MB / 0.5956 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00201/0.5881, allocations: 0.7686 MB / 0.5963 GB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001958/0.5883, allocations: 75.8 kB / 0.5964 GB, free: 13.14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01326/0.6016, allocations: 13.2 MB / 0.6093 GB, free: 15.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.085e-06/0.6016, allocations: 11.94 kB / 0.6093 GB, free: 15.15 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01154/0.6131, allocations: 6.751 MB / 0.6159 GB, free: 8.145 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002003/0.6152, allocations: 0.789 MB / 0.6166 GB, free: 7.332 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008391/0.616, allocations: 63.89 kB / 0.6167 GB, free: 7.273 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002207/0.6183, allocations: 187.8 kB / 0.6169 GB, free: 7.09 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005618/0.6188, allocations: 209.7 kB / 0.6171 GB, free: 6.883 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002403/0.6191, allocations: 91.91 kB / 0.6172 GB, free: 6.793 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003988/0.6231, allocations: 2.334 MB / 0.6194 GB, free: 4.477 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.6231, allocations: 0 / 0.6194 GB, free: 4.477 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004136/0.6272, allocations: 1.122 MB / 0.6205 GB, free: 3.359 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * 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,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * 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 (235): * Single equations (assignments): 225 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(3,100.0%) 12,(1,100.0%) 6,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01165/0.6389, allocations: 7.514 MB / 0.6279 GB, free: 11.59 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007944/0.6469, allocations: 4.778 MB / 0.6325 GB, free: 6.699 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.184e-06/0.6469, allocations: 4 kB / 0.6325 GB, free: 6.695 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004717/0.6516, allocations: 2.904 MB / 0.6354 GB, free: 3.715 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006545/0.6582, allocations: 0.8654 MB / 0.6362 GB, free: 2.859 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2084/0.8666, allocations: 34.94 MB / 0.6704 GB, free: 148.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002745/0.8694, allocations: 3.427 MB / 0.6737 GB, free: 147.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002617/0.8721, allocations: 2.287 MB / 0.6759 GB, free: 147.2 MB / 458.7 MB Notification: Performance of SimCode: time 8.31e-07/0.8721, allocations: 0 / 0.6759 GB, free: 147.2 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.502/10.37, allocations: 257 MB / 0.9269 GB, free: 88.2 MB / 474.7 MB (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1)