Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 174.9 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 221.4 MB / 235.5 MB, free: 2.887 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000989/0.0009889, allocations: 90.77 kB / 286.5 MB, free: 180 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.137e-05/3.139e-05, allocations: 4 kB / 343.9 MB, free: 4.188 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1202, allocations: 50.42 MB / 394.4 MB, free: 1.734 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4659/0.5861, allocations: 126.2 MB / 0.5083 GB, free: 9.211 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002555/0.5864, allocations: 91.94 kB / 0.5084 GB, free: 9.121 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5721/1.159, allocations: 116.3 MB / 0.622 GB, free: 83.48 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.663e-06/1.159, allocations: 0 / 0.622 GB, free: 83.48 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004772/1.159, allocations: 135.8 kB / 0.6221 GB, free: 83.35 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01531/1.174, allocations: 4.909 MB / 0.6269 GB, free: 78.37 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/1.174, allocations: 12.03 kB / 0.6269 GB, free: 78.36 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00259/1.177, allocations: 0.6959 MB / 0.6276 GB, free: 77.65 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005695/1.183, allocations: 0.9495 MB / 0.6285 GB, free: 76.7 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01175/1.195, allocations: 4.406 MB / 0.6328 GB, free: 72.21 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003428/1.195, allocations: 386.3 kB / 0.6332 GB, free: 71.83 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002042/1.197, allocations: 0.5038 MB / 0.6337 GB, free: 71.33 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01618/1.213, allocations: 6.546 MB / 0.6401 GB, free: 64.58 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001772/1.213, allocations: 12.19 kB / 0.6401 GB, free: 64.57 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008688/1.214, allocations: 227.9 kB / 0.6403 GB, free: 64.35 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001945/1.214, allocations: 234.2 kB / 0.6405 GB, free: 64.12 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01226/1.227, allocations: 5.238 MB / 0.6456 GB, free: 58.87 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04115/1.268, allocations: 21.13 MB / 0.6663 GB, free: 37.25 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007999/1.276, allocations: 8.486 MB / 0.6746 GB, free: 27.81 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003207/1.279, allocations: 2.007 MB / 0.6765 GB, free: 25.79 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01035/1.29, allocations: 6.009 MB / 0.6824 GB, free: 19.64 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.126e-05/1.29, allocations: 56.56 kB / 0.6824 GB, free: 19.58 MB / 426.7 MB Notification: Performance of pre-optimization done (n=208): time 4.468e-06/1.29, allocations: 0 / 0.6824 GB, free: 19.58 MB / 426.7 MB Notification: Performance of matching and sorting (n=232): time 0.01988/1.31, allocations: 9.3 MB / 0.6915 GB, free: 10.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.086e-05/1.31, allocations: 73.41 kB / 0.6916 GB, free: 10.11 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004073/1.314, allocations: 2.504 MB / 0.694 GB, free: 7.598 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003921/1.314, allocations: 65.7 kB / 0.6941 GB, free: 7.527 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001211/1.315, allocations: 2.342 MB / 0.6964 GB, free: 5.16 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007777/1.316, allocations: 0.801 MB / 0.6972 GB, free: 4.348 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001461/1.316, allocations: 60 kB / 0.6972 GB, free: 4.289 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001868/1.317, allocations: 428.1 kB / 0.6976 GB, free: 3.863 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001691/1.318, allocations: 1.24 MB / 0.6988 GB, free: 2.621 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001968/1.32, allocations: 2.124 MB / 0.7009 GB, free: 108 kB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002516/1.323, allocations: 1.626 MB / 0.7025 GB, free: 14.45 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.676e-05/1.323, allocations: 12 kB / 0.7025 GB, free: 14.44 MB / 442.7 MB Notification: Performance of matching and sorting (n=379) (initialization): time 0.007874/1.331, allocations: 4.476 MB / 0.7069 GB, free: 9.875 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.93e-05/1.331, allocations: 16 kB / 0.7069 GB, free: 9.859 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.192e-05/1.331, allocations: 28 kB / 0.7069 GB, free: 9.832 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001785/1.333, allocations: 0.718 MB / 0.7076 GB, free: 9.098 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002802/1.335, allocations: 0.6903 MB / 0.7083 GB, free: 8.406 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3432/1.679, allocations: 9.371 MB / 0.7175 GB, free: 89.13 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003612/1.682, allocations: 188.9 kB / 0.7176 GB, free: 89.13 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000512/1.683, allocations: 126.9 kB / 0.7178 GB, free: 89.13 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (343): * Single equations (assignments): 337 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,75.0%) 22,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005753/1.683, allocations: 287.7 kB / 0.718 GB, free: 89.03 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008556/1.684, allocations: 319.4 kB / 0.7183 GB, free: 89.03 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007658/1.692, allocations: 4.014 MB / 0.7223 GB, free: 88.65 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.309e-05/1.692, allocations: 23.19 kB / 0.7223 GB, free: 88.65 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-05/1.692, allocations: 9.438 kB / 0.7223 GB, free: 88.65 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.359e-05/1.692, allocations: 14.06 kB / 0.7223 GB, free: 88.65 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01787/1.71, allocations: 8.633 MB / 0.7307 GB, free: 87.85 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-05/1.71, allocations: 4.562 kB / 0.7307 GB, free: 87.85 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001799/1.712, allocations: 381.5 kB / 0.7311 GB, free: 87.85 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002703/1.714, allocations: 0.9405 MB / 0.732 GB, free: 87.79 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002727/1.715, allocations: 66.33 kB / 0.7321 GB, free: 87.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01486/1.73, allocations: 15.48 MB / 0.7472 GB, free: 78.82 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/1.73, allocations: 10.03 kB / 0.7472 GB, free: 78.82 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008686/1.738, allocations: 5.905 MB / 0.753 GB, free: 77.89 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002488/1.741, allocations: 0.6798 MB / 0.7536 GB, free: 77.75 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009546/1.742, allocations: 50.98 kB / 0.7537 GB, free: 77.75 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002044/1.744, allocations: 154.5 kB / 0.7538 GB, free: 77.75 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005315/1.744, allocations: 173.5 kB / 0.754 GB, free: 77.74 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001622/1.745, allocations: 74.42 kB / 0.7541 GB, free: 77.74 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003379/1.748, allocations: 1.886 MB / 0.7559 GB, free: 77.58 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.51e-07/1.748, allocations: 1.422 kB / 0.7559 GB, free: 77.58 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004727/1.753, allocations: 1.016 MB / 0.7569 GB, free: 77.58 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 171 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 22,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009606/1.762, allocations: 7.621 MB / 0.7643 GB, free: 74.27 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006206/1.769, allocations: 3.941 MB / 0.7682 GB, free: 72.51 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.694e-06/1.769, allocations: 5.219 kB / 0.7682 GB, free: 72.51 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004231/1.773, allocations: 2.668 MB / 0.7708 GB, free: 71.05 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004373/1.777, allocations: 0.7788 MB / 0.7716 GB, free: 70.85 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02222/1.8, allocations: 9.17 MB / 0.7805 GB, free: 67.21 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003953/1.804, allocations: 3.403 MB / 0.7838 GB, free: 65.93 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003229/1.807, allocations: 0.7448 MB / 0.7846 GB, free: 65.84 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003153/1.81, allocations: 1.938 MB / 0.7865 GB, free: 64.23 MB / 442.7 MB Notification: Performance of SimCode: time 1.953e-06/1.81, allocations: 0 / 0.7865 GB, free: 64.23 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1304/1.941, allocations: 85.83 MB / 0.8703 GB, free: 12.45 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002193/1.941, allocations: 224.1 kB / 0.8705 GB, free: 12.21 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.065/7.006, allocations: 3.953 kB / 0.8705 GB, free: 12.21 MB / 458.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat