Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_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_4_0_0_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.00125/0.00125, allocations: 106.4 kB / 16.92 MB, free: 5.777 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.001187/0.001187, allocations: 191.3 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 46.16 kB / 300.7 MB, free: 5.742 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08959/0.091, allocations: 49.45 MB / 350.2 MB, free: 4.285 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.2147/0.3057, allocations: 30.34 MB / 380.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02174/0.3275, allocations: 8.646 MB / 389.2 MB, free: 6.418 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007894/0.3355, allocations: 183.9 kB / 389.4 MB, free: 6.387 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01207/0.3476, allocations: 4.908 MB / 394.3 MB, free: 3.512 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01107/0.3587, allocations: 2.972 MB / 397.2 MB, free: 1.621 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00491/0.3636, allocations: 1.593 MB / 398.8 MB, free: 360 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01258/0.3762, allocations: 8.658 MB / 407.5 MB, free: 11.2 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01721/0.3934, allocations: 12.89 MB / 420.4 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008044/0.4015, allocations: 4.207 MB / 424.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00843/0.41, allocations: 4.753 MB / 429.3 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003576/0.4136, allocations: 1.164 MB / 430.5 MB, free: 5.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007832/0.4214, allocations: 1.539 MB / 432 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00372/0.4252, allocations: 2.415 MB / 434.5 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009035/0.4342, allocations: 4.676 MB / 439.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0187/0.453, allocations: 15.71 MB / 454.8 MB, free: 13.18 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.586e-06/0.453, allocations: 0 / 454.8 MB, free: 13.18 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.453, allocations: 0 / 454.8 MB, free: 13.18 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000536/0.4536, allocations: 0 / 454.8 MB, free: 13.18 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.03054/0.4841, allocations: 9.775 MB / 464.6 MB, free: 3.309 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.4842, allocations: 8.031 kB / 464.6 MB, free: 3.301 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003438/0.4876, allocations: 1.149 MB / 465.8 MB, free: 2.141 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02983/0.5175, allocations: 5.251 MB / 471 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01416/0.5317, allocations: 4.987 MB / 476 MB, free: 7.805 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000721/0.5324, allocations: 0.5339 MB / 476.5 MB, free: 7.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003822/0.5363, allocations: 0.7108 MB / 477.2 MB, free: 6.559 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02945/0.5658, allocations: 11.32 MB / 488.6 MB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004502/0.5663, allocations: 23.75 kB / 488.6 MB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002917/0.5692, allocations: 296 kB / 488.9 MB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006042/0.5698, allocations: 451 kB / 489.3 MB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02556/0.5954, allocations: 10.83 MB / 0.4884 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3197/0.9151, allocations: 37.99 MB / 0.5255 GB, free: 108.5 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0201/0.9352, allocations: 28.11 MB / 0.553 GB, free: 83.04 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005647/0.941, allocations: 2.646 MB / 0.5556 GB, free: 83 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0156/0.9566, allocations: 7.929 MB / 0.5633 GB, free: 80.92 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.473e-05/0.9567, allocations: 64.34 kB / 0.5634 GB, free: 80.86 MB / 430.1 MB Notification: Performance of pre-optimization done (n=217): time 5.159e-06/0.9567, allocations: 0 / 0.5634 GB, free: 80.86 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.02063/0.9773, allocations: 10.36 MB / 0.5735 GB, free: 76.16 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00183/0.9792, allocations: 2.001 MB / 0.5754 GB, free: 74.33 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00623/0.9855, allocations: 3.822 MB / 0.5792 GB, free: 72.9 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006254/0.9861, allocations: 64.7 kB / 0.5792 GB, free: 72.84 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002795/0.9889, allocations: 3.558 MB / 0.5827 GB, free: 70.13 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001013/0.99, allocations: 0.8288 MB / 0.5835 GB, free: 69.5 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00146/0.9914, allocations: 0.9557 MB / 0.5844 GB, free: 69.02 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.928e-05/0.9915, allocations: 308.8 kB / 0.5847 GB, free: 68.71 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002545/0.994, allocations: 1.885 MB / 0.5866 GB, free: 67.79 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004319/0.9984, allocations: 4.396 MB / 0.5909 GB, free: 63.3 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007215/1.006, allocations: 6.787 MB / 0.5975 GB, free: 57.39 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.432e-05/1.006, allocations: 33.22 kB / 0.5975 GB, free: 57.39 MB / 430.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01096/1.017, allocations: 6.981 MB / 0.6044 GB, free: 52.83 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.586e-05/1.017, allocations: 46.66 kB / 0.6044 GB, free: 52.79 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001052/1.017, allocations: 88.12 kB / 0.6045 GB, free: 52.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001897/1.019, allocations: 0.7439 MB / 0.6052 GB, free: 51.95 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003189/1.022, allocations: 1.123 MB / 0.6063 GB, free: 50.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006045/1.028, allocations: 5.645 MB / 0.6118 GB, free: 45.04 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004997/1.033, allocations: 311 kB / 0.6121 GB, free: 44.74 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005524/1.034, allocations: 276 kB / 0.6124 GB, free: 44.47 MB / 430.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.004545/1.038, allocations: 2.518 MB / 0.6148 GB, free: 41.94 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009687/1.039, allocations: 379.3 kB / 0.6152 GB, free: 41.56 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006547/1.046, allocations: 4.273 MB / 0.6194 GB, free: 37.27 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.689e-05/1.046, allocations: 31.94 kB / 0.6194 GB, free: 37.24 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/1.046, allocations: 4 kB / 0.6194 GB, free: 37.23 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.091e-05/1.046, allocations: 11.95 kB / 0.6194 GB, free: 37.22 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02394/1.07, allocations: 14.29 MB / 0.6334 GB, free: 22.74 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.714e-05/1.07, allocations: 16.03 kB / 0.6334 GB, free: 22.72 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001843/1.072, allocations: 475.2 kB / 0.6338 GB, free: 22.26 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001965/1.074, allocations: 0.697 MB / 0.6345 GB, free: 21.55 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002738/1.074, allocations: 67.98 kB / 0.6346 GB, free: 21.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007509/1.081, allocations: 7.5 MB / 0.6419 GB, free: 13.7 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001371/1.083, allocations: 1.953 MB / 0.6438 GB, free: 11.6 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00891/1.092, allocations: 6.737 MB / 0.6504 GB, free: 4.582 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002424/1.094, allocations: 0.789 MB / 0.6512 GB, free: 3.77 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008731/1.095, allocations: 63.98 kB / 0.6512 GB, free: 3.707 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001923/1.097, allocations: 167.9 kB / 0.6514 GB, free: 3.543 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004582/1.098, allocations: 213.5 kB / 0.6516 GB, free: 3.336 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001608/1.098, allocations: 99.72 kB / 0.6517 GB, free: 3.242 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004057/1.102, allocations: 2.509 MB / 0.6541 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.102, allocations: 0 / 0.6541 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.007123/1.109, allocations: 1.288 MB / 0.6554 GB, free: 15.46 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.01241/1.121, allocations: 7.436 MB / 0.6627 GB, free: 7.742 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01421/1.136, allocations: 6.999 MB / 0.6695 GB, free: 0.7227 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.117e-05/1.136, allocations: 4.25 kB / 0.6695 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004003/1.14, allocations: 2.414 MB / 0.6719 GB, free: 14.27 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005509/1.145, allocations: 0.9754 MB / 0.6728 GB, free: 13.32 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2809/1.426, allocations: 55.43 MB / 0.7269 GB, free: 118.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004672/1.431, allocations: 4.501 MB / 0.7313 GB, free: 116.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004041/1.435, allocations: 1.358 MB / 0.7327 GB, free: 116.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002926/1.438, allocations: 2.54 MB / 0.7351 GB, free: 114.4 MB / 462.1 MB Notification: Performance of SimCode: time 9.31e-07/1.438, allocations: 0 / 0.7351 GB, free: 114.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.528/1.966, allocations: 106.3 MB / 0.839 GB, free: 10.73 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.72/21.69, allocations: 7.781 kB / 0.839 GB, free: 10.73 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1)