Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 109.5 kB / 17.06 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 200 kB / 18 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 51.92 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3253/0.3265, allocations: 49.42 MB / 400.3 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03343/0.36, allocations: 30.34 MB / 430.6 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02285/0.3829, allocations: 8.65 MB / 439.2 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005927/0.3888, allocations: 183.5 kB / 439.4 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01232/0.4012, allocations: 4.903 MB / 444.3 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01197/0.4132, allocations: 2.976 MB / 447.3 MB, free: 9.586 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005652/0.4188, allocations: 1.597 MB / 448.9 MB, free: 7.992 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01362/0.4325, allocations: 8.717 MB / 457.6 MB, free: 15.24 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02174/0.4542, allocations: 12.85 MB / 470.5 MB, free: 2.297 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008281/0.4626, allocations: 4.234 MB / 474.7 MB, free: 14.05 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008369/0.471, allocations: 4.749 MB / 479.5 MB, free: 9.285 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003031/0.474, allocations: 1.164 MB / 480.6 MB, free: 8.121 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004806/0.4788, allocations: 1.523 MB / 482.1 MB, free: 6.598 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004474/0.4834, allocations: 2.412 MB / 484.5 MB, free: 4.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01035/0.4937, allocations: 4.665 MB / 489.2 MB, free: 15.49 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02465/0.5184, allocations: 15.81 MB / 0.4932 GB, free: 15.64 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.457e-06/0.5185, allocations: 0 / 0.4932 GB, free: 15.64 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.5185, allocations: 0 / 0.4932 GB, free: 15.64 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006029/0.5191, allocations: 0 / 0.4932 GB, free: 15.64 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.0352/0.5543, allocations: 9.747 MB / 0.5027 GB, free: 5.801 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.554e-05/0.5544, allocations: 8.031 kB / 0.5027 GB, free: 5.793 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004933/0.5593, allocations: 1.152 MB / 0.5038 GB, free: 4.629 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03047/0.5898, allocations: 5.266 MB / 0.509 GB, free: 15.35 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01323/0.6031, allocations: 5.108 MB / 0.514 GB, free: 10.16 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006016/0.6037, allocations: 0.5299 MB / 0.5145 GB, free: 9.625 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00295/0.6067, allocations: 0.7029 MB / 0.5152 GB, free: 8.922 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03364/0.6404, allocations: 11.33 MB / 0.5262 GB, free: 13.52 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000506/0.6409, allocations: 15.81 kB / 0.5262 GB, free: 13.5 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002881/0.6438, allocations: 300 kB / 0.5265 GB, free: 13.21 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005644/0.6444, allocations: 447 kB / 0.527 GB, free: 12.77 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02293/0.6673, allocations: 10.84 MB / 0.5375 GB, free: 1.922 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3348/1.002, allocations: 37.58 MB / 0.5742 GB, free: 95.75 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01596/1.018, allocations: 28.1 MB / 0.6017 GB, free: 66.98 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004131/1.022, allocations: 2.671 MB / 0.6043 GB, free: 64.3 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01311/1.036, allocations: 7.893 MB / 0.612 GB, free: 56.4 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.787e-05/1.036, allocations: 56.56 kB / 0.6121 GB, free: 56.34 MB / 462.1 MB Notification: Performance of pre-optimization done (n=217): time 4.168e-06/1.036, allocations: 0 / 0.6121 GB, free: 56.34 MB / 462.1 MB Notification: Performance of matching and sorting (n=233): time 0.01681/1.052, allocations: 10.36 MB / 0.6222 GB, free: 45.97 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001476/1.054, allocations: 2.003 MB / 0.6241 GB, free: 43.8 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004681/1.059, allocations: 3.822 MB / 0.6279 GB, free: 40 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003454/1.059, allocations: 61.7 kB / 0.6279 GB, free: 39.93 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001417/1.06, allocations: 3.559 MB / 0.6314 GB, free: 36.36 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000602/1.061, allocations: 0.8271 MB / 0.6322 GB, free: 35.54 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00111/1.062, allocations: 0.9568 MB / 0.6331 GB, free: 34.57 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.903e-05/1.062, allocations: 313.1 kB / 0.6334 GB, free: 34.26 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002207/1.064, allocations: 1.887 MB / 0.6353 GB, free: 32.36 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003062/1.067, allocations: 4.393 MB / 0.6396 GB, free: 26.74 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00603/1.074, allocations: 6.787 MB / 0.6462 GB, free: 18.75 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.467e-05/1.074, allocations: 24 kB / 0.6462 GB, free: 18.72 MB / 462.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.0105/1.084, allocations: 6.979 MB / 0.653 GB, free: 11.72 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.603e-05/1.084, allocations: 44.88 kB / 0.6531 GB, free: 11.68 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001477/1.084, allocations: 88 kB / 0.6532 GB, free: 11.59 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00191/1.086, allocations: 0.7387 MB / 0.6539 GB, free: 10.85 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003542/1.09, allocations: 1.119 MB / 0.655 GB, free: 9.727 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006157/1.096, allocations: 5.633 MB / 0.6605 GB, free: 3.949 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004181/1.1, allocations: 311.1 kB / 0.6608 GB, free: 3.645 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006617/1.101, allocations: 279.9 kB / 0.661 GB, free: 3.371 MB / 462.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.003783/1.105, allocations: 2.533 MB / 0.6635 GB, free: 0.8281 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008353/1.106, allocations: 383.3 kB / 0.6639 GB, free: 460 kB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007106/1.113, allocations: 4.267 MB / 0.6681 GB, free: 12.16 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-05/1.113, allocations: 24 kB / 0.6681 GB, free: 12.14 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/1.113, allocations: 11.88 kB / 0.6681 GB, free: 12.12 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.393e-05/1.113, allocations: 11.95 kB / 0.6681 GB, free: 12.11 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02262/1.135, allocations: 14.29 MB / 0.682 GB, free: 13.63 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.658e-05/1.135, allocations: 12 kB / 0.6821 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001855/1.137, allocations: 479.2 kB / 0.6825 GB, free: 13.15 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002025/1.139, allocations: 0.7018 MB / 0.6832 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002412/1.14, allocations: 67.98 kB / 0.6833 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009384/1.149, allocations: 7.487 MB / 0.6906 GB, free: 4.609 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001901/1.151, allocations: 1.949 MB / 0.6925 GB, free: 2.508 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01101/1.162, allocations: 6.747 MB / 0.6991 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002947/1.165, allocations: 0.7889 MB / 0.6998 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007738/1.166, allocations: 67.92 kB / 0.6999 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001869/1.168, allocations: 159.8 kB / 0.7001 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004715/1.168, allocations: 233.3 kB / 0.7003 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001748/1.168, allocations: 87.98 kB / 0.7004 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004445/1.173, allocations: 2.509 MB / 0.7028 GB, free: 7.645 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.9e-07/1.173, allocations: 0 / 0.7028 GB, free: 7.645 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005144/1.178, allocations: 1.289 MB / 0.7041 GB, free: 6.355 MB / 0.4981 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.01086/1.189, allocations: 7.431 MB / 0.7113 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.009821/1.199, allocations: 5.161 MB / 0.7164 GB, free: 9.438 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.601e-05/1.199, allocations: 4 kB / 0.7164 GB, free: 9.434 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003953/1.203, allocations: 2.404 MB / 0.7187 GB, free: 6.992 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005118/1.208, allocations: 0.9837 MB / 0.7197 GB, free: 6.027 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3279/1.536, allocations: 46.01 MB / 0.7646 GB, free: 178.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004297/1.54, allocations: 4.5 MB / 0.769 GB, free: 175.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003704/1.544, allocations: 1.356 MB / 0.7703 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00315/1.547, allocations: 2.542 MB / 0.7728 GB, free: 171.9 MB / 0.5294 GB Notification: Performance of SimCode: time 1.072e-06/1.547, allocations: 0 / 0.7728 GB, free: 171.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2081/1.755, allocations: 104.5 MB / 0.8748 GB, free: 68.27 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.32/24.08, allocations: 7.781 kB / 0.8748 GB, free: 68.26 MB / 0.5294 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1)