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.0009172/0.0009173, allocations: 92.34 kB / 16.65 MB, free: 6.59 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.0009338/0.0009338, allocations: 184.5 kB / 17.56 MB, free: 6.203 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.302/1.302, allocations: 223.3 MB / 241.6 MB, free: 14.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002535/0.0002535, allocations: 4 kB / 301.6 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09048/0.09075, allocations: 50.41 MB / 352 MB, free: 3.344 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.1916/0.2824, allocations: 28.65 MB / 380.6 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01537/0.2978, allocations: 8.496 MB / 389.1 MB, free: 7.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007064/0.3049, allocations: 170.7 kB / 389.3 MB, free: 7.898 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00563/0.3106, allocations: 1.571 MB / 390.9 MB, free: 7.176 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009159/0.3197, allocations: 2.699 MB / 393.6 MB, free: 5.488 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004053/0.3238, allocations: 1.386 MB / 394.9 MB, free: 4.566 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01142/0.3352, allocations: 8.979 MB / 403.9 MB, free: 15.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02155/0.3568, allocations: 12.04 MB / 416 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006541/0.3634, allocations: 3.062 MB / 419 MB, free: 2.719 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007027/0.3705, allocations: 3.789 MB / 422.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002087/0.3726, allocations: 476 kB / 423.3 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004293/0.3769, allocations: 0.8238 MB / 424.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002831/0.3797, allocations: 1.603 MB / 425.7 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00745/0.3872, allocations: 3.788 MB / 429.5 MB, free: 8.199 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01678/0.404, allocations: 14.85 MB / 444.3 MB, free: 9.297 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.4041, allocations: 4 kB / 444.3 MB, free: 9.293 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.4041, allocations: 0 / 444.3 MB, free: 9.293 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004467/0.4045, allocations: 0 / 444.3 MB, free: 9.293 MB / 350.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.0235/0.428, allocations: 8.174 MB / 452.5 MB, free: 1.027 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.4281, allocations: 8.031 kB / 452.5 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003938/0.432, allocations: 1.156 MB / 453.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02832/0.4604, allocations: 5.29 MB / 459 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01102/0.4715, allocations: 4.96 MB / 463.9 MB, free: 5.504 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000577/0.4721, allocations: 0.5378 MB / 464.5 MB, free: 4.965 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002633/0.4747, allocations: 0.7068 MB / 465.2 MB, free: 4.258 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02856/0.5033, allocations: 11.32 MB / 476.5 MB, free: 8.855 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000401/0.5037, allocations: 27.83 kB / 476.5 MB, free: 8.828 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002264/0.506, allocations: 300 kB / 476.8 MB, free: 8.535 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005399/0.5066, allocations: 443 kB / 477.3 MB, free: 8.102 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02604/0.5326, allocations: 10.83 MB / 488.1 MB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06409/0.5968, allocations: 38.12 MB / 0.5139 GB, free: 6.016 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1801/0.7769, allocations: 28.08 MB / 0.5413 GB, free: 95.49 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004754/0.7817, allocations: 2.646 MB / 0.5439 GB, free: 95.45 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01226/0.794, allocations: 7.942 MB / 0.5516 GB, free: 92.27 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.652e-05/0.7941, allocations: 56.84 kB / 0.5517 GB, free: 92.21 MB / 430.1 MB Notification: Performance of pre-optimization done (n=217): time 3.747e-06/0.7941, allocations: 1 kB / 0.5517 GB, free: 92.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=233): time 0.01994/0.814, allocations: 10.38 MB / 0.5618 GB, free: 87.69 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001544/0.8156, allocations: 1.908 MB / 0.5637 GB, free: 85.97 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004996/0.8206, allocations: 3.829 MB / 0.5674 GB, free: 84.53 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002662/0.8209, allocations: 61.58 kB / 0.5675 GB, free: 84.47 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001823/0.8227, allocations: 3.556 MB / 0.571 GB, free: 81.77 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006291/0.8234, allocations: 0.825 MB / 0.5718 GB, free: 81.14 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004151/0.8238, allocations: 386.6 kB / 0.5721 GB, free: 80.96 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.383e-05/0.8239, allocations: 305.1 kB / 0.5724 GB, free: 80.67 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00218/0.826, allocations: 1.893 MB / 0.5743 GB, free: 79.95 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003014/0.8291, allocations: 4.388 MB / 0.5785 GB, free: 75.84 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005455/0.8345, allocations: 6.793 MB / 0.5852 GB, free: 70.37 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.104e-05/0.8346, allocations: 23.31 kB / 0.5852 GB, free: 70.37 MB / 430.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.008998/0.8436, allocations: 6.983 MB / 0.592 GB, free: 67.49 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.093e-05/0.8436, allocations: 43.97 kB / 0.5921 GB, free: 67.49 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-05/0.8437, allocations: 84.84 kB / 0.5921 GB, free: 67.49 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001675/0.8454, allocations: 0.7484 MB / 0.5929 GB, free: 66.97 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002872/0.8483, allocations: 1.111 MB / 0.594 GB, free: 66 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005286/0.8536, allocations: 5.243 MB / 0.5991 GB, free: 60.69 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00332/0.8569, allocations: 311.1 kB / 0.5994 GB, free: 60.38 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002676/0.8572, allocations: 272 kB / 0.5996 GB, free: 60.12 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.003687/0.8609, allocations: 2.526 MB / 0.6021 GB, free: 57.58 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000579/0.8615, allocations: 383.9 kB / 0.6025 GB, free: 57.2 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00591/0.8674, allocations: 4.281 MB / 0.6067 GB, free: 52.91 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/0.8674, allocations: 24 kB / 0.6067 GB, free: 52.88 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.8674, allocations: 4 kB / 0.6067 GB, free: 52.88 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.941e-05/0.8675, allocations: 19.89 kB / 0.6067 GB, free: 52.86 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01613/0.8836, allocations: 14.29 MB / 0.6207 GB, free: 38.39 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.285e-05/0.8836, allocations: 12 kB / 0.6207 GB, free: 38.38 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001565/0.8852, allocations: 471.2 kB / 0.6211 GB, free: 37.91 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001641/0.8868, allocations: 0.6978 MB / 0.6218 GB, free: 37.21 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001287/0.887, allocations: 67.98 kB / 0.6219 GB, free: 37.14 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00655/0.8935, allocations: 6.96 MB / 0.6287 GB, free: 29.92 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001216/0.8948, allocations: 1.876 MB / 0.6305 GB, free: 27.89 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00796/0.9027, allocations: 6.738 MB / 0.6371 GB, free: 20.88 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001461/0.9042, allocations: 0.7967 MB / 0.6378 GB, free: 20.06 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004066/0.9046, allocations: 63.98 kB / 0.6379 GB, free: 20 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001609/0.9062, allocations: 159.8 kB / 0.6381 GB, free: 19.84 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003563/0.9066, allocations: 225.5 kB / 0.6383 GB, free: 19.62 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001386/0.9068, allocations: 87.98 kB / 0.6384 GB, free: 19.53 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003014/0.9098, allocations: 2.513 MB / 0.6408 GB, free: 17.04 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.9098, allocations: 0 / 0.6408 GB, free: 17.04 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003879/0.9137, allocations: 1.296 MB / 0.6421 GB, free: 15.75 MB / 430.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.007692/0.9214, allocations: 7.428 MB / 0.6493 GB, free: 8.035 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006347/0.9277, allocations: 5.129 MB / 0.6543 GB, free: 2.855 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/0.9278, allocations: 4.625 kB / 0.6543 GB, free: 2.852 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002803/0.9306, allocations: 2.396 MB / 0.6567 GB, free: 424 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009136/0.9397, allocations: 0.935 MB / 0.6576 GB, free: 15.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2866/1.226, allocations: 58.33 MB / 0.7146 GB, free: 130.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0041/1.23, allocations: 4.497 MB / 0.719 GB, free: 128.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003935/1.234, allocations: 1.36 MB / 0.7203 GB, free: 128.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002823/1.237, allocations: 2.543 MB / 0.7228 GB, free: 126.5 MB / 462.1 MB Notification: Performance of SimCode: time 9.92e-07/1.237, allocations: 0 / 0.7228 GB, free: 126.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7718/2.009, allocations: 102.8 MB / 0.8231 GB, free: 29.68 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001947/2.009, allocations: 315.7 kB / 0.8234 GB, free: 29.29 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.709/6.718, allocations: 0 / 0.8234 GB, free: 29.29 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)