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.001379/0.001379, allocations: 118.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00164/0.00164, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 59.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2836, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03175/0.3154, allocations: 30.98 MB / 439.8 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01874/0.3342, allocations: 8.888 MB / 448.7 MB, free: 9.508 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006508/0.3407, allocations: 191.4 kB / 448.8 MB, free: 9.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01245/0.3532, allocations: 4.921 MB / 453.8 MB, free: 4.383 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01063/0.3639, allocations: 2.972 MB / 456.7 MB, free: 1.398 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005236/0.3691, allocations: 1.616 MB / 458.3 MB, free: 15.79 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01193/0.3811, allocations: 8.829 MB / 467.2 MB, free: 6.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02067/0.4018, allocations: 12.85 MB / 480 MB, free: 9.984 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007168/0.409, allocations: 4.242 MB / 484.3 MB, free: 5.73 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00815/0.4172, allocations: 4.827 MB / 489.1 MB, free: 0.8867 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003401/0.4207, allocations: 1.168 MB / 490.3 MB, free: 15.71 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004709/0.4254, allocations: 1.55 MB / 491.8 MB, free: 14.17 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00407/0.4295, allocations: 2.412 MB / 494.2 MB, free: 11.75 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007963/0.4375, allocations: 4.673 MB / 498.9 MB, free: 7.059 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01793/0.4554, allocations: 15.84 MB / 0.5027 GB, free: 7.168 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.4555, allocations: 4 kB / 0.5027 GB, free: 7.164 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4555, allocations: 0 / 0.5027 GB, free: 7.164 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004553/0.456, allocations: 0 / 0.5027 GB, free: 7.164 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.03329/0.4893, allocations: 9.786 MB / 0.5122 GB, free: 13.28 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.176e-05/0.4893, allocations: 8.031 kB / 0.5122 GB, free: 13.27 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005365/0.4947, allocations: 1.145 MB / 0.5134 GB, free: 12.12 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03224/0.527, allocations: 5.286 MB / 0.5185 GB, free: 6.816 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0139/0.541, allocations: 5.104 MB / 0.5235 GB, free: 1.629 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007042/0.5417, allocations: 0.5377 MB / 0.524 GB, free: 1.09 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003304/0.545, allocations: 0.7068 MB / 0.5247 GB, free: 392 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02623/0.5713, allocations: 11.32 MB / 0.5358 GB, free: 4.977 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001797/0.5715, allocations: 23.75 kB / 0.5358 GB, free: 4.953 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009097/0.5724, allocations: 292 kB / 0.5361 GB, free: 4.668 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004137/0.5728, allocations: 447 kB / 0.5365 GB, free: 4.23 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2499/0.8227, allocations: 10.83 MB / 0.5471 GB, free: 112.6 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05109/0.8739, allocations: 38.47 MB / 0.5847 GB, free: 83.08 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01412/0.888, allocations: 28.3 MB / 0.6123 GB, free: 50.96 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003878/0.892, allocations: 2.686 MB / 0.6149 GB, free: 48.27 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01254/0.9045, allocations: 8.408 MB / 0.6231 GB, free: 39.7 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/0.9046, allocations: 60.56 kB / 0.6232 GB, free: 39.63 MB / 462.1 MB Notification: Performance of pre-optimization done (n=217): time 5.46e-06/0.9046, allocations: 0 / 0.6232 GB, free: 39.63 MB / 462.1 MB Notification: Performance of matching and sorting (n=233): time 0.01669/0.9213, allocations: 10.36 MB / 0.6333 GB, free: 29.25 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001501/0.9229, allocations: 1.999 MB / 0.6353 GB, free: 27.09 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004657/0.9275, allocations: 3.839 MB / 0.639 GB, free: 23.22 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002472/0.9278, allocations: 65.7 kB / 0.6391 GB, free: 23.15 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001436/0.9292, allocations: 3.559 MB / 0.6425 GB, free: 19.57 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000514/0.9298, allocations: 0.8266 MB / 0.6434 GB, free: 18.75 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001029/0.9308, allocations: 0.9568 MB / 0.6443 GB, free: 17.78 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.7e-05/0.9308, allocations: 309.1 kB / 0.6446 GB, free: 17.48 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002086/0.9329, allocations: 1.895 MB / 0.6464 GB, free: 15.57 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002945/0.9359, allocations: 4.391 MB / 0.6507 GB, free: 9.953 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005325/0.9412, allocations: 6.785 MB / 0.6574 GB, free: 1.961 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.773e-05/0.9413, allocations: 31.94 kB / 0.6574 GB, free: 1.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01027/0.9516, allocations: 6.984 MB / 0.6642 GB, free: 10.93 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.941e-05/0.9516, allocations: 43.98 kB / 0.6642 GB, free: 10.88 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001114/0.9518, allocations: 88.09 kB / 0.6643 GB, free: 10.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001872/0.9536, allocations: 0.7329 MB / 0.665 GB, free: 10.05 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003408/0.9571, allocations: 1.127 MB / 0.6661 GB, free: 8.926 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007268/0.9643, allocations: 5.632 MB / 0.6716 GB, free: 3.148 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00386/0.9682, allocations: 319 kB / 0.6719 GB, free: 2.836 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006752/0.9689, allocations: 276 kB / 0.6722 GB, free: 2.566 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.004693/0.9736, allocations: 2.522 MB / 0.6747 GB, free: 32 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001092/0.9747, allocations: 389.2 kB / 0.675 GB, free: 15.64 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00779/0.9825, allocations: 4.259 MB / 0.6792 GB, free: 11.35 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.1e-05/0.9826, allocations: 31.94 kB / 0.6792 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.697e-05/0.9826, allocations: 4 kB / 0.6792 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.57e-05/0.9826, allocations: 15.95 kB / 0.6793 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02532/1.008, allocations: 14.3 MB / 0.6932 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.383e-05/1.008, allocations: 12 kB / 0.6932 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001864/1.01, allocations: 479.2 kB / 0.6937 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002092/1.012, allocations: 0.6979 MB / 0.6944 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002761/1.012, allocations: 67.98 kB / 0.6944 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009115/1.021, allocations: 7.487 MB / 0.7017 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001712/1.023, allocations: 1.965 MB / 0.7037 GB, free: 1.672 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01104/1.034, allocations: 6.737 MB / 0.7102 GB, free: 10.65 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002496/1.037, allocations: 0.8045 MB / 0.711 GB, free: 9.824 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001054/1.038, allocations: 59.94 kB / 0.7111 GB, free: 9.766 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002336/1.04, allocations: 163.9 kB / 0.7112 GB, free: 9.605 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004924/1.041, allocations: 221.5 kB / 0.7115 GB, free: 9.387 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000241/1.041, allocations: 87.98 kB / 0.7115 GB, free: 9.301 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005163/1.046, allocations: 2.522 MB / 0.714 GB, free: 6.766 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.2e-07/1.046, allocations: 0 / 0.714 GB, free: 6.766 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00589/1.052, allocations: 1.296 MB / 0.7153 GB, free: 5.473 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.01115/1.063, allocations: 7.441 MB / 0.7225 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008152/1.071, allocations: 5.164 MB / 0.7276 GB, free: 8.543 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/1.071, allocations: 0 / 0.7276 GB, free: 8.543 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003571/1.075, allocations: 2.408 MB / 0.7299 GB, free: 6.094 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00577/1.081, allocations: 1.009 MB / 0.7309 GB, free: 5.113 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3492/1.43, allocations: 46.02 MB / 0.7759 GB, free: 185.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004243/1.434, allocations: 4.5 MB / 0.7802 GB, free: 183.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00374/1.438, allocations: 1.361 MB / 0.7816 GB, free: 182.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002739/1.441, allocations: 2.556 MB / 0.7841 GB, free: 180.3 MB / 0.545 GB Notification: Performance of SimCode: time 9.22e-07/1.441, allocations: 0 / 0.7841 GB, free: 180.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1532/1.594, allocations: 104.6 MB / 0.8862 GB, free: 76.44 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.73/22.33, allocations: 20.05 kB / 0.8862 GB, free: 76.42 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)