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.001286/0.001286, allocations: 107.4 kB / 17.15 MB, free: 6.328 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.001429/0.001429, allocations: 198 kB / 18.07 MB, free: 5.434 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.278/1.278, allocations: 205.1 MB / 223.9 MB, free: 12.49 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.00112/0.00112, allocations: 51.91 kB / 280.1 MB, free: 3.465 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08182/0.08295, allocations: 46.63 MB / 326.7 MB, free: 4.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.02762/0.1106, allocations: 29.74 MB / 356.5 MB, free: 6.887 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01615/0.1268, allocations: 8.566 MB / 365 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005576/0.1324, allocations: 159.5 kB / 365.2 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01121/0.1437, allocations: 4.556 MB / 369.8 MB, free: 9.566 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008507/0.1522, allocations: 2.714 MB / 372.5 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004052/0.1562, allocations: 1.497 MB / 374 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1655/0.3217, allocations: 8.965 MB / 382.9 MB, free: 12.53 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01342/0.3352, allocations: 10.29 MB / 393.2 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006037/0.3413, allocations: 3.603 MB / 396.8 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007321/0.3486, allocations: 4.478 MB / 401.3 MB, free: 9.441 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00266/0.3513, allocations: 0.731 MB / 402 MB, free: 9.441 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004464/0.3558, allocations: 1.1 MB / 403.1 MB, free: 9.344 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002302/0.3581, allocations: 1.963 MB / 405.1 MB, free: 8.223 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005874/0.364, allocations: 4.211 MB / 409.3 MB, free: 5.555 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01317/0.3772, allocations: 15.31 MB / 424.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.3773, allocations: 0 / 424.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3773, allocations: 0 / 424.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003974/0.3777, allocations: 4 kB / 424.6 MB, free: 10.54 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.02757/0.4052, allocations: 9.782 MB / 434.4 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.4053, allocations: 16.03 kB / 434.4 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003347/0.4087, allocations: 1.151 MB / 435.6 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02764/0.4363, allocations: 5.258 MB / 440.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009395/0.4458, allocations: 4.639 MB / 445.5 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000449/0.4462, allocations: 0.5365 MB / 446 MB, free: 5.352 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00209/0.4483, allocations: 0.7166 MB / 446.7 MB, free: 4.645 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0219/0.4702, allocations: 11.32 MB / 458 MB, free: 9.277 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001899/0.4705, allocations: 19.81 kB / 458.1 MB, free: 9.258 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008841/0.4713, allocations: 295.8 kB / 458.3 MB, free: 8.977 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003804/0.4717, allocations: 443 kB / 458.8 MB, free: 8.543 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02109/0.4928, allocations: 10.81 MB / 469.6 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05764/0.5505, allocations: 37.99 MB / 0.4957 GB, free: 7.273 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02008/0.5706, allocations: 28.11 MB / 0.5231 GB, free: 7.34 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004496/0.5752, allocations: 2.654 MB / 0.5257 GB, free: 4.68 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1572/0.7324, allocations: 7.923 MB / 0.5335 GB, free: 149.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.7325, allocations: 62.67 kB / 0.5335 GB, free: 149.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 3.707e-06/0.7325, allocations: 0 / 0.5335 GB, free: 149.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.01837/0.7508, allocations: 10.36 MB / 0.5436 GB, free: 146.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001481/0.7523, allocations: 1.917 MB / 0.5455 GB, free: 144.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005051/0.7574, allocations: 3.822 MB / 0.5492 GB, free: 142.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003457/0.7578, allocations: 65.61 kB / 0.5493 GB, free: 142.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001591/0.7594, allocations: 3.551 MB / 0.5528 GB, free: 140.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006781/0.7601, allocations: 0.8288 MB / 0.5536 GB, free: 139.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001072/0.7611, allocations: 0.95 MB / 0.5545 GB, free: 139.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.208e-05/0.7612, allocations: 305.1 kB / 0.5548 GB, free: 138.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002295/0.7635, allocations: 1.9 MB / 0.5567 GB, free: 138.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003/0.7665, allocations: 4.384 MB / 0.5609 GB, free: 134 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00583/0.7723, allocations: 6.795 MB / 0.5676 GB, free: 128.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.44e-05/0.7725, allocations: 23.12 kB / 0.5676 GB, free: 128.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01001/0.7825, allocations: 6.978 MB / 0.5744 GB, free: 125.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.335e-05/0.7826, allocations: 50.59 kB / 0.5745 GB, free: 125.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.647e-05/0.7827, allocations: 83.28 kB / 0.5745 GB, free: 125.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001699/0.7844, allocations: 0.737 MB / 0.5753 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00316/0.7875, allocations: 1.125 MB / 0.5764 GB, free: 125.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005355/0.7929, allocations: 5.23 MB / 0.5815 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004068/0.797, allocations: 312.6 kB / 0.5818 GB, free: 121.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008685/0.7979, allocations: 275.3 kB / 0.582 GB, free: 121.4 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.005835/0.8037, allocations: 2.526 MB / 0.5845 GB, free: 119.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001025/0.8048, allocations: 383.2 kB / 0.5849 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01036/0.8151, allocations: 4.279 MB / 0.589 GB, free: 115.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.458e-05/0.8152, allocations: 24 kB / 0.5891 GB, free: 115.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.445e-05/0.8152, allocations: 4 kB / 0.5891 GB, free: 115.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.249e-05/0.8153, allocations: 19.67 kB / 0.5891 GB, free: 115.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02215/0.8375, allocations: 14.28 MB / 0.603 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.456e-05/0.8375, allocations: 12 kB / 0.603 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001635/0.8392, allocations: 483.2 kB / 0.6035 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001816/0.841, allocations: 0.6977 MB / 0.6042 GB, free: 99.86 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001744/0.8412, allocations: 67.98 kB / 0.6043 GB, free: 99.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006447/0.8476, allocations: 6.945 MB / 0.611 GB, free: 92.59 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001197/0.8489, allocations: 1.87 MB / 0.6129 GB, free: 90.57 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007921/0.8568, allocations: 6.731 MB / 0.6194 GB, free: 83.56 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001787/0.8586, allocations: 0.7967 MB / 0.6202 GB, free: 82.74 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005645/0.8592, allocations: 68.05 kB / 0.6203 GB, free: 82.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001686/0.8609, allocations: 160.3 kB / 0.6204 GB, free: 82.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000392/0.8613, allocations: 221.5 kB / 0.6206 GB, free: 82.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001495/0.8614, allocations: 91.98 kB / 0.6207 GB, free: 82.21 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002987/0.8644, allocations: 2.509 MB / 0.6232 GB, free: 79.72 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8644, allocations: 0 / 0.6232 GB, free: 79.72 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004283/0.8687, allocations: 1.292 MB / 0.6244 GB, free: 78.43 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.007862/0.8766, allocations: 7.413 MB / 0.6317 GB, free: 70.74 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00651/0.8831, allocations: 5.152 MB / 0.6367 GB, free: 65.54 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.195e-06/0.8832, allocations: 0 / 0.6367 GB, free: 65.54 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00283/0.886, allocations: 2.402 MB / 0.6391 GB, free: 63.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004687/0.8907, allocations: 0.9347 MB / 0.64 GB, free: 62.19 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2103/1.101, allocations: 58.29 MB / 0.6969 GB, free: 141.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003672/1.105, allocations: 4.5 MB / 0.7013 GB, free: 140.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003611/1.108, allocations: 1.362 MB / 0.7026 GB, free: 140.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002323/1.111, allocations: 2.539 MB / 0.7051 GB, free: 138.5 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/1.111, allocations: 0 / 0.7051 GB, free: 138.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6394/1.75, allocations: 104 MB / 0.8067 GB, free: 48.14 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001692/1.75, allocations: 314.4 kB / 0.807 GB, free: 47.75 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.139/5.889, allocations: 7.844 kB / 0.807 GB, free: 47.74 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)