Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_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_3_2_3_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.001142/0.001142, allocations: 113.4 kB / 17.73 MB, free: 5.324 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.001169/0.001169, allocations: 188.2 kB / 18.66 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.45/1.45, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001078/0.001078, allocations: 47.92 kB / 328 MB, free: 3.785 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07972/0.08081, allocations: 46.62 MB / 374.7 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.2092/0.29, allocations: 30.24 MB / 404.9 MB, free: 9.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02061/0.3107, allocations: 8.64 MB / 413.5 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007865/0.3187, allocations: 170.2 kB / 413.7 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01367/0.3324, allocations: 4.906 MB / 418.6 MB, free: 36 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0123/0.3447, allocations: 2.947 MB / 421.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006106/0.3508, allocations: 1.617 MB / 423.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01475/0.3656, allocations: 8.701 MB / 431.9 MB, free: 6.625 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02156/0.3872, allocations: 12.84 MB / 444.7 MB, free: 9.691 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007803/0.395, allocations: 4.234 MB / 448.9 MB, free: 5.445 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008403/0.4034, allocations: 4.741 MB / 453.7 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003652/0.4071, allocations: 1.164 MB / 454.9 MB, free: 15.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007245/0.4144, allocations: 1.523 MB / 456.4 MB, free: 14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004702/0.4191, allocations: 2.404 MB / 458.8 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009851/0.429, allocations: 4.673 MB / 463.5 MB, free: 6.898 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01903/0.4481, allocations: 15.73 MB / 479.2 MB, free: 7.125 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.4481, allocations: 0 / 479.2 MB, free: 7.125 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4481, allocations: 0 / 479.2 MB, free: 7.125 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004023/0.4485, allocations: 0 / 479.2 MB, free: 7.125 MB / 398.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.02679/0.4753, allocations: 9.751 MB / 488.9 MB, free: 13.28 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.4754, allocations: 8.031 kB / 488.9 MB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002308/0.4777, allocations: 1.156 MB / 490.1 MB, free: 12.1 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02741/0.5051, allocations: 5.27 MB / 495.4 MB, free: 6.816 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01004/0.5152, allocations: 4.687 MB / 0.4883 GB, free: 2.047 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004159/0.5156, allocations: 0.5376 MB / 0.4889 GB, free: 1.508 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002137/0.5178, allocations: 0.7068 MB / 0.4896 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0219/0.5397, allocations: 11.32 MB / 0.5006 GB, free: 5.402 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001803/0.5399, allocations: 23.75 kB / 0.5006 GB, free: 5.379 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009456/0.5409, allocations: 300 kB / 0.5009 GB, free: 5.086 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004027/0.5413, allocations: 447 kB / 0.5013 GB, free: 4.648 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01931/0.5606, allocations: 10.82 MB / 0.5119 GB, free: 9.82 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06436/0.625, allocations: 37.58 MB / 0.5486 GB, free: 3.105 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2073/0.8323, allocations: 28.09 MB / 0.576 GB, free: 114.9 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005097/0.8374, allocations: 2.67 MB / 0.5786 GB, free: 114.9 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0148/0.8523, allocations: 7.904 MB / 0.5864 GB, free: 111.4 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.809e-05/0.8524, allocations: 57.58 kB / 0.5864 GB, free: 111.3 MB / 478.1 MB Notification: Performance of pre-optimization done (n=217): time 5.05e-06/0.8524, allocations: 0 / 0.5864 GB, free: 111.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=233): time 0.02008/0.8725, allocations: 10.37 MB / 0.5965 GB, free: 106.9 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001621/0.8742, allocations: 2.005 MB / 0.5985 GB, free: 105 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005672/0.8799, allocations: 3.826 MB / 0.6022 GB, free: 103.6 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004134/0.8803, allocations: 64.23 kB / 0.6023 GB, free: 103.5 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002/0.8823, allocations: 3.548 MB / 0.6058 GB, free: 100.8 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000786/0.8831, allocations: 0.8278 MB / 0.6066 GB, free: 100.2 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001106/0.8842, allocations: 0.9543 MB / 0.6075 GB, free: 99.73 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.336e-05/0.8843, allocations: 303.3 kB / 0.6078 GB, free: 99.43 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002374/0.8866, allocations: 1.895 MB / 0.6096 GB, free: 98.71 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002991/0.8896, allocations: 4.397 MB / 0.6139 GB, free: 94.61 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005668/0.8953, allocations: 6.785 MB / 0.6206 GB, free: 89.15 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.822e-05/0.8954, allocations: 23.28 kB / 0.6206 GB, free: 89.15 MB / 478.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.009658/0.9051, allocations: 6.983 MB / 0.6274 GB, free: 85.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.593e-05/0.9051, allocations: 47.94 kB / 0.6274 GB, free: 85.25 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-05/0.9052, allocations: 84 kB / 0.6275 GB, free: 85.17 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001706/0.907, allocations: 0.7368 MB / 0.6282 GB, free: 84.59 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003107/0.9101, allocations: 1.113 MB / 0.6293 GB, free: 83.63 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005605/0.9157, allocations: 5.639 MB / 0.6348 GB, free: 77.88 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003886/0.9196, allocations: 315.1 kB / 0.6351 GB, free: 77.57 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005467/0.9202, allocations: 268 kB / 0.6354 GB, free: 77.31 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.003753/0.9239, allocations: 2.526 MB / 0.6379 GB, free: 74.77 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008437/0.9248, allocations: 391.2 kB / 0.6382 GB, free: 74.39 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006166/0.9309, allocations: 4.272 MB / 0.6424 GB, free: 70.09 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.45e-05/0.931, allocations: 24 kB / 0.6424 GB, free: 70.07 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-05/0.931, allocations: 8 kB / 0.6424 GB, free: 70.06 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.965e-05/0.931, allocations: 11.95 kB / 0.6425 GB, free: 70.05 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02346/0.9545, allocations: 14.28 MB / 0.6564 GB, free: 55.59 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.781e-05/0.9546, allocations: 12 kB / 0.6564 GB, free: 55.58 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001776/0.9564, allocations: 488 kB / 0.6569 GB, free: 55.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00187/0.9582, allocations: 0.6854 MB / 0.6575 GB, free: 54.41 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002792/0.9585, allocations: 67.98 kB / 0.6576 GB, free: 54.34 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007498/0.9661, allocations: 7.498 MB / 0.6649 GB, free: 46.56 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001348/0.9674, allocations: 1.954 MB / 0.6668 GB, free: 44.46 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00954/0.977, allocations: 6.748 MB / 0.6734 GB, free: 37.44 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002419/0.9795, allocations: 0.7851 MB / 0.6742 GB, free: 36.63 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001305/0.9808, allocations: 67.73 kB / 0.6743 GB, free: 36.57 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002528/0.9833, allocations: 163.8 kB / 0.6744 GB, free: 36.41 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004748/0.9838, allocations: 229.4 kB / 0.6746 GB, free: 36.18 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001831/0.984, allocations: 87.98 kB / 0.6747 GB, free: 36.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003447/0.9875, allocations: 2.513 MB / 0.6772 GB, free: 33.61 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9875, allocations: 0 / 0.6772 GB, free: 33.61 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005204/0.9927, allocations: 1.292 MB / 0.6784 GB, free: 32.32 MB / 478.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.00856/1.001, allocations: 7.411 MB / 0.6857 GB, free: 24.61 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006655/1.008, allocations: 5.171 MB / 0.6907 GB, free: 19.39 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.155e-05/1.008, allocations: 4 kB / 0.6907 GB, free: 19.39 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002855/1.011, allocations: 2.414 MB / 0.6931 GB, free: 16.94 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004154/1.015, allocations: 0.9882 MB / 0.694 GB, free: 15.96 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2713/1.286, allocations: 46.01 MB / 0.739 GB, free: 166.7 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009364/1.296, allocations: 4.494 MB / 0.7434 GB, free: 165.9 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005389/1.301, allocations: 1.358 MB / 0.7447 GB, free: 165.8 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004603/1.306, allocations: 2.542 MB / 0.7472 GB, free: 165.3 MB / 0.4981 GB Notification: Performance of SimCode: time 9.82e-07/1.306, allocations: 0 / 0.7472 GB, free: 165.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1623/1.468, allocations: 104.5 MB / 0.8492 GB, free: 79.31 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.2/21.67, allocations: 12.89 kB / 0.8492 GB, free: 79.3 MB / 0.4981 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1)