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.001397/0.001397, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001786/0.001786, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002177/0.002177, allocations: 60.44 kB / 307.1 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1113, allocations: 50.53 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.2036/0.315, allocations: 30.97 MB / 388.6 MB, free: 4.152 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02169/0.3367, allocations: 8.899 MB / 397.5 MB, free: 13.97 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009516/0.3463, allocations: 190.3 kB / 397.7 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01524/0.3616, allocations: 4.92 MB / 402.6 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01307/0.3747, allocations: 2.963 MB / 405.5 MB, free: 8.574 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007842/0.3826, allocations: 1.627 MB / 407.2 MB, free: 7.27 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02085/0.4035, allocations: 8.75 MB / 415.9 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02719/0.4307, allocations: 12.91 MB / 428.8 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009204/0.44, allocations: 4.219 MB / 433.1 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008817/0.4488, allocations: 4.843 MB / 437.9 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004011/0.4529, allocations: 1.164 MB / 439.1 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00666/0.4596, allocations: 1.558 MB / 440.6 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004686/0.4643, allocations: 2.42 MB / 443 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01363/0.478, allocations: 4.676 MB / 447.7 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02515/0.5032, allocations: 15.75 MB / 463.5 MB, free: 2.305 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.667e-06/0.5033, allocations: 0 / 463.5 MB, free: 2.305 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.5033, allocations: 0 / 463.5 MB, free: 2.305 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005309/0.5038, allocations: 8 kB / 463.5 MB, free: 2.297 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.03549/0.5393, allocations: 9.822 MB / 473.3 MB, free: 8.375 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/0.5394, allocations: 12.03 kB / 473.3 MB, free: 8.363 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00514/0.5445, allocations: 1.153 MB / 474.5 MB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02971/0.5743, allocations: 5.243 MB / 479.7 MB, free: 1.941 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01257/0.5869, allocations: 4.993 MB / 484.7 MB, free: 12.87 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006369/0.5876, allocations: 0.53 MB / 485.2 MB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003476/0.5911, allocations: 0.7146 MB / 485.9 MB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0348/0.6259, allocations: 11.33 MB / 497.3 MB, free: 216 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006132/0.6266, allocations: 15.84 kB / 497.3 MB, free: 200 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003275/0.6299, allocations: 300 kB / 497.6 MB, free: 15.9 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000604/0.6305, allocations: 443 kB / 498 MB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02466/0.6552, allocations: 10.83 MB / 0.4969 GB, free: 4.625 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2469/0.9022, allocations: 38.89 MB / 0.5349 GB, free: 123.6 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01776/0.9199, allocations: 28.28 MB / 0.5625 GB, free: 97.96 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005433/0.9254, allocations: 2.672 MB / 0.5651 GB, free: 97.93 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01523/0.9407, allocations: 8.451 MB / 0.5734 GB, free: 95.73 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.17e-05/0.9408, allocations: 60.59 kB / 0.5734 GB, free: 95.68 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 4.147e-06/0.9408, allocations: 0 / 0.5734 GB, free: 95.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.0191/0.9599, allocations: 10.37 MB / 0.5835 GB, free: 91.02 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001789/0.9617, allocations: 1.997 MB / 0.5855 GB, free: 89.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006734/0.9685, allocations: 3.843 MB / 0.5893 GB, free: 87.71 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004485/0.9689, allocations: 61.23 kB / 0.5893 GB, free: 87.65 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001738/0.9707, allocations: 3.562 MB / 0.5928 GB, free: 84.94 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007377/0.9714, allocations: 0.8364 MB / 0.5936 GB, free: 84.31 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001069/0.9725, allocations: 0.9559 MB / 0.5945 GB, free: 83.82 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.529e-05/0.9725, allocations: 301.1 kB / 0.5948 GB, free: 83.53 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002049/0.9746, allocations: 1.895 MB / 0.5967 GB, free: 82.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003046/0.9777, allocations: 4.393 MB / 0.601 GB, free: 78.69 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005943/0.9836, allocations: 6.785 MB / 0.6076 GB, free: 72.85 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.189e-05/0.9837, allocations: 26.69 kB / 0.6076 GB, free: 72.85 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.00941/0.9931, allocations: 6.989 MB / 0.6144 GB, free: 66.66 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.478e-05/0.9932, allocations: 40 kB / 0.6145 GB, free: 66.62 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001265/0.9933, allocations: 88 kB / 0.6146 GB, free: 66.53 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001807/0.9951, allocations: 0.7401 MB / 0.6153 GB, free: 65.78 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003175/0.9983, allocations: 1.123 MB / 0.6164 GB, free: 64.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005705/1.004, allocations: 5.64 MB / 0.6219 GB, free: 58.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004377/1.008, allocations: 307.1 kB / 0.6222 GB, free: 58.58 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007092/1.009, allocations: 276 kB / 0.6225 GB, free: 58.31 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.004598/1.014, allocations: 2.522 MB / 0.6249 GB, free: 55.77 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001007/1.015, allocations: 395.2 kB / 0.6253 GB, free: 55.38 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006104/1.021, allocations: 4.275 MB / 0.6295 GB, free: 51.07 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.54e-05/1.021, allocations: 24 kB / 0.6295 GB, free: 51.05 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/1.021, allocations: 4 kB / 0.6295 GB, free: 51.05 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.859e-05/1.021, allocations: 11.95 kB / 0.6295 GB, free: 51.04 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01949/1.04, allocations: 14.31 MB / 0.6435 GB, free: 36.53 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-05/1.041, allocations: 14.94 kB / 0.6435 GB, free: 36.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001623/1.042, allocations: 475.2 kB / 0.6439 GB, free: 36.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001839/1.044, allocations: 0.6978 MB / 0.6446 GB, free: 35.34 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001711/1.044, allocations: 67.98 kB / 0.6447 GB, free: 35.28 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007278/1.051, allocations: 7.502 MB / 0.652 GB, free: 27.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001356/1.053, allocations: 1.952 MB / 0.6539 GB, free: 25.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008875/1.062, allocations: 6.749 MB / 0.6605 GB, free: 18.37 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002011/1.064, allocations: 0.7912 MB / 0.6613 GB, free: 17.55 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005371/1.064, allocations: 63.98 kB / 0.6613 GB, free: 17.49 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001805/1.066, allocations: 167.9 kB / 0.6615 GB, free: 17.33 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004333/1.067, allocations: 221.6 kB / 0.6617 GB, free: 17.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001485/1.067, allocations: 91.92 kB / 0.6618 GB, free: 17.02 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003548/1.07, allocations: 2.518 MB / 0.6643 GB, free: 14.49 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.07, allocations: 4 kB / 0.6643 GB, free: 14.49 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005067/1.075, allocations: 1.3 MB / 0.6655 GB, free: 13.19 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.008234/1.084, allocations: 7.446 MB / 0.6728 GB, free: 5.461 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01218/1.096, allocations: 7.006 MB / 0.6797 GB, free: 14.43 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.466e-05/1.096, allocations: 7.938 kB / 0.6797 GB, free: 14.42 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003844/1.1, allocations: 2.408 MB / 0.682 GB, free: 11.98 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00548/1.105, allocations: 0.9974 MB / 0.683 GB, free: 11.01 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2763/1.382, allocations: 55.4 MB / 0.7371 GB, free: 139.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003771/1.385, allocations: 4.5 MB / 0.7415 GB, free: 137.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003761/1.389, allocations: 1.367 MB / 0.7428 GB, free: 137.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002636/1.392, allocations: 2.551 MB / 0.7453 GB, free: 135.6 MB / 478.1 MB Notification: Performance of SimCode: time 9.82e-07/1.392, allocations: 0 / 0.7453 GB, free: 135.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.037/2.429, allocations: 106.6 MB / 0.8494 GB, free: 34.94 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.83/19.26, allocations: 16.69 kB / 0.8494 GB, free: 34.92 MB / 478.1 MB (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)