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.0008337/0.0008337, allocations: 96.44 kB / 17.35 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009839/0.0009841, allocations: 204.3 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.182/1.182, allocations: 227.7 MB / 246.8 MB, free: 9.664 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002127/0.0002127, allocations: 11.98 kB / 307.9 MB, free: 484 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07793/0.07816, allocations: 51.52 MB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.1623/0.2405, allocations: 29.26 MB / 388.7 MB, free: 4.105 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01391/0.2545, allocations: 8.725 MB / 397.4 MB, free: 14.67 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003217/0.2577, allocations: 173.7 kB / 397.5 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003558/0.2613, allocations: 1.578 MB / 399.1 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006387/0.2677, allocations: 2.726 MB / 401.9 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002868/0.2706, allocations: 1.415 MB / 403.3 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008563/0.2791, allocations: 9.104 MB / 412.4 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0163/0.2954, allocations: 12.03 MB / 424.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004571/0.3, allocations: 3.074 MB / 427.5 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00539/0.3054, allocations: 3.808 MB / 431.3 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001421/0.3069, allocations: 476 kB / 431.8 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00323/0.3101, allocations: 0.855 MB / 432.6 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001951/0.3121, allocations: 1.592 MB / 434.2 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004488/0.3166, allocations: 3.799 MB / 438 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01212/0.3287, allocations: 14.9 MB / 452.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3287, allocations: 3.938 kB / 452.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3287, allocations: 0 / 452.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002725/0.329, allocations: 0 / 452.9 MB, free: 13.91 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.02003/0.3491, allocations: 8.211 MB / 461.1 MB, free: 5.605 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.3491, allocations: 8.031 kB / 461.1 MB, free: 5.598 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002615/0.3517, allocations: 1.156 MB / 462.3 MB, free: 4.43 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02697/0.3787, allocations: 5.271 MB / 467.5 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009176/0.3879, allocations: 4.984 MB / 472.5 MB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004833/0.3884, allocations: 0.5377 MB / 473.1 MB, free: 9.539 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002029/0.3905, allocations: 0.7069 MB / 473.8 MB, free: 8.832 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02128/0.4118, allocations: 11.33 MB / 485.1 MB, free: 13.42 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000274/0.4121, allocations: 19.81 kB / 485.1 MB, free: 13.4 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001672/0.4137, allocations: 299.9 kB / 485.4 MB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004228/0.4142, allocations: 450.9 kB / 485.9 MB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01974/0.4339, allocations: 10.82 MB / 496.7 MB, free: 1.836 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05148/0.4854, allocations: 39.03 MB / 0.5232 GB, free: 9.504 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1608/0.6463, allocations: 28.25 MB / 0.5507 GB, free: 108.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004253/0.6506, allocations: 2.67 MB / 0.5533 GB, free: 108.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01111/0.6617, allocations: 8.455 MB / 0.5616 GB, free: 105.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.6618, allocations: 59.17 kB / 0.5617 GB, free: 105 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 3.076e-06/0.6618, allocations: 3.719 kB / 0.5617 GB, free: 105 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.0166/0.6784, allocations: 10.38 MB / 0.5718 GB, free: 100.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001404/0.6798, allocations: 1.914 MB / 0.5737 GB, free: 98.77 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004173/0.684, allocations: 3.841 MB / 0.5774 GB, free: 97.28 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001393/0.6842, allocations: 66.11 kB / 0.5775 GB, free: 97.21 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001356/0.6855, allocations: 3.56 MB / 0.581 GB, free: 94.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004484/0.686, allocations: 0.8344 MB / 0.5818 GB, free: 93.88 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004011/0.6864, allocations: 381.2 kB / 0.5821 GB, free: 93.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 2.778e-05/0.6864, allocations: 301.7 kB / 0.5824 GB, free: 93.41 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002048/0.6885, allocations: 1.897 MB / 0.5843 GB, free: 92.68 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002765/0.6912, allocations: 4.39 MB / 0.5886 GB, free: 88.58 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005029/0.6963, allocations: 6.794 MB / 0.5952 GB, free: 83.11 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.611e-05/0.6963, allocations: 27.12 kB / 0.5952 GB, free: 83.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.008254/0.7046, allocations: 6.984 MB / 0.602 GB, free: 80.23 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.295e-05/0.7046, allocations: 41.91 kB / 0.6021 GB, free: 80.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.278e-05/0.7047, allocations: 86.34 kB / 0.6022 GB, free: 80.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001584/0.7063, allocations: 0.7462 MB / 0.6029 GB, free: 79.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002814/0.7091, allocations: 1.114 MB / 0.604 GB, free: 78.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005065/0.7142, allocations: 5.234 MB / 0.6091 GB, free: 73.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00298/0.7172, allocations: 319 kB / 0.6094 GB, free: 73.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002583/0.7174, allocations: 268 kB / 0.6097 GB, free: 73.04 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.002982/0.7204, allocations: 2.527 MB / 0.6121 GB, free: 70.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004949/0.7209, allocations: 391.6 kB / 0.6125 GB, free: 70.11 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005749/0.7267, allocations: 4.275 MB / 0.6167 GB, free: 65.81 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-05/0.7267, allocations: 27.94 kB / 0.6167 GB, free: 65.79 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/0.7267, allocations: 4 kB / 0.6167 GB, free: 65.78 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.761e-05/0.7268, allocations: 23.94 kB / 0.6167 GB, free: 65.76 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01697/0.7437, allocations: 14.3 MB / 0.6307 GB, free: 51.26 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.611e-05/0.7438, allocations: 11.94 kB / 0.6307 GB, free: 51.25 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001589/0.7454, allocations: 479.2 kB / 0.6312 GB, free: 50.78 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001699/0.7471, allocations: 0.6902 MB / 0.6318 GB, free: 50.08 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001587/0.7472, allocations: 71.98 kB / 0.6319 GB, free: 50.01 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006519/0.7538, allocations: 6.952 MB / 0.6387 GB, free: 42.79 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001184/0.755, allocations: 1.87 MB / 0.6405 GB, free: 40.78 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007504/0.7625, allocations: 6.741 MB / 0.6471 GB, free: 33.76 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001389/0.7639, allocations: 0.793 MB / 0.6479 GB, free: 32.94 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007044/0.7646, allocations: 63.98 kB / 0.6479 GB, free: 32.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001924/0.7665, allocations: 163.8 kB / 0.6481 GB, free: 32.72 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003143/0.7668, allocations: 229.4 kB / 0.6483 GB, free: 32.49 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001489/0.767, allocations: 87.98 kB / 0.6484 GB, free: 32.41 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00343/0.7704, allocations: 2.522 MB / 0.6509 GB, free: 29.87 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.61e-07/0.7704, allocations: 0 / 0.6509 GB, free: 29.87 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004046/0.7745, allocations: 1.304 MB / 0.6521 GB, free: 28.57 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.007861/0.7824, allocations: 7.429 MB / 0.6594 GB, free: 20.86 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00622/0.7886, allocations: 5.129 MB / 0.6644 GB, free: 15.68 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/0.7886, allocations: 4 kB / 0.6644 GB, free: 15.68 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002814/0.7914, allocations: 2.408 MB / 0.6668 GB, free: 13.23 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01003/0.8015, allocations: 0.9536 MB / 0.6677 GB, free: 12.29 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2431/1.045, allocations: 58.3 MB / 0.7246 GB, free: 142.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004643/1.049, allocations: 4.501 MB / 0.729 GB, free: 141.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003888/1.053, allocations: 1.406 MB / 0.7304 GB, free: 141.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002407/1.056, allocations: 2.548 MB / 0.7329 GB, free: 139 MB / 478.1 MB Notification: Performance of SimCode: time 8.52e-07/1.056, allocations: 0 / 0.7329 GB, free: 139 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1133/1.169, allocations: 103 MB / 0.8335 GB, free: 48.48 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001422/1.169, allocations: 307.3 kB / 0.8338 GB, free: 48.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.545/4.714, allocations: 0 / 0.8338 GB, free: 48.1 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)