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.0009071/0.0009072, allocations: 98 kB / 17.3 MB, free: 6.074 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.0009637/0.0009637, allocations: 180.2 kB / 18.21 MB, free: 5.395 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.259/1.259, allocations: 205.4 MB / 224.4 MB, free: 13.09 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.0004441/0.0004441, allocations: 16 kB / 281.5 MB, free: 3.285 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07785/0.0783, allocations: 47.58 MB / 329.1 MB, free: 3.633 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.02857/0.1069, allocations: 28.57 MB / 357.7 MB, free: 6.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01625/0.1232, allocations: 8.488 MB / 366.1 MB, free: 14.42 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00451/0.1278, allocations: 155.5 kB / 366.3 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004382/0.1322, allocations: 1.555 MB / 367.9 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007585/0.1398, allocations: 2.679 MB / 370.5 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003406/0.1432, allocations: 1.396 MB / 371.9 MB, free: 8.617 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1535/0.2968, allocations: 8.955 MB / 380.9 MB, free: 12.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02669/0.3235, allocations: 12.02 MB / 392.9 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006248/0.3298, allocations: 3.059 MB / 396 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00787/0.3377, allocations: 3.791 MB / 399.8 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002563/0.3403, allocations: 477.1 kB / 400.2 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00427/0.3446, allocations: 0.8357 MB / 401.1 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002435/0.347, allocations: 1.596 MB / 402.7 MB, free: 9.445 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006209/0.3533, allocations: 3.787 MB / 406.4 MB, free: 7.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01173/0.365, allocations: 14.78 MB / 421.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3651, allocations: 4 kB / 421.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.3651, allocations: 3.938 kB / 421.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003248/0.3654, allocations: 0 / 421.2 MB, free: 14.84 MB / 334.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.0212/0.3866, allocations: 8.188 MB / 429.4 MB, free: 7.336 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.3867, allocations: 8.031 kB / 429.4 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00309/0.3898, allocations: 1.15 MB / 430.6 MB, free: 6.176 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02831/0.4181, allocations: 5.276 MB / 435.8 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01063/0.4288, allocations: 4.662 MB / 440.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005365/0.4293, allocations: 0.5352 MB / 441 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002355/0.4317, allocations: 0.7119 MB / 441.8 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02397/0.4557, allocations: 11.32 MB / 453.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000188/0.4559, allocations: 19.38 kB / 453.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009235/0.4569, allocations: 296.8 kB / 453.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004024/0.4573, allocations: 443 kB / 453.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02194/0.4792, allocations: 10.81 MB / 464.6 MB, free: 4.301 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06148/0.5407, allocations: 38.12 MB / 0.491 GB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02004/0.5608, allocations: 28.1 MB / 0.5184 GB, free: 13.78 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004423/0.5653, allocations: 2.655 MB / 0.521 GB, free: 11.12 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01241/0.5777, allocations: 7.941 MB / 0.5287 GB, free: 3.141 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.709e-05/0.5778, allocations: 52.56 kB / 0.5288 GB, free: 3.078 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 3.787e-06/0.5778, allocations: 7.375 kB / 0.5288 GB, free: 3.074 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.1588/0.7366, allocations: 10.37 MB / 0.5389 GB, free: 150.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001659/0.7383, allocations: 1.906 MB / 0.5408 GB, free: 148.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005575/0.7439, allocations: 3.825 MB / 0.5445 GB, free: 147.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002747/0.7442, allocations: 63.7 kB / 0.5446 GB, free: 147.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001676/0.7458, allocations: 3.556 MB / 0.5481 GB, free: 144.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005665/0.7464, allocations: 0.8253 MB / 0.5489 GB, free: 143.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004307/0.7469, allocations: 386.9 kB / 0.5492 GB, free: 143.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 2.891e-05/0.7469, allocations: 302.6 kB / 0.5495 GB, free: 143.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002391/0.7493, allocations: 1.889 MB / 0.5514 GB, free: 142.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002922/0.7522, allocations: 4.395 MB / 0.5557 GB, free: 138.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0052/0.7574, allocations: 6.787 MB / 0.5623 GB, free: 133.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-05/0.7575, allocations: 23.59 kB / 0.5623 GB, free: 133.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.008866/0.7663, allocations: 6.986 MB / 0.5691 GB, free: 130.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.126e-05/0.7664, allocations: 38.94 kB / 0.5692 GB, free: 130.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.81e-05/0.7665, allocations: 88.62 kB / 0.5693 GB, free: 130.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00165/0.7681, allocations: 0.7399 MB / 0.57 GB, free: 130.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002929/0.7711, allocations: 1.12 MB / 0.5711 GB, free: 130 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005302/0.7764, allocations: 5.245 MB / 0.5762 GB, free: 127 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0031/0.7795, allocations: 307.6 kB / 0.5765 GB, free: 126.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002695/0.7798, allocations: 271.8 kB / 0.5768 GB, free: 126.8 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.003112/0.7829, allocations: 2.522 MB / 0.5792 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004942/0.7834, allocations: 395.7 kB / 0.5796 GB, free: 125.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00587/0.7893, allocations: 4.269 MB / 0.5838 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.187e-05/0.7893, allocations: 24 kB / 0.5838 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.7893, allocations: 8 kB / 0.5838 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.922e-05/0.7893, allocations: 15.77 kB / 0.5838 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01563/0.805, allocations: 14.28 MB / 0.5978 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.384e-05/0.805, allocations: 12 kB / 0.5978 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001611/0.8066, allocations: 480.8 kB / 0.5982 GB, free: 109.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001702/0.8083, allocations: 0.6944 MB / 0.5989 GB, free: 108.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001347/0.8085, allocations: 75.73 kB / 0.599 GB, free: 108.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006576/0.815, allocations: 6.956 MB / 0.6058 GB, free: 101.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001177/0.8162, allocations: 1.861 MB / 0.6076 GB, free: 99.41 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007436/0.8237, allocations: 6.736 MB / 0.6142 GB, free: 92.39 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001244/0.8249, allocations: 0.8006 MB / 0.6149 GB, free: 91.57 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004212/0.8254, allocations: 59.98 kB / 0.615 GB, free: 91.51 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001645/0.827, allocations: 163.8 kB / 0.6152 GB, free: 91.35 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003067/0.8273, allocations: 225.5 kB / 0.6154 GB, free: 91.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001406/0.8275, allocations: 91.97 kB / 0.6155 GB, free: 91.04 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002825/0.8303, allocations: 2.509 MB / 0.6179 GB, free: 88.55 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.8303, allocations: 1.312 kB / 0.6179 GB, free: 88.55 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003766/0.8341, allocations: 1.291 MB / 0.6192 GB, free: 87.26 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.007657/0.8418, allocations: 7.425 MB / 0.6264 GB, free: 79.55 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006042/0.8478, allocations: 5.143 MB / 0.6314 GB, free: 74.36 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.8478, allocations: 0 / 0.6314 GB, free: 74.36 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002784/0.8506, allocations: 2.41 MB / 0.6338 GB, free: 71.91 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009046/0.8597, allocations: 0.94 MB / 0.6347 GB, free: 70.99 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2121/1.072, allocations: 58.33 MB / 0.6917 GB, free: 149.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004671/1.077, allocations: 4.497 MB / 0.6961 GB, free: 148.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004174/1.081, allocations: 1.362 MB / 0.6974 GB, free: 148.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002679/1.083, allocations: 2.538 MB / 0.6999 GB, free: 148.2 MB / 446.1 MB Notification: Performance of SimCode: time 9.32e-07/1.083, allocations: 0.5 kB / 0.6999 GB, free: 148.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1205/1.204, allocations: 102.7 MB / 0.8002 GB, free: 62.64 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002067/1.204, allocations: 321.7 kB / 0.8005 GB, free: 62.24 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.757/4.962, allocations: 0 / 0.8005 GB, free: 62.24 MB / 446.1 MB (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)