Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001377/0.001377, allocations: 118.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001553/0.001553, allocations: 197.2 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 59.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2897, allocations: 50.55 MB / 408.8 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.0298/0.3196, allocations: 30.97 MB / 439.8 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01892/0.3385, allocations: 8.884 MB / 448.6 MB, free: 9.473 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00653/0.3451, allocations: 187.5 kB / 448.8 MB, free: 9.289 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01225/0.3574, allocations: 4.918 MB / 453.7 MB, free: 4.355 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0108/0.3683, allocations: 2.979 MB / 456.7 MB, free: 1.367 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005434/0.3737, allocations: 1.627 MB / 458.3 MB, free: 15.74 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01316/0.3869, allocations: 8.817 MB / 467.2 MB, free: 6.898 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02175/0.4087, allocations: 12.85 MB / 480 MB, free: 9.953 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007682/0.4164, allocations: 4.254 MB / 484.3 MB, free: 5.688 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008312/0.4248, allocations: 4.827 MB / 489.1 MB, free: 0.8438 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003282/0.4281, allocations: 1.168 MB / 490.3 MB, free: 15.67 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005614/0.4338, allocations: 1.542 MB / 491.8 MB, free: 14.13 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003514/0.4373, allocations: 2.415 MB / 494.2 MB, free: 11.71 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007382/0.4447, allocations: 4.665 MB / 498.9 MB, free: 7.027 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01678/0.4615, allocations: 15.86 MB / 0.5027 GB, free: 7.125 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.4616, allocations: 0 / 0.5027 GB, free: 7.125 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4616, allocations: 0 / 0.5027 GB, free: 7.125 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003559/0.4619, allocations: 0 / 0.5027 GB, free: 7.125 MB / 430.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.02793/0.4899, allocations: 9.782 MB / 0.5122 GB, free: 13.25 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/0.4899, allocations: 16.02 kB / 0.5122 GB, free: 13.23 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00284/0.4928, allocations: 1.141 MB / 0.5134 GB, free: 12.08 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02785/0.5206, allocations: 5.274 MB / 0.5185 GB, free: 6.789 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0127/0.5334, allocations: 5.116 MB / 0.5235 GB, free: 1.59 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005182/0.5339, allocations: 0.526 MB / 0.524 GB, free: 1.062 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002308/0.5363, allocations: 0.7068 MB / 0.5247 GB, free: 364 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0234/0.5597, allocations: 11.33 MB / 0.5358 GB, free: 4.945 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001955/0.5599, allocations: 15.81 kB / 0.5358 GB, free: 4.93 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001001/0.5609, allocations: 304 kB / 0.5361 GB, free: 4.633 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003971/0.5613, allocations: 454.9 kB / 0.5365 GB, free: 4.188 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2252/0.7865, allocations: 10.83 MB / 0.5471 GB, free: 112.6 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05145/0.838, allocations: 38.48 MB / 0.5847 GB, free: 82.91 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01487/0.853, allocations: 28.31 MB / 0.6123 GB, free: 50.79 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003855/0.8568, allocations: 2.685 MB / 0.6149 GB, free: 48.11 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01423/0.8711, allocations: 8.407 MB / 0.6231 GB, free: 39.53 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.463e-05/0.8712, allocations: 52.56 kB / 0.6232 GB, free: 39.47 MB / 462.1 MB Notification: Performance of pre-optimization done (n=217): time 5.059e-06/0.8712, allocations: 0 / 0.6232 GB, free: 39.47 MB / 462.1 MB Notification: Performance of matching and sorting (n=233): time 0.01813/0.8893, allocations: 10.37 MB / 0.6333 GB, free: 29.09 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00154/0.8909, allocations: 2.003 MB / 0.6353 GB, free: 26.92 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006076/0.897, allocations: 3.835 MB / 0.639 GB, free: 23.05 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003324/0.8974, allocations: 65.7 kB / 0.6391 GB, free: 22.98 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001623/0.899, allocations: 3.564 MB / 0.6426 GB, free: 19.41 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000697/0.8997, allocations: 0.8232 MB / 0.6434 GB, free: 18.59 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001571/0.9013, allocations: 0.9568 MB / 0.6443 GB, free: 17.62 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.68e-05/0.9014, allocations: 305.1 kB / 0.6446 GB, free: 17.32 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002547/0.9039, allocations: 1.891 MB / 0.6464 GB, free: 15.42 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003928/0.9079, allocations: 4.395 MB / 0.6507 GB, free: 9.793 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006104/0.914, allocations: 6.785 MB / 0.6574 GB, free: 1.801 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.464e-05/0.914, allocations: 28.44 kB / 0.6574 GB, free: 1.773 MB / 462.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01151/0.9256, allocations: 6.988 MB / 0.6642 GB, free: 10.77 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.648e-05/0.9257, allocations: 47.94 kB / 0.6642 GB, free: 10.72 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001488/0.9258, allocations: 84 kB / 0.6643 GB, free: 10.64 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002088/0.9279, allocations: 0.7413 MB / 0.6651 GB, free: 9.887 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003552/0.9315, allocations: 1.123 MB / 0.6661 GB, free: 8.762 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007727/0.9392, allocations: 5.625 MB / 0.6716 GB, free: 2.992 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003917/0.9432, allocations: 323 kB / 0.6719 GB, free: 2.676 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000669/0.9439, allocations: 272 kB / 0.6722 GB, free: 2.41 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.004756/0.9486, allocations: 2.522 MB / 0.6747 GB, free: 15.87 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001087/0.9497, allocations: 387.2 kB / 0.675 GB, free: 15.49 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008087/0.9578, allocations: 4.267 MB / 0.6792 GB, free: 11.19 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.308e-05/0.9579, allocations: 31.92 kB / 0.6792 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.996e-05/0.9579, allocations: 8 kB / 0.6792 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.644e-05/0.9579, allocations: 11.95 kB / 0.6793 GB, free: 11.14 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02832/0.9863, allocations: 14.31 MB / 0.6932 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-05/0.9863, allocations: 12 kB / 0.6932 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002073/0.9884, allocations: 483.2 kB / 0.6937 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002222/0.9907, allocations: 0.6897 MB / 0.6944 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003796/0.9911, allocations: 71.97 kB / 0.6944 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009372/1, allocations: 7.487 MB / 0.7018 GB, free: 3.621 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0017/1.002, allocations: 1.949 MB / 0.7037 GB, free: 1.523 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01067/1.013, allocations: 6.745 MB / 0.7102 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002256/1.015, allocations: 0.7967 MB / 0.711 GB, free: 9.68 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009469/1.016, allocations: 68.05 kB / 0.7111 GB, free: 9.613 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002324/1.018, allocations: 159.8 kB / 0.7112 GB, free: 9.457 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004667/1.019, allocations: 221.4 kB / 0.7115 GB, free: 9.238 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002135/1.019, allocations: 87.98 kB / 0.7115 GB, free: 9.152 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004674/1.024, allocations: 2.522 MB / 0.714 GB, free: 6.617 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/1.024, allocations: 4 kB / 0.714 GB, free: 6.613 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005415/1.029, allocations: 1.289 MB / 0.7153 GB, free: 5.324 MB / 0.5137 GB 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.01118/1.04, allocations: 7.44 MB / 0.7225 GB, free: 13.6 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008971/1.049, allocations: 5.171 MB / 0.7276 GB, free: 8.387 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.387e-05/1.05, allocations: 0 / 0.7276 GB, free: 8.387 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004254/1.054, allocations: 2.406 MB / 0.7299 GB, free: 5.941 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007263/1.061, allocations: 1.008 MB / 0.7309 GB, free: 4.961 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.337/1.398, allocations: 46.02 MB / 0.7758 GB, free: 185.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004209/1.402, allocations: 4.5 MB / 0.7802 GB, free: 183.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003741/1.406, allocations: 1.366 MB / 0.7816 GB, free: 182.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003102/1.409, allocations: 2.55 MB / 0.7841 GB, free: 179.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.392e-06/1.409, allocations: 0 / 0.7841 GB, free: 179.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.875/6.285, allocations: 104.6 MB / 0.8862 GB, free: 75.82 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.56/28.85, allocations: 23.36 kB / 0.8862 GB, free: 75.8 MB / 0.545 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1)