Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001145/0.001146, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.338/1.338, allocations: 205.2 MB / 219.8 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007524/0.0007523, allocations: 90.64 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.048e-05/3.05e-05, allocations: 4 kB / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08565/0.08572, allocations: 47.57 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3298/0.4156, allocations: 130.4 MB / 0.4888 GB, free: 11.84 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002604/0.4159, allocations: 87.2 kB / 0.4888 GB, free: 11.8 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4852/0.9011, allocations: 124.2 MB / 0.6101 GB, free: 74.89 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.9011, allocations: 0 / 0.6101 GB, free: 74.89 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004527/0.9016, allocations: 143.8 kB / 0.6103 GB, free: 74.75 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.0135/0.9151, allocations: 5.11 MB / 0.6152 GB, free: 69.57 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.9151, allocations: 12.03 kB / 0.6153 GB, free: 69.56 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002156/0.9173, allocations: 0.7249 MB / 0.616 GB, free: 68.83 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005159/0.9225, allocations: 1.015 MB / 0.617 GB, free: 67.8 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01096/0.9334, allocations: 4.589 MB / 0.6214 GB, free: 63.14 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003756/0.9339, allocations: 410.8 kB / 0.6218 GB, free: 62.74 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001393/0.9353, allocations: 0.5311 MB / 0.6223 GB, free: 62.21 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01227/0.9475, allocations: 6.823 MB / 0.629 GB, free: 55.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001831/0.9478, allocations: 11.84 kB / 0.629 GB, free: 55.17 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005397/0.9483, allocations: 228 kB / 0.6292 GB, free: 54.95 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001731/0.9485, allocations: 250.6 kB / 0.6295 GB, free: 54.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008911/0.9574, allocations: 5.423 MB / 0.6348 GB, free: 49.27 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03676/0.9942, allocations: 22.54 MB / 0.6568 GB, free: 26.15 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006958/1.001, allocations: 8.288 MB / 0.6649 GB, free: 16.97 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00284/1.004, allocations: 2.094 MB / 0.6669 GB, free: 14.87 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01045/1.015, allocations: 6.322 MB / 0.6731 GB, free: 8.406 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.51e-05/1.015, allocations: 56.56 kB / 0.6732 GB, free: 8.34 MB / 410.7 MB Notification: Performance of pre-optimization done (n=227): time 4.078e-06/1.015, allocations: 0 / 0.6732 GB, free: 8.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=254): time 0.02055/1.035, allocations: 10.07 MB / 0.683 GB, free: 14.21 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.311e-05/1.035, allocations: 77.41 kB / 0.6831 GB, free: 14.12 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006435/1.042, allocations: 2.729 MB / 0.6857 GB, free: 11.39 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002948/1.042, allocations: 65.7 kB / 0.6858 GB, free: 11.32 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002129/1.044, allocations: 2.487 MB / 0.6882 GB, free: 8.805 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008584/1.045, allocations: 0.8742 MB / 0.6891 GB, free: 7.918 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002398/1.045, allocations: 64 kB / 0.6891 GB, free: 7.855 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003771/1.046, allocations: 436.8 kB / 0.6895 GB, free: 7.422 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002248/1.048, allocations: 1.322 MB / 0.6908 GB, free: 6.098 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002807/1.051, allocations: 2.293 MB / 0.6931 GB, free: 3.375 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003088/1.054, allocations: 1.745 MB / 0.6948 GB, free: 1.605 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.079e-05/1.054, allocations: 8 kB / 0.6948 GB, free: 1.598 MB / 426.7 MB Notification: Performance of matching and sorting (n=415) (initialization): time 0.2456/1.3, allocations: 4.757 MB / 0.6994 GB, free: 82.75 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.901e-05/1.3, allocations: 17.84 kB / 0.6994 GB, free: 82.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001339/1.3, allocations: 31.09 kB / 0.6995 GB, free: 82.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002107/1.302, allocations: 0.7275 MB / 0.7002 GB, free: 82.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00312/1.305, allocations: 0.7607 MB / 0.7009 GB, free: 82.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009724/1.315, allocations: 9.765 MB / 0.7105 GB, free: 77.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003199/1.318, allocations: 204.4 kB / 0.7107 GB, free: 77.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003085/1.318, allocations: 141.6 kB / 0.7108 GB, free: 77.55 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (378): * Single equations (assignments): 372 * 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,72.2%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006317/1.319, allocations: 301.3 kB / 0.7111 GB, free: 77.44 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004919/1.319, allocations: 351 kB / 0.7114 GB, free: 77.44 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007501/1.327, allocations: 4.219 MB / 0.7155 GB, free: 76.99 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.69e-05/1.327, allocations: 25.19 kB / 0.7156 GB, free: 76.99 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.841e-05/1.327, allocations: 9.844 kB / 0.7156 GB, free: 76.99 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.191e-05/1.327, allocations: 12.89 kB / 0.7156 GB, free: 76.99 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01536/1.342, allocations: 9.201 MB / 0.7246 GB, free: 76.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/1.343, allocations: 3.719 kB / 0.7246 GB, free: 76.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001656/1.344, allocations: 412.7 kB / 0.725 GB, free: 76.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002199/1.346, allocations: 0.9627 MB / 0.7259 GB, free: 76.09 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001749/1.347, allocations: 65.58 kB / 0.726 GB, free: 76.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01347/1.36, allocations: 15.94 MB / 0.7415 GB, free: 67.05 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/1.36, allocations: 7.188 kB / 0.7415 GB, free: 67.05 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008573/1.369, allocations: 6.37 MB / 0.7478 GB, free: 64.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001781/1.37, allocations: 0.7221 MB / 0.7485 GB, free: 64.23 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004995/1.371, allocations: 58.58 kB / 0.7485 GB, free: 64.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001713/1.373, allocations: 162.6 kB / 0.7487 GB, free: 64.16 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004952/1.373, allocations: 190.4 kB / 0.7489 GB, free: 64.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001944/1.373, allocations: 74.31 kB / 0.7489 GB, free: 64.11 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00313/1.377, allocations: 2.061 MB / 0.7509 GB, free: 63.31 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.377, allocations: 2 kB / 0.7509 GB, free: 63.31 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003777/1.38, allocations: 1.087 MB / 0.752 GB, free: 63.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 190 * 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%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00885/1.389, allocations: 8.357 MB / 0.7602 GB, free: 58.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006613/1.396, allocations: 4.138 MB / 0.7642 GB, free: 56.66 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/1.396, allocations: 3.062 kB / 0.7642 GB, free: 56.66 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003956/1.4, allocations: 2.786 MB / 0.7669 GB, free: 55.16 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004313/1.404, allocations: 0.8767 MB / 0.7678 GB, free: 54.94 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01747/1.422, allocations: 9.638 MB / 0.7772 GB, free: 51.01 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003006/1.425, allocations: 3.531 MB / 0.7806 GB, free: 49.02 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003157/1.428, allocations: 0.8031 MB / 0.7814 GB, free: 48.46 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002979/1.431, allocations: 2.084 MB / 0.7835 GB, free: 46.52 MB / 426.7 MB Notification: Performance of SimCode: time 1.012e-06/1.431, allocations: 0 / 0.7835 GB, free: 46.52 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3611/1.792, allocations: 93.32 MB / 0.8746 GB, free: 90.23 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001497/1.792, allocations: 196.8 kB / 0.8748 GB, free: 90.01 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.254/6.047, allocations: 4 kB / 0.8748 GB, free: 90 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat