Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource",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.001157/0.001157, allocations: 88.53 kB / 16.31 MB, free: 6.449 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.0008516/0.0008517, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.464/1.464, allocations: 223.2 MB / 241.2 MB, free: 5.309 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002792/0.0002794, allocations: 5.219 kB / 300.9 MB, free: 5.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1209, allocations: 50.43 MB / 351.4 MB, free: 11.4 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01647/0.1374, allocations: 13.97 MB / 365.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0111/0.1486, allocations: 4.989 MB / 370.3 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003116/0.1517, allocations: 95.62 kB / 370.4 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003307/0.1551, allocations: 0.8504 MB / 371.3 MB, free: 7.418 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004684/0.1598, allocations: 1.092 MB / 372.4 MB, free: 6.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002371/0.1622, allocations: 0.6499 MB / 373 MB, free: 5.672 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006005/0.1682, allocations: 3.834 MB / 376.8 MB, free: 1.824 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004733/0.173, allocations: 2.576 MB / 379.4 MB, free: 15.2 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002495/0.1755, allocations: 1.299 MB / 380.7 MB, free: 13.89 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002406/0.1779, allocations: 1.731 MB / 382.4 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005156/0.1784, allocations: 204 kB / 382.6 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001266/0.1797, allocations: 411.7 kB / 383 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008929/0.1806, allocations: 0.8876 MB / 383.9 MB, free: 10.66 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001037/0.1817, allocations: 0.7575 MB / 384.7 MB, free: 9.898 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005986/0.1876, allocations: 5.59 MB / 390.3 MB, free: 4.293 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.1877, allocations: 0 / 390.3 MB, free: 4.293 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1877, allocations: 0 / 390.3 MB, free: 4.293 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002124/0.1879, allocations: 0 / 390.3 MB, free: 4.293 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01003/0.1979, allocations: 3.963 MB / 394.2 MB, free: 264 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.976e-05/0.198, allocations: 12.03 kB / 394.3 MB, free: 252 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001591/0.1996, allocations: 493.4 kB / 394.7 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00325/0.2029, allocations: 0.6743 MB / 395.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005011/0.2079, allocations: 2.365 MB / 397.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002723/0.2082, allocations: 274.9 kB / 398 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007741/0.209, allocations: 347.8 kB / 398.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009626/0.2186, allocations: 4.437 MB / 402.8 MB, free: 7.555 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.16e-05/0.2187, allocations: 11.84 kB / 402.8 MB, free: 7.543 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003134/0.2191, allocations: 140 kB / 403 MB, free: 7.406 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001755/0.2192, allocations: 166.8 kB / 403.1 MB, free: 7.242 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007536/0.2268, allocations: 3.728 MB / 406.9 MB, free: 3.508 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02506/0.2519, allocations: 14.54 MB / 421.4 MB, free: 4.539 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2183/0.4702, allocations: 5.35 MB / 426.7 MB, free: 58.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002176/0.4725, allocations: 1.278 MB / 428 MB, free: 58.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006167/0.4786, allocations: 3.835 MB / 431.9 MB, free: 58.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.695e-05/0.4787, allocations: 43.44 kB / 431.9 MB, free: 58.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=128): time 2.826e-06/0.4787, allocations: 0 / 431.9 MB, free: 58.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=132): time 0.009922/0.4886, allocations: 5.527 MB / 437.4 MB, free: 56.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/0.4887, allocations: 73.67 kB / 437.5 MB, free: 56.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003371/0.4921, allocations: 2.087 MB / 439.6 MB, free: 56.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000131/0.4922, allocations: 51.95 kB / 439.6 MB, free: 56.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001038/0.4933, allocations: 1.652 MB / 441.3 MB, free: 54.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003609/0.4936, allocations: 467.6 kB / 441.7 MB, free: 54.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.681e-05/0.4937, allocations: 39 kB / 441.8 MB, free: 54.44 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.4939, allocations: 374.7 kB / 442.2 MB, free: 54.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001093/0.495, allocations: 0.7205 MB / 442.9 MB, free: 53.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001245/0.4962, allocations: 1.348 MB / 444.2 MB, free: 52.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001161/0.4974, allocations: 0.9491 MB / 445.2 MB, free: 52.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.138e-06/0.4974, allocations: 3.938 kB / 445.2 MB, free: 52.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003436/0.5009, allocations: 2.514 MB / 447.7 MB, free: 51.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.363e-05/0.5009, allocations: 20.12 kB / 447.7 MB, free: 51.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.771e-05/0.5009, allocations: 19.31 kB / 447.7 MB, free: 51.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003773/0.5013, allocations: 144.3 kB / 447.9 MB, free: 51.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001507/0.5029, allocations: 468.7 kB / 448.3 MB, free: 51.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001866/0.5047, allocations: 3.071 MB / 451.4 MB, free: 48.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001598/0.5063, allocations: 116.9 kB / 451.5 MB, free: 48.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001197/0.5065, allocations: 85.73 kB / 451.6 MB, free: 48.17 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 92 * 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 (227): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001786/0.5083, allocations: 1.048 MB / 452.6 MB, free: 47.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00037/0.5086, allocations: 217.5 kB / 452.9 MB, free: 47.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003069/0.5117, allocations: 2.193 MB / 455 MB, free: 46.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/0.5117, allocations: 14.81 kB / 455.1 MB, free: 46.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.5118, allocations: 4.625 kB / 455.1 MB, free: 46.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.369e-05/0.5118, allocations: 11.31 kB / 455.1 MB, free: 46.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006246/0.518, allocations: 5.175 MB / 460.3 MB, free: 42.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.5181, allocations: 0 / 460.3 MB, free: 42.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008803/0.5189, allocations: 230.7 kB / 460.5 MB, free: 42.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005791/0.5195, allocations: 275.2 kB / 460.7 MB, free: 42.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.105e-05/0.5196, allocations: 27.98 kB / 460.8 MB, free: 42.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00457/0.5242, allocations: 7.137 MB / 467.9 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.5242, allocations: 4 kB / 467.9 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00406/0.5283, allocations: 3.175 MB / 471.1 MB, free: 31.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008958/0.5292, allocations: 466.2 kB / 471.5 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002338/0.5294, allocations: 28 kB / 471.6 MB, free: 30.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008387/0.5303, allocations: 71.92 kB / 471.6 MB, free: 30.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/0.5304, allocations: 94.16 kB / 471.7 MB, free: 30.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.904e-05/0.5305, allocations: 39.98 kB / 471.8 MB, free: 30.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001799/0.5323, allocations: 1.418 MB / 473.2 MB, free: 29.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.022e-06/0.5323, allocations: 0 / 473.2 MB, free: 29.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001955/0.5343, allocations: 0.5624 MB / 473.8 MB, free: 28.53 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,currentController.PI_d.x,currentController.PI_q.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 (112): * Single equations (assignments): 108 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003873/0.5382, allocations: 3.793 MB / 477.5 MB, free: 24.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002693/0.5409, allocations: 2.098 MB / 479.6 MB, free: 22.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.5409, allocations: 1.312 kB / 479.6 MB, free: 22.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001576/0.5425, allocations: 1.382 MB / 481 MB, free: 21.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002425/0.5449, allocations: 0.536 MB / 481.6 MB, free: 20.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02795/0.5729, allocations: 18.25 MB / 499.8 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002019/0.5749, allocations: 2.409 MB / 0.4905 GB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001739/0.5767, allocations: 0.4907 MB / 0.4909 GB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001722/0.5784, allocations: 1.296 MB / 0.4922 GB, free: 12.75 MB / 366.1 MB Notification: Performance of SimCode: time 1.262e-06/0.5784, allocations: 0 / 0.4922 GB, free: 12.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08495/0.6634, allocations: 50.25 MB / 0.5413 GB, free: 10.98 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002156/0.6636, allocations: 255.2 kB / 0.5415 GB, free: 10.62 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.897/3.56, allocations: 0 / 0.5415 GB, free: 10.62 MB / 414.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat