Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001198/0.001198, allocations: 176.4 kB / 16.72 MB, free: 4.957 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.158/1.158, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000685/0.0006849, allocations: 74.38 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002893/0.0002894, allocations: 12 kB / 327.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1748/0.1751, allocations: 47.57 MB / 375.2 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase): time 0.01766/0.1928, allocations: 25.94 MB / 401.1 MB, free: 22.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0116/0.2044, allocations: 7.649 MB / 408.8 MB, free: 15.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003865/0.2083, allocations: 167.3 kB / 408.9 MB, free: 14.85 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003808/0.2121, allocations: 1.386 MB / 410.3 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006171/0.2183, allocations: 2.185 MB / 412.5 MB, free: 11.26 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003341/0.2217, allocations: 1.171 MB / 413.7 MB, free: 10.1 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.009128/0.2308, allocations: 10.14 MB / 423.8 MB, free: 15.93 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008748/0.2396, allocations: 7.946 MB / 431.8 MB, free: 7.871 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004192/0.2438, allocations: 3.233 MB / 435 MB, free: 4.625 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00489/0.2487, allocations: 4.221 MB / 439.2 MB, free: 396 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001002/0.2497, allocations: 0.5391 MB / 439.8 MB, free: 15.84 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002058/0.2518, allocations: 0.89 MB / 440.7 MB, free: 14.96 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00157/0.2534, allocations: 2.012 MB / 442.7 MB, free: 12.93 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004808/0.2582, allocations: 4.403 MB / 447.1 MB, free: 8.504 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01251/0.2707, allocations: 14.35 MB / 461.4 MB, free: 10.11 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.2708, allocations: 0 / 461.4 MB, free: 10.11 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2708, allocations: 0 / 461.4 MB, free: 10.11 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003873/0.2712, allocations: 4 kB / 461.4 MB, free: 10.11 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.02181/0.293, allocations: 9.213 MB / 470.6 MB, free: 0.793 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.293, allocations: 8.031 kB / 470.6 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00276/0.2958, allocations: 1.173 MB / 471.8 MB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01012/0.3059, allocations: 2.089 MB / 473.9 MB, free: 13.5 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01035/0.3163, allocations: 5.509 MB / 479.4 MB, free: 7.922 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005595/0.3169, allocations: 0.6502 MB / 480.1 MB, free: 7.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00191/0.3188, allocations: 0.8436 MB / 480.9 MB, free: 6.426 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02128/0.3401, allocations: 11.4 MB / 492.3 MB, free: 10.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001574/0.3403, allocations: 7.906 kB / 492.3 MB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007533/0.3411, allocations: 356 kB / 492.7 MB, free: 10.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003102/0.3414, allocations: 377.5 kB / 493 MB, free: 10.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01638/0.3578, allocations: 9.665 MB / 0.4909 GB, free: 0.5352 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2958/0.6536, allocations: 36.07 MB / 0.5261 GB, free: 70.91 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01045/0.6641, allocations: 16.96 MB / 0.5427 GB, free: 54.61 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004388/0.6685, allocations: 3.545 MB / 0.5462 GB, free: 51.06 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01237/0.6809, allocations: 9.825 MB / 0.5558 GB, free: 41.02 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.993e-05/0.681, allocations: 64.97 kB / 0.5558 GB, free: 40.95 MB / 378.8 MB Notification: Performance of pre-optimization done (n=308): time 4.759e-06/0.681, allocations: 4 kB / 0.5558 GB, free: 40.94 MB / 378.8 MB Notification: Performance of matching and sorting (n=360): time 0.02693/0.7079, allocations: 15.75 MB / 0.5712 GB, free: 24.99 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.659e-05/0.708, allocations: 94.16 kB / 0.5713 GB, free: 24.88 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005021/0.713, allocations: 4.48 MB / 0.5757 GB, free: 20.4 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000218/0.7132, allocations: 85.7 kB / 0.5758 GB, free: 20.31 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001514/0.7148, allocations: 3.886 MB / 0.5795 GB, free: 16.39 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005987/0.7154, allocations: 1.226 MB / 0.5807 GB, free: 15.18 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002026/0.7156, allocations: 92 kB / 0.5808 GB, free: 15.09 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.7157, allocations: 488 kB / 0.5813 GB, free: 14.61 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002624/0.7184, allocations: 1.934 MB / 0.5832 GB, free: 12.66 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003001/0.7214, allocations: 3.402 MB / 0.5865 GB, free: 8.594 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005849/0.7272, allocations: 5.699 MB / 0.5921 GB, free: 2.223 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.808e-05/0.7273, allocations: 12 kB / 0.5921 GB, free: 2.211 MB / 378.8 MB Notification: Performance of matching and sorting (n=587) (initialization): time 0.009925/0.7372, allocations: 6.604 MB / 0.5985 GB, free: 11.54 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.916e-05/0.7373, allocations: 24 kB / 0.5986 GB, free: 11.51 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.597e-05/0.7373, allocations: 51.94 kB / 0.5986 GB, free: 11.46 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001879/0.7392, allocations: 0.7507 MB / 0.5993 GB, free: 10.69 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003705/0.7429, allocations: 1.08 MB / 0.6004 GB, free: 9.609 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01025/0.7532, allocations: 10.17 MB / 0.6103 GB, free: 14.93 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003578/0.7568, allocations: 247.7 kB / 0.6106 GB, free: 14.68 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003271/0.7571, allocations: 208 kB / 0.6108 GB, free: 14.48 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 210 * 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 (534): * Single equations (assignments): 526 * 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%) 5,(2,100.0%) 13,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003954/0.7611, allocations: 2.538 MB / 0.6132 GB, free: 11.93 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006821/0.7618, allocations: 498 kB / 0.6137 GB, free: 11.44 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008841/0.7706, allocations: 5.509 MB / 0.6191 GB, free: 5.836 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.74e-05/0.7707, allocations: 39.94 kB / 0.6191 GB, free: 5.797 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.549e-05/0.7707, allocations: 12.12 kB / 0.6191 GB, free: 5.785 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-05/0.7707, allocations: 19.88 kB / 0.6192 GB, free: 5.766 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01891/0.7897, allocations: 13.03 MB / 0.6319 GB, free: 8.562 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.451e-05/0.7897, allocations: 4 kB / 0.6319 GB, free: 8.559 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002519/0.7922, allocations: 0.6321 MB / 0.6325 GB, free: 7.926 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002121/0.7944, allocations: 0.924 MB / 0.6334 GB, free: 6.988 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002143/0.7946, allocations: 83.97 kB / 0.6335 GB, free: 6.906 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01436/0.809, allocations: 14.1 MB / 0.6473 GB, free: 8.148 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/0.809, allocations: 8 kB / 0.6473 GB, free: 8.141 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1573/0.9663, allocations: 8.113 MB / 0.6552 GB, free: 144.3 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002649/0.969, allocations: 0.9897 MB / 0.6562 GB, free: 144.2 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009096/0.9699, allocations: 78.72 kB / 0.6562 GB, free: 144.2 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002624/0.9726, allocations: 211.4 kB / 0.6564 GB, free: 144.2 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006758/0.9732, allocations: 275.9 kB / 0.6567 GB, free: 144.2 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002095/0.9735, allocations: 107.6 kB / 0.6568 GB, free: 144.2 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.004143/0.9776, allocations: 3.032 MB / 0.6598 GB, free: 144 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9776, allocations: 0 / 0.6598 GB, free: 144 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.004977/0.9826, allocations: 1.473 MB / 0.6612 GB, free: 144 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.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 (284): * Single equations (assignments): 277 * 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%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01238/0.995, allocations: 8.825 MB / 0.6698 GB, free: 140.4 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.00836/1.003, allocations: 5.689 MB / 0.6754 GB, free: 137.9 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.179e-05/1.003, allocations: 11.03 kB / 0.6754 GB, free: 137.9 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004511/1.008, allocations: 3.444 MB / 0.6787 GB, free: 136.2 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007746/1.016, allocations: 1.094 MB / 0.6798 GB, free: 135.9 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07909/1.095, allocations: 48.22 MB / 0.7269 GB, free: 89.46 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003566/1.098, allocations: 4.952 MB / 0.7317 GB, free: 84.48 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003384/1.102, allocations: 3.405 MB / 0.7351 GB, free: 81.07 MB / 442.8 MB Notification: Performance of SimCode: time 6.11e-07/1.102, allocations: 0 / 0.7351 GB, free: 81.07 MB / 442.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.04/12.14, allocations: 367.8 MB / 1.094 GB, free: 59.8 MB / 458.8 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_MultiPhase.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe 2>&1)