Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00116/0.00116, allocations: 104.2 kB / 17.2 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001137/0.001137, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.289/1.289, allocations: 227.4 MB / 246.3 MB, free: 10.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 61.89 kB / 306.4 MB, free: 0.8906 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09757/0.0987, allocations: 50.53 MB / 356.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.1851/0.2839, allocations: 30.47 MB / 387.4 MB, free: 4.707 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01853/0.3025, allocations: 8.803 MB / 396.2 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007684/0.3102, allocations: 182.4 kB / 396.4 MB, free: 14.61 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01253/0.3228, allocations: 4.588 MB / 401 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01061/0.3334, allocations: 2.734 MB / 403.7 MB, free: 9.965 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005111/0.3386, allocations: 1.515 MB / 405.2 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01404/0.3526, allocations: 9.115 MB / 414.3 MB, free: 3.359 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01866/0.3713, allocations: 10.32 MB / 424.6 MB, free: 8.938 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005928/0.3773, allocations: 3.597 MB / 428.2 MB, free: 5.328 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0068/0.3841, allocations: 4.507 MB / 432.8 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002612/0.3868, allocations: 0.7305 MB / 433.5 MB, free: 76 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004729/0.3915, allocations: 1.117 MB / 434.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003434/0.395, allocations: 1.966 MB / 436.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009079/0.4041, allocations: 4.219 MB / 440.8 MB, free: 8.746 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02001/0.4241, allocations: 15.45 MB / 456.2 MB, free: 9.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.376e-06/0.4242, allocations: 0 / 456.2 MB, free: 9.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4242, allocations: 0 / 456.2 MB, free: 9.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.00056/0.4248, allocations: 0 / 456.2 MB, free: 9.25 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.03148/0.4563, allocations: 9.81 MB / 466 MB, free: 15.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.978e-05/0.4564, allocations: 8.031 kB / 466.1 MB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004357/0.4607, allocations: 1.16 MB / 467.2 MB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02869/0.4894, allocations: 5.247 MB / 472.5 MB, free: 8.898 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01055/0.5, allocations: 4.976 MB / 477.4 MB, free: 3.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006754/0.5008, allocations: 0.53 MB / 478 MB, free: 3.309 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003567/0.5043, allocations: 0.7069 MB / 478.7 MB, free: 2.602 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02908/0.5334, allocations: 11.33 MB / 490 MB, free: 7.195 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004696/0.534, allocations: 23.8 kB / 490 MB, free: 7.172 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002805/0.5368, allocations: 299.9 kB / 490.3 MB, free: 6.879 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004565/0.5373, allocations: 443 kB / 490.7 MB, free: 6.445 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02143/0.5587, allocations: 10.82 MB / 0.4898 GB, free: 11.61 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06442/0.6231, allocations: 38.89 MB / 0.5278 GB, free: 3.422 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2049/0.8281, allocations: 28.27 MB / 0.5554 GB, free: 106.9 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004564/0.8327, allocations: 2.672 MB / 0.558 GB, free: 106.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01315/0.8459, allocations: 8.453 MB / 0.5663 GB, free: 102.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.688e-05/0.846, allocations: 57.94 kB / 0.5663 GB, free: 102.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 4.529e-06/0.846, allocations: 0 / 0.5663 GB, free: 102.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.01825/0.8642, allocations: 10.36 MB / 0.5764 GB, free: 97.96 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001561/0.8659, allocations: 1.925 MB / 0.5783 GB, free: 96.23 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006283/0.8722, allocations: 3.835 MB / 0.5821 GB, free: 94.74 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004087/0.8726, allocations: 65.52 kB / 0.5821 GB, free: 94.68 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001535/0.8741, allocations: 3.557 MB / 0.5856 GB, free: 91.97 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006181/0.8748, allocations: 0.8334 MB / 0.5864 GB, free: 91.34 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001114/0.8759, allocations: 0.9536 MB / 0.5873 GB, free: 90.86 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.92e-05/0.8759, allocations: 305.1 kB / 0.5876 GB, free: 90.55 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00227/0.8782, allocations: 1.893 MB / 0.5895 GB, free: 89.84 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003086/0.8813, allocations: 4.392 MB / 0.5938 GB, free: 85.73 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00561/0.8869, allocations: 6.786 MB / 0.6004 GB, free: 80.27 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.036e-05/0.887, allocations: 24.56 kB / 0.6004 GB, free: 80.27 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.009281/0.8963, allocations: 6.985 MB / 0.6072 GB, free: 75.14 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001015/0.8964, allocations: 40.97 kB / 0.6073 GB, free: 75.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001567/0.8966, allocations: 88.55 kB / 0.6074 GB, free: 75.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001863/0.8985, allocations: 0.7446 MB / 0.6081 GB, free: 74.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003185/0.9017, allocations: 1.119 MB / 0.6092 GB, free: 73.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005932/0.9076, allocations: 5.227 MB / 0.6143 GB, free: 67.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00388/0.9115, allocations: 322.9 kB / 0.6146 GB, free: 67.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004926/0.912, allocations: 272 kB / 0.6149 GB, free: 67.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * 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 (590): * Single equations (assignments): 587 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003895/0.9159, allocations: 2.521 MB / 0.6173 GB, free: 64.67 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001016/0.917, allocations: 387.3 kB / 0.6177 GB, free: 64.29 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006911/0.9239, allocations: 4.286 MB / 0.6219 GB, free: 59.98 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.698e-05/0.9239, allocations: 31.92 kB / 0.6219 GB, free: 59.95 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.6e-05/0.9239, allocations: 8 kB / 0.6219 GB, free: 59.94 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.416e-05/0.924, allocations: 11.95 kB / 0.6219 GB, free: 59.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02228/0.9462, allocations: 14.31 MB / 0.6359 GB, free: 45.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.027e-05/0.9463, allocations: 12 kB / 0.6359 GB, free: 45.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001693/0.948, allocations: 483.2 kB / 0.6364 GB, free: 44.94 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001878/0.9499, allocations: 0.6939 MB / 0.6371 GB, free: 44.24 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002502/0.9502, allocations: 71.97 kB / 0.6371 GB, free: 44.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007051/0.9572, allocations: 6.934 MB / 0.6439 GB, free: 36.97 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001275/0.9585, allocations: 1.865 MB / 0.6457 GB, free: 34.96 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008654/0.9672, allocations: 6.744 MB / 0.6523 GB, free: 27.93 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001726/0.9689, allocations: 0.7963 MB / 0.6531 GB, free: 27.11 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000887/0.9699, allocations: 63.98 kB / 0.6531 GB, free: 27.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002148/0.972, allocations: 168 kB / 0.6533 GB, free: 26.89 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004495/0.9725, allocations: 217.4 kB / 0.6535 GB, free: 26.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001946/0.9727, allocations: 91.97 kB / 0.6536 GB, free: 26.59 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004166/0.9769, allocations: 2.526 MB / 0.6561 GB, free: 24.05 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.9e-07/0.9769, allocations: 4 kB / 0.6561 GB, free: 24.04 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005524/0.9824, allocations: 1.299 MB / 0.6573 GB, free: 22.75 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.x) * 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 (241): * Single equations (assignments): 238 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009411/0.9918, allocations: 7.436 MB / 0.6646 GB, free: 15.03 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0071/0.999, allocations: 5.135 MB / 0.6696 GB, free: 9.84 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/0.999, allocations: 0 / 0.6696 GB, free: 9.84 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003095/1.002, allocations: 2.401 MB / 0.672 GB, free: 7.398 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005837/1.008, allocations: 0.9485 MB / 0.6729 GB, free: 6.473 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2546/1.263, allocations: 58.27 MB / 0.7298 GB, free: 141.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005057/1.268, allocations: 4.504 MB / 0.7342 GB, free: 140.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00396/1.272, allocations: 1.403 MB / 0.7355 GB, free: 140.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002741/1.274, allocations: 2.547 MB / 0.738 GB, free: 137.9 MB / 478.1 MB Notification: Performance of SimCode: time 7.82e-07/1.274, allocations: 0 / 0.738 GB, free: 137.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1213/1.396, allocations: 104.3 MB / 0.8399 GB, free: 45.16 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001542/1.396, allocations: 304.1 kB / 0.8401 GB, free: 44.79 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.151/5.547, allocations: 3.281 kB / 0.8401 GB, free: 44.79 MB / 478.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1)