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.001363/0.001363, allocations: 116.2 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001482/0.001483, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 227.4 MB / 246.4 MB, free: 9.098 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001343, allocations: 66.31 kB / 306.6 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09572/0.09708, allocations: 50.52 MB / 357.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.1983/0.2954, allocations: 30.48 MB / 387.6 MB, free: 4.031 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01903/0.3145, allocations: 8.758 MB / 396.3 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006134/0.3207, allocations: 181.9 kB / 396.5 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01177/0.3325, allocations: 4.608 MB / 401.1 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009905/0.3424, allocations: 2.706 MB / 403.8 MB, free: 9.645 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005883/0.3483, allocations: 1.499 MB / 405.3 MB, free: 8.469 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01394/0.3623, allocations: 8.892 MB / 414.2 MB, free: 3.223 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02302/0.3854, allocations: 14.39 MB / 428.6 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007951/0.3934, allocations: 4.202 MB / 432.8 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008139/0.4015, allocations: 4.792 MB / 437.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003506/0.4051, allocations: 1.164 MB / 438.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005608/0.4107, allocations: 1.55 MB / 440.3 MB, free: 9.164 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003932/0.4147, allocations: 2.416 MB / 442.7 MB, free: 6.742 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01019/0.4249, allocations: 4.676 MB / 447.4 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02008/0.445, allocations: 15.74 MB / 463.2 MB, free: 2.262 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.445, allocations: 3.938 kB / 463.2 MB, free: 2.258 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.038e-06/0.4451, allocations: 0 / 463.2 MB, free: 2.258 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004644/0.4455, allocations: 3.938 kB / 463.2 MB, free: 2.254 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.0302/0.4757, allocations: 9.814 MB / 473 MB, free: 8.344 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.4758, allocations: 8.031 kB / 473 MB, free: 8.336 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003778/0.4796, allocations: 1.149 MB / 474.1 MB, free: 7.176 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02899/0.5086, allocations: 5.251 MB / 479.4 MB, free: 1.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01127/0.5199, allocations: 4.972 MB / 484.4 MB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000569/0.5205, allocations: 0.53 MB / 484.9 MB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002679/0.5232, allocations: 0.7146 MB / 485.6 MB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02802/0.5512, allocations: 11.33 MB / 496.9 MB, free: 208 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004057/0.5517, allocations: 11.91 kB / 496.9 MB, free: 196 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002535/0.5542, allocations: 296 kB / 497.2 MB, free: 15.9 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005735/0.5548, allocations: 451 kB / 497.7 MB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02312/0.578, allocations: 10.83 MB / 0.4966 GB, free: 4.621 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.25/0.828, allocations: 38.89 MB / 0.5346 GB, free: 123.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01592/0.8439, allocations: 28.28 MB / 0.5622 GB, free: 97.46 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004539/0.8485, allocations: 2.673 MB / 0.5648 GB, free: 97.43 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01357/0.8621, allocations: 8.45 MB / 0.573 GB, free: 95.48 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.594e-05/0.8622, allocations: 56.84 kB / 0.5731 GB, free: 95.43 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 6.082e-06/0.8622, allocations: 3.984 kB / 0.5731 GB, free: 95.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.0183/0.8805, allocations: 10.37 MB / 0.5832 GB, free: 90.77 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001604/0.8821, allocations: 1.998 MB / 0.5852 GB, free: 88.95 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005079/0.8872, allocations: 3.841 MB / 0.5889 GB, free: 87.46 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003692/0.8876, allocations: 64.95 kB / 0.589 GB, free: 87.39 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001483/0.8891, allocations: 3.568 MB / 0.5925 GB, free: 84.68 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006751/0.8898, allocations: 0.8237 MB / 0.5933 GB, free: 84.06 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001116/0.8909, allocations: 0.9579 MB / 0.5942 GB, free: 83.57 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.835e-05/0.891, allocations: 301.1 kB / 0.5945 GB, free: 83.27 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002226/0.8932, allocations: 1.891 MB / 0.5963 GB, free: 82.55 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003083/0.8963, allocations: 4.397 MB / 0.6006 GB, free: 78.44 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005642/0.902, allocations: 6.782 MB / 0.6073 GB, free: 72.65 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.276e-05/0.902, allocations: 24.62 kB / 0.6073 GB, free: 72.65 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.009483/0.9115, allocations: 6.991 MB / 0.6141 GB, free: 66.66 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.279e-05/0.9116, allocations: 48.25 kB / 0.6141 GB, free: 66.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.961e-05/0.9117, allocations: 84 kB / 0.6142 GB, free: 66.53 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001725/0.9135, allocations: 0.7485 MB / 0.615 GB, free: 65.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003312/0.9168, allocations: 1.111 MB / 0.616 GB, free: 64.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005677/0.9225, allocations: 5.645 MB / 0.6216 GB, free: 58.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00374/0.9263, allocations: 315.1 kB / 0.6219 GB, free: 58.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005008/0.9268, allocations: 272 kB / 0.6221 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.003672/0.9305, allocations: 2.526 MB / 0.6246 GB, free: 55.77 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007774/0.9312, allocations: 387.2 kB / 0.625 GB, free: 55.39 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006012/0.9373, allocations: 4.285 MB / 0.6291 GB, free: 51.07 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.696e-05/0.9373, allocations: 24 kB / 0.6292 GB, free: 51.05 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.281e-05/0.9373, allocations: 11.98 kB / 0.6292 GB, free: 51.04 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.013e-05/0.9374, allocations: 11.95 kB / 0.6292 GB, free: 51.03 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01982/0.9572, allocations: 14.31 MB / 0.6432 GB, free: 36.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.378e-05/0.9572, allocations: 8 kB / 0.6432 GB, free: 36.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001634/0.9589, allocations: 479.2 kB / 0.6436 GB, free: 36.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001749/0.9606, allocations: 0.7013 MB / 0.6443 GB, free: 35.34 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001924/0.9608, allocations: 68.55 kB / 0.6444 GB, free: 35.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006833/0.9677, allocations: 7.494 MB / 0.6517 GB, free: 27.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001198/0.9689, allocations: 1.956 MB / 0.6536 GB, free: 25.39 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007836/0.9767, allocations: 6.734 MB / 0.6602 GB, free: 18.38 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00161/0.9784, allocations: 0.8041 MB / 0.661 GB, free: 17.55 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005453/0.9789, allocations: 56 kB / 0.661 GB, free: 17.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001717/0.9807, allocations: 171.8 kB / 0.6612 GB, free: 17.33 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003895/0.9811, allocations: 225.4 kB / 0.6614 GB, free: 17.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001498/0.9812, allocations: 87.98 kB / 0.6615 GB, free: 17.02 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003148/0.9844, allocations: 2.526 MB / 0.6639 GB, free: 14.48 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.9844, allocations: 0 / 0.6639 GB, free: 14.48 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004744/0.9891, allocations: 1.298 MB / 0.6652 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.008472/0.9976, allocations: 7.434 MB / 0.6725 GB, free: 5.473 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01233/1.01, allocations: 7.004 MB / 0.6793 GB, free: 14.45 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.242e-05/1.01, allocations: 8.062 kB / 0.6793 GB, free: 14.44 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003832/1.014, allocations: 2.414 MB / 0.6817 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.006354/1.02, allocations: 0.9981 MB / 0.6826 GB, free: 11.02 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2436/1.264, allocations: 58.28 MB / 0.7396 GB, free: 138.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003805/1.268, allocations: 4.493 MB / 0.7439 GB, free: 136.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003739/1.271, allocations: 1.366 MB / 0.7453 GB, free: 136.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002679/1.274, allocations: 2.553 MB / 0.7478 GB, free: 134.6 MB / 478.1 MB Notification: Performance of SimCode: time 1.212e-06/1.274, allocations: 0 / 0.7478 GB, free: 134.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.19/2.465, allocations: 106.4 MB / 0.8517 GB, free: 32.31 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001865/2.465, allocations: 314.2 kB / 0.852 GB, free: 31.93 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.186/6.65, allocations: 3.953 kB / 0.852 GB, free: 31.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)