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_MTPA.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_MTPA,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",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.001193/0.001193, allocations: 94.94 kB / 16.3 MB, free: 5.531 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.001379/0.001379, allocations: 178 kB / 17.19 MB, free: 5.465 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.302/1.302, allocations: 223.2 MB / 241.1 MB, free: 14.66 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002679/0.0002679, allocations: 4.719 kB / 300.8 MB, free: 6.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09584/0.09613, allocations: 50.42 MB / 351.3 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2222/0.3183, allocations: 22.92 MB / 374.2 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01693/0.3353, allocations: 7.955 MB / 382.1 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006945/0.3423, allocations: 183.1 kB / 382.3 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00704/0.3494, allocations: 1.679 MB / 384 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01074/0.3601, allocations: 2.77 MB / 386.8 MB, free: 8.508 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006601/0.3668, allocations: 1.419 MB / 388.2 MB, free: 8.176 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01335/0.3801, allocations: 8.03 MB / 396.2 MB, free: 4.125 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03029/0.4104, allocations: 17.16 MB / 413.4 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006745/0.4172, allocations: 3.547 MB / 416.9 MB, free: 3.723 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006999/0.4243, allocations: 3.996 MB / 420.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001867/0.4262, allocations: 0.5938 MB / 421.5 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003929/0.4301, allocations: 0.8941 MB / 422.4 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00233/0.4325, allocations: 1.744 MB / 424.2 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003481/0.436, allocations: 1.962 MB / 426.1 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01994/0.4559, allocations: 17.36 MB / 443.5 MB, free: 9.094 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.456, allocations: 3.938 kB / 443.5 MB, free: 9.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.456, allocations: 4 kB / 443.5 MB, free: 9.086 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0006256/0.4566, allocations: 0 / 443.5 MB, free: 9.086 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.02678/0.4834, allocations: 9.844 MB / 453.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.4835, allocations: 12.02 kB / 453.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004712/0.4882, allocations: 1.539 MB / 454.9 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03034/0.5186, allocations: 5.533 MB / 460.4 MB, free: 8.035 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01395/0.5326, allocations: 6.071 MB / 466.5 MB, free: 1.906 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008194/0.5334, allocations: 0.7025 MB / 467.2 MB, free: 1.203 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003173/0.5366, allocations: 0.9256 MB / 468.1 MB, free: 284 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03417/0.5708, allocations: 14.94 MB / 483 MB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003546/0.5712, allocations: 15.75 kB / 483.1 MB, free: 1.246 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002202/0.5734, allocations: 392 kB / 483.4 MB, free: 0.8633 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005396/0.5739, allocations: 0.5195 MB / 484 MB, free: 348 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02846/0.6024, allocations: 13.66 MB / 497.6 MB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4392/1.042, allocations: 47.74 MB / 0.5326 GB, free: 95.43 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01726/1.059, allocations: 28.53 MB / 0.5604 GB, free: 70.14 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005308/1.06, allocations: 238.9 kB / 0.5607 GB, free: 69.95 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.49e-05/1.06, allocations: 74.8 kB / 0.5607 GB, free: 69.91 MB / 430.1 MB Notification: Performance of pre-optimization done (n=384): time 8.085e-06/1.06, allocations: 0 / 0.5607 GB, free: 69.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=392): time 0.02883/1.088, allocations: 14.61 MB / 0.575 GB, free: 66.16 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/1.089, allocations: 93.08 kB / 0.5751 GB, free: 66.09 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004608/1.093, allocations: 3.546 MB / 0.5786 GB, free: 64.75 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004743/1.094, allocations: 94.33 kB / 0.5786 GB, free: 64.67 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002044/1.096, allocations: 4.055 MB / 0.5826 GB, free: 61.62 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001636/1.097, allocations: 1.338 MB / 0.5839 GB, free: 60.6 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000284/1.098, allocations: 118.8 kB / 0.584 GB, free: 60.5 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002677/1.098, allocations: 0.5504 MB / 0.5846 GB, free: 60.09 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0034/1.101, allocations: 2.575 MB / 0.5871 GB, free: 59.12 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004209/1.106, allocations: 5.046 MB / 0.592 GB, free: 54.47 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004633/1.11, allocations: 3.778 MB / 0.5957 GB, free: 52.36 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.126e-05/1.11, allocations: 24.53 kB / 0.5957 GB, free: 52.36 MB / 430.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01394/1.124, allocations: 8.588 MB / 0.6041 GB, free: 47.79 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.981e-05/1.124, allocations: 43.28 kB / 0.6041 GB, free: 47.79 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001526/1.125, allocations: 82.28 kB / 0.6042 GB, free: 47.79 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002139/1.127, allocations: 0.8234 MB / 0.605 GB, free: 47.45 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005118/1.132, allocations: 1.379 MB / 0.6064 GB, free: 47.04 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008723/1.141, allocations: 7.165 MB / 0.6134 GB, free: 39.74 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005233/1.146, allocations: 323.3 kB / 0.6137 GB, free: 39.42 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001396/1.147, allocations: 306.4 kB / 0.614 GB, free: 39.12 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * 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 (724): * Single equations (assignments): 723 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007285/1.155, allocations: 3.521 MB / 0.6174 GB, free: 35.59 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001026/1.156, allocations: 403.1 kB / 0.6178 GB, free: 35.19 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009355/1.165, allocations: 5.988 MB / 0.6236 GB, free: 29.17 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.633e-05/1.165, allocations: 40 kB / 0.6237 GB, free: 29.13 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/1.165, allocations: 8 kB / 0.6237 GB, free: 29.12 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.685e-05/1.165, allocations: 23.92 kB / 0.6237 GB, free: 29.1 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02477/1.19, allocations: 14.85 MB / 0.6382 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-05/1.19, allocations: 12.03 kB / 0.6382 GB, free: 14.08 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002699/1.193, allocations: 0.6982 MB / 0.6389 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001787/1.194, allocations: 0.6888 MB / 0.6396 GB, free: 12.69 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002564/1.195, allocations: 83.97 kB / 0.6397 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007085/1.202, allocations: 6.318 MB / 0.6458 GB, free: 6.156 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/1.202, allocations: 4 kB / 0.6458 GB, free: 6.152 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01266/1.215, allocations: 9.174 MB / 0.6548 GB, free: 12.76 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002981/1.218, allocations: 0.8941 MB / 0.6557 GB, free: 11.84 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009071/1.218, allocations: 75.95 kB / 0.6557 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002098/1.221, allocations: 179.8 kB / 0.6559 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000594/1.221, allocations: 274.6 kB / 0.6562 GB, free: 11.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002435/1.221, allocations: 116 kB / 0.6563 GB, free: 11.21 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004416/1.226, allocations: 2.365 MB / 0.6586 GB, free: 8.859 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/1.226, allocations: 0 / 0.6586 GB, free: 8.859 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006457/1.232, allocations: 1.546 MB / 0.6601 GB, free: 7.316 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 1 (smpmQS.phiMechanical) * 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 (377): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01527/1.248, allocations: 10.9 MB / 0.6707 GB, free: 12.23 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01222/1.26, allocations: 6.479 MB / 0.6771 GB, free: 5.746 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/1.26, allocations: 4 kB / 0.6771 GB, free: 5.742 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005008/1.265, allocations: 2.923 MB / 0.6799 GB, free: 2.812 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004692/1.27, allocations: 0.8471 MB / 0.6808 GB, free: 1.988 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3073/1.577, allocations: 101.2 MB / 0.7796 GB, free: 86.59 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005806/1.583, allocations: 6.122 MB / 0.7856 GB, free: 84.3 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005268/1.588, allocations: 1.88 MB / 0.7874 GB, free: 84.12 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003707/1.592, allocations: 3.207 MB / 0.7905 GB, free: 81.31 MB / 478.1 MB Notification: Performance of SimCode: time 2.565e-06/1.592, allocations: 0 / 0.7905 GB, free: 81.31 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3613/1.953, allocations: 115.3 MB / 0.9031 GB, free: 138.4 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001728/1.953, allocations: 256.3 kB / 0.9034 GB, free: 138 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.787/6.74, allocations: 0 / 0.9034 GB, free: 138 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat does not exist to compare? outputFormat=mat