Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 110.5 kB / 17.73 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 187 kB / 18.66 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.432/1.432, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001783/0.001783, allocations: 51.92 kB / 328.1 MB, free: 3.77 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1051, allocations: 46.61 MB / 374.7 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.2311/0.3363, allocations: 30.24 MB / 404.9 MB, free: 9.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02229/0.3586, allocations: 8.644 MB / 413.5 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007531/0.3662, allocations: 164.9 kB / 413.7 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01344/0.3797, allocations: 4.906 MB / 418.6 MB, free: 148 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0119/0.3916, allocations: 2.948 MB / 421.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006046/0.3977, allocations: 1.622 MB / 423.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01553/0.4132, allocations: 8.7 MB / 431.9 MB, free: 6.727 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02132/0.4346, allocations: 12.84 MB / 444.7 MB, free: 9.789 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007563/0.4422, allocations: 4.207 MB / 448.9 MB, free: 5.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008252/0.4505, allocations: 4.734 MB / 453.7 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002906/0.4534, allocations: 1.164 MB / 454.8 MB, free: 15.65 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004631/0.4581, allocations: 1.527 MB / 456.4 MB, free: 14.13 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002794/0.4609, allocations: 2.408 MB / 458.8 MB, free: 11.71 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007884/0.4688, allocations: 4.669 MB / 463.4 MB, free: 7.027 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02025/0.4891, allocations: 15.77 MB / 479.2 MB, free: 7.211 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.4891, allocations: 0 / 479.2 MB, free: 7.211 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4891, allocations: 0 / 479.2 MB, free: 7.211 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004111/0.4895, allocations: 0 / 479.2 MB, free: 7.211 MB / 398.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.03126/0.5208, allocations: 9.94 MB / 489.1 MB, free: 13.16 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.5209, allocations: 8.031 kB / 489.1 MB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003836/0.5247, allocations: 1.145 MB / 490.3 MB, free: 12 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03369/0.5584, allocations: 5.313 MB / 495.6 MB, free: 6.676 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01107/0.5696, allocations: 4.713 MB / 0.4886 GB, free: 1.883 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007113/0.5703, allocations: 0.5299 MB / 0.4891 GB, free: 1.352 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002842/0.5732, allocations: 0.7108 MB / 0.4898 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03014/0.6033, allocations: 11.32 MB / 0.5009 GB, free: 5.238 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004578/0.6038, allocations: 23.84 kB / 0.5009 GB, free: 5.215 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002724/0.6066, allocations: 296 kB / 0.5012 GB, free: 4.926 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006187/0.6072, allocations: 447 kB / 0.5016 GB, free: 4.488 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0317/0.6389, allocations: 10.83 MB / 0.5122 GB, free: 9.648 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07008/0.709, allocations: 37.67 MB / 0.549 GB, free: 2.855 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2187/0.9278, allocations: 28.09 MB / 0.5764 GB, free: 115.2 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00697/0.9348, allocations: 2.669 MB / 0.579 GB, free: 115 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02265/0.9575, allocations: 7.924 MB / 0.5867 GB, free: 111.4 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.742e-05/0.9577, allocations: 57.59 kB / 0.5868 GB, free: 111.3 MB / 478.1 MB Notification: Performance of pre-optimization done (n=217): time 5.47e-06/0.9577, allocations: 0 / 0.5868 GB, free: 111.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=233): time 0.02074/0.9784, allocations: 10.47 MB / 0.597 GB, free: 107.1 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001769/0.9802, allocations: 2.017 MB / 0.599 GB, free: 105.2 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00683/0.9871, allocations: 3.827 MB / 0.6027 GB, free: 103.8 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000515/0.9876, allocations: 62.83 kB / 0.6028 GB, free: 103.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00248/0.9901, allocations: 3.672 MB / 0.6064 GB, free: 101.3 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009671/0.9911, allocations: 0.8724 MB / 0.6072 GB, free: 100.7 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001372/0.9925, allocations: 0.9556 MB / 0.6081 GB, free: 100.2 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.504e-05/0.9926, allocations: 302.6 kB / 0.6084 GB, free: 99.88 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002424/0.995, allocations: 1.894 MB / 0.6103 GB, free: 99.16 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003177/0.9982, allocations: 4.392 MB / 0.6146 GB, free: 95.06 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006044/1.004, allocations: 6.792 MB / 0.6212 GB, free: 89.59 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.878e-05/1.004, allocations: 22.88 kB / 0.6212 GB, free: 89.59 MB / 478.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01228/1.017, allocations: 6.999 MB / 0.6281 GB, free: 85.46 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.367e-05/1.017, allocations: 44.03 kB / 0.6281 GB, free: 85.42 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001397/1.017, allocations: 88 kB / 0.6282 GB, free: 85.34 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001904/1.019, allocations: 0.7374 MB / 0.6289 GB, free: 84.76 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003705/1.023, allocations: 1.121 MB / 0.63 GB, free: 83.79 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006157/1.029, allocations: 5.642 MB / 0.6355 GB, free: 78 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004656/1.033, allocations: 311.4 kB / 0.6358 GB, free: 77.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008579/1.034, allocations: 276 kB / 0.6361 GB, free: 77.43 MB / 478.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.004878/1.039, allocations: 2.522 MB / 0.6385 GB, free: 74.89 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001208/1.04, allocations: 409.4 kB / 0.6389 GB, free: 74.49 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006754/1.047, allocations: 4.276 MB / 0.6431 GB, free: 70.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-05/1.047, allocations: 24 kB / 0.6431 GB, free: 70.18 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/1.047, allocations: 9.688 kB / 0.6431 GB, free: 70.17 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.405e-05/1.047, allocations: 15.95 kB / 0.6431 GB, free: 70.15 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02208/1.069, allocations: 14.28 MB / 0.6571 GB, free: 55.69 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.759e-05/1.069, allocations: 12 kB / 0.6571 GB, free: 55.68 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001788/1.071, allocations: 479.2 kB / 0.6576 GB, free: 55.21 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001933/1.073, allocations: 0.6899 MB / 0.6582 GB, free: 54.51 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003018/1.074, allocations: 67.98 kB / 0.6583 GB, free: 54.44 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007215/1.081, allocations: 7.514 MB / 0.6656 GB, free: 46.65 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001294/1.082, allocations: 1.948 MB / 0.6675 GB, free: 44.55 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008356/1.09, allocations: 6.762 MB / 0.6741 GB, free: 37.52 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002048/1.093, allocations: 0.8106 MB / 0.6749 GB, free: 36.68 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008943/1.093, allocations: 60 kB / 0.675 GB, free: 36.62 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002049/1.096, allocations: 167.9 kB / 0.6752 GB, free: 36.46 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003887/1.096, allocations: 225.4 kB / 0.6754 GB, free: 36.24 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001614/1.096, allocations: 83.98 kB / 0.6754 GB, free: 36.16 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003523/1.1, allocations: 2.513 MB / 0.6779 GB, free: 33.67 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.01e-07/1.1, allocations: 0 / 0.6779 GB, free: 33.67 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005197/1.105, allocations: 1.293 MB / 0.6792 GB, free: 32.38 MB / 478.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.009076/1.114, allocations: 7.453 MB / 0.6864 GB, free: 24.63 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007175/1.121, allocations: 5.161 MB / 0.6915 GB, free: 19.41 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.426e-05/1.121, allocations: 4.312 kB / 0.6915 GB, free: 19.41 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003165/1.124, allocations: 2.432 MB / 0.6939 GB, free: 16.95 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005078/1.13, allocations: 0.9817 MB / 0.6948 GB, free: 15.96 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2697/1.399, allocations: 46.23 MB / 0.74 GB, free: 165.6 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006986/1.406, allocations: 4.493 MB / 0.7444 GB, free: 164.8 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004812/1.411, allocations: 1.361 MB / 0.7457 GB, free: 164.7 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004169/1.415, allocations: 2.54 MB / 0.7482 GB, free: 164.2 MB / 0.4981 GB Notification: Performance of SimCode: time 1.943e-06/1.415, allocations: 2.344 kB / 0.7482 GB, free: 164.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1543/1.57, allocations: 103.9 MB / 0.8496 GB, free: 79.11 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.98/22.55, allocations: 8.766 kB / 0.8496 GB, free: 79.1 MB / 0.4981 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1)