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.001048/0.001048, allocations: 89.47 kB / 16.3 MB, free: 6.133 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.001061/0.001061, allocations: 185.5 kB / 17.2 MB, free: 6.012 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.354/1.354, allocations: 223.2 MB / 241.1 MB, free: 400 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002837/0.0002837, allocations: 8.609 kB / 300.8 MB, free: 6.371 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1161, allocations: 50.4 MB / 351.2 MB, free: 3.953 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01364/0.1298, allocations: 12.88 MB / 364.1 MB, free: 7.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01059/0.1405, allocations: 5.108 MB / 369.2 MB, free: 1.898 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002753/0.1433, allocations: 87.62 kB / 369.3 MB, free: 1.812 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002918/0.1462, allocations: 0.956 MB / 370.3 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2165/0.3627, allocations: 1.381 MB / 371.7 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002974/0.3657, allocations: 0.7061 MB / 372.4 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007/0.3727, allocations: 2.71 MB / 375.1 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004062/0.3768, allocations: 2.588 MB / 377.7 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003509/0.3803, allocations: 1.256 MB / 378.9 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005201/0.3855, allocations: 1.593 MB / 380.5 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001098/0.3866, allocations: 199.3 kB / 380.7 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0026/0.3893, allocations: 387 kB / 381.1 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001453/0.3907, allocations: 0.8537 MB / 381.9 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002014/0.3927, allocations: 0.7615 MB / 382.7 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007697/0.4004, allocations: 5.535 MB / 388.2 MB, free: 7.098 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.4005, allocations: 0 / 388.2 MB, free: 7.098 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4005, allocations: 1.094 kB / 388.2 MB, free: 7.098 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002494/0.4008, allocations: 4 kB / 388.2 MB, free: 7.094 MB / 302.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.012/0.4128, allocations: 3.958 MB / 392.2 MB, free: 4.844 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.4128, allocations: 9.031 kB / 392.2 MB, free: 4.844 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001626/0.4145, allocations: 488.1 kB / 392.7 MB, free: 4.703 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003375/0.4178, allocations: 0.6794 MB / 393.4 MB, free: 4.402 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006211/0.4241, allocations: 2.391 MB / 395.7 MB, free: 3.535 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002573/0.4243, allocations: 267.5 kB / 396 MB, free: 3.523 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007718/0.4251, allocations: 349.3 kB / 396.3 MB, free: 3.516 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007784/0.4329, allocations: 4.408 MB / 400.8 MB, free: 2.477 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.583e-05/0.433, allocations: 5.125 kB / 400.8 MB, free: 2.477 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003181/0.4333, allocations: 147 kB / 400.9 MB, free: 2.457 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001489/0.4335, allocations: 161.6 kB / 401.1 MB, free: 2.305 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006631/0.4401, allocations: 3.722 MB / 404.8 MB, free: 14.68 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02954/0.4697, allocations: 14.47 MB / 419.3 MB, free: 0 / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006169/0.4759, allocations: 5.357 MB / 424.6 MB, free: 9.938 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007816/0.4838, allocations: 3.195 MB / 427.8 MB, free: 6.695 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.898e-05/0.4839, allocations: 51.86 kB / 427.9 MB, free: 6.637 MB / 334.1 MB Notification: Performance of pre-optimization done (n=138): time 5.33e-06/0.4839, allocations: 0 / 427.9 MB, free: 6.637 MB / 334.1 MB Notification: Performance of matching and sorting (n=143): time 0.01306/0.497, allocations: 5.758 MB / 433.6 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.337e-05/0.4971, allocations: 64.72 kB / 433.7 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00347/0.5005, allocations: 2.014 MB / 435.7 MB, free: 14.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001514/0.5007, allocations: 53.7 kB / 435.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001227/0.5019, allocations: 1.637 MB / 437.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004753/0.5024, allocations: 500 kB / 437.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.078e-05/0.5025, allocations: 40 kB / 437.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.5027, allocations: 385.8 kB / 438.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001221/0.504, allocations: 0.7457 MB / 439 MB, free: 11.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001601/0.5056, allocations: 1.364 MB / 440.4 MB, free: 9.605 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001478/0.5071, allocations: 0.9862 MB / 441.4 MB, free: 8.617 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.848e-06/0.5071, allocations: 4 kB / 441.4 MB, free: 8.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=242) (initialization): time 0.004258/0.5113, allocations: 2.58 MB / 444 MB, free: 5.996 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.967e-05/0.5114, allocations: 12 kB / 444 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.586e-05/0.5114, allocations: 22.41 kB / 444 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003804/0.5118, allocations: 146.4 kB / 444.1 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001652/0.5135, allocations: 483.6 kB / 444.6 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002445/0.5159, allocations: 3.104 MB / 447.7 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001787/0.5177, allocations: 115.7 kB / 447.8 MB, free: 1.863 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001419/0.5179, allocations: 80 kB / 447.9 MB, free: 1.785 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * 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 (235): * Single equations (assignments): 232 * 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.002323/0.5202, allocations: 1.052 MB / 449 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004954/0.5207, allocations: 217.3 kB / 449.2 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003773/0.5245, allocations: 2.289 MB / 451.5 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.246e-05/0.5245, allocations: 12 kB / 451.5 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.5245, allocations: 4 kB / 451.5 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.925e-05/0.5246, allocations: 15.92 kB / 451.5 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009118/0.5337, allocations: 5.406 MB / 456.9 MB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.144e-06/0.5337, allocations: 0 / 456.9 MB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001065/0.5348, allocations: 259.9 kB / 457.2 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006585/0.5355, allocations: 271.1 kB / 457.4 MB, free: 8.082 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.336e-05/0.5356, allocations: 35.98 kB / 457.5 MB, free: 8.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0071/0.5427, allocations: 7.146 MB / 464.6 MB, free: 376 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.5427, allocations: 4 kB / 464.6 MB, free: 372 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005786/0.5485, allocations: 3.531 MB / 468.1 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00146/0.55, allocations: 470.2 kB / 468.6 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002717/0.5503, allocations: 28 kB / 468.6 MB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000971/0.5513, allocations: 79.91 kB / 468.7 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002248/0.5515, allocations: 93.12 kB / 468.8 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.486e-05/0.5516, allocations: 51.98 kB / 468.8 MB, free: 11.91 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002313/0.5539, allocations: 1.348 MB / 470.2 MB, free: 10.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5539, allocations: 0 / 470.2 MB, free: 10.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002384/0.5563, allocations: 0.5703 MB / 470.8 MB, free: 9.977 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (123): * Single equations (assignments): 119 * 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%) 8,(1,100.0%) 1,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005559/0.5619, allocations: 4.836 MB / 475.6 MB, free: 4.988 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003312/0.5652, allocations: 2.178 MB / 477.8 MB, free: 2.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.5652, allocations: 0 / 477.8 MB, free: 2.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001923/0.5672, allocations: 1.42 MB / 479.2 MB, free: 1.301 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002563/0.5697, allocations: 0.5053 MB / 479.7 MB, free: 0.8008 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0422/0.6119, allocations: 31.35 MB / 0.4991 GB, free: 8 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002781/0.6148, allocations: 2.483 MB / 0.5015 GB, free: 13.49 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002086/0.6169, allocations: 0.4985 MB / 0.502 GB, free: 12.99 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001589/0.6185, allocations: 1.296 MB / 0.5032 GB, free: 11.7 MB / 430.1 MB Notification: Performance of SimCode: time 2.354e-06/0.6185, allocations: 0 / 0.5032 GB, free: 11.7 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3005/0.919, allocations: 49.91 MB / 0.552 GB, free: 146 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002351/0.9193, allocations: 249.7 kB / 0.5522 GB, free: 145.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.824/3.743, allocations: 0 / 0.5522 GB, free: 145.6 MB / 446.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