Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.00315/0.003149, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.219/2.219, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001129/0.001129, allocations: 85.66 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.616e-05/2.613e-05, allocations: 4 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3342/0.3342, allocations: 47.56 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2111/0.5454, allocations: 129.7 MB / 492.1 MB, free: 4.402 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003357/0.5458, allocations: 88.5 kB / 492.2 MB, free: 4.316 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7247/1.271, allocations: 122.6 MB / 0.6004 GB, free: 43.16 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.274e-06/1.271, allocations: 0 / 0.6004 GB, free: 43.16 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0006194/1.271, allocations: 142.7 kB / 0.6005 GB, free: 43.03 MB / 395.1 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.02095/1.292, allocations: 5.105 MB / 0.6055 GB, free: 37.86 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.533e-05/1.292, allocations: 12.03 kB / 0.6055 GB, free: 37.85 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007979/1.3, allocations: 1.012 MB / 0.6065 GB, free: 36.83 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01723/1.318, allocations: 4.595 MB / 0.611 GB, free: 32.18 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003604/1.318, allocations: 172 kB / 0.6112 GB, free: 32.02 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002242/1.32, allocations: 331.7 kB / 0.6115 GB, free: 31.69 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01605/1.336, allocations: 5.094 MB / 0.6164 GB, free: 26.59 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02094/1.357, allocations: 6.041 MB / 0.6223 GB, free: 20.36 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003024/1.358, allocations: 23.83 kB / 0.6224 GB, free: 20.33 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001559/1.359, allocations: 8 kB / 0.6224 GB, free: 20.32 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000302/1.36, allocations: 242.6 kB / 0.6226 GB, free: 20.09 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05677/1.416, allocations: 21.5 MB / 0.6436 GB, free: 14.02 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01369/1.43, allocations: 8.175 MB / 0.6516 GB, free: 4.961 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005517/1.436, allocations: 2.025 MB / 0.6536 GB, free: 2.934 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3276/1.763, allocations: 6.157 MB / 0.6596 GB, free: 65.65 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.078e-05/1.763, allocations: 62.92 kB / 0.6596 GB, free: 65.61 MB / 411.1 MB Notification: Performance of pre-optimization done (n=231): time 5.49e-06/1.763, allocations: 2.719 kB / 0.6596 GB, free: 65.61 MB / 411.1 MB Notification: Performance of matching and sorting (n=258): time 0.0286/1.792, allocations: 8.687 MB / 0.6681 GB, free: 64.45 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/1.792, allocations: 76.03 kB / 0.6682 GB, free: 64.38 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005713/1.798, allocations: 2.201 MB / 0.6703 GB, free: 64.15 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005809/1.798, allocations: 31.36 kB / 0.6704 GB, free: 64.12 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001997/1.8, allocations: 2.356 MB / 0.6727 GB, free: 63.2 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001241/1.802, allocations: 0.8518 MB / 0.6735 GB, free: 62.63 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003214/1.802, allocations: 0 / 0.6735 GB, free: 62.63 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0002434/1.802, allocations: 444.1 kB / 0.6739 GB, free: 62.32 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003186/1.806, allocations: 1.265 MB / 0.6752 GB, free: 62.31 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004127/1.81, allocations: 2.214 MB / 0.6773 GB, free: 61.18 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005301/1.815, allocations: 1.834 MB / 0.6791 GB, free: 61.14 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-05/1.815, allocations: 9.812 kB / 0.6791 GB, free: 61.14 MB / 411.1 MB Notification: Performance of matching and sorting (n=419) (initialization): time 0.01413/1.829, allocations: 4.371 MB / 0.6834 GB, free: 60.79 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.743e-05/1.829, allocations: 20.69 kB / 0.6834 GB, free: 60.79 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.251e-05/1.829, allocations: 31.09 kB / 0.6834 GB, free: 60.79 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003191/1.833, allocations: 0.712 MB / 0.6841 GB, free: 60.74 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006044/1.839, allocations: 0.7623 MB / 0.6849 GB, free: 60.74 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01447/1.853, allocations: 9.335 MB / 0.694 GB, free: 55.75 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004527/1.858, allocations: 139.8 kB / 0.6941 GB, free: 55.74 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009019/1.859, allocations: 143.2 kB / 0.6943 GB, free: 55.74 MB / 411.1 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 (382): * 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): 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.001094/1.86, allocations: 201 kB / 0.6945 GB, free: 55.61 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0121/1.872, allocations: 3.843 MB / 0.6982 GB, free: 55.05 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001517/1.874, allocations: 320.9 kB / 0.6985 GB, free: 54.89 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0135/1.887, allocations: 4.122 MB / 0.7025 GB, free: 54.43 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.263e-05/1.887, allocations: 30.67 kB / 0.7026 GB, free: 54.43 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-05/1.887, allocations: 7.781 kB / 0.7026 GB, free: 54.43 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.896e-05/1.887, allocations: 16.36 kB / 0.7026 GB, free: 54.43 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02691/1.914, allocations: 8.475 MB / 0.7109 GB, free: 53.01 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.166e-05/1.914, allocations: 3.719 kB / 0.7109 GB, free: 53.01 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003831/1.918, allocations: 425.9 kB / 0.7113 GB, free: 53 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004449/1.923, allocations: 0.9362 MB / 0.7122 GB, free: 52.73 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006417/1.923, allocations: 34.19 kB / 0.7122 GB, free: 52.72 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02096/1.944, allocations: 15.34 MB / 0.7272 GB, free: 41.04 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.368e-06/1.944, allocations: 7.484 kB / 0.7272 GB, free: 41.04 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01483/1.959, allocations: 6.302 MB / 0.7334 GB, free: 37.86 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002833/1.962, allocations: 0.6808 MB / 0.734 GB, free: 37.43 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001382/1.964, allocations: 17.77 kB / 0.7341 GB, free: 37.43 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003976/1.968, allocations: 127.7 kB / 0.7342 GB, free: 37.43 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001035/1.969, allocations: 185.3 kB / 0.7344 GB, free: 37.39 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005048/1.969, allocations: 80.02 kB / 0.7344 GB, free: 37.38 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.004745/1.974, allocations: 1.629 MB / 0.736 GB, free: 36.7 MB / 411.1 MB Notification: Performance of sort global known variables: time 9.62e-07/1.974, allocations: 3.281 kB / 0.736 GB, free: 36.7 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.006605/1.981, allocations: 0.9442 MB / 0.7369 GB, free: 36.68 MB / 411.1 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 (199): * Single equations (assignments): 192 * 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.01734/1.998, allocations: 8.17 MB / 0.7449 GB, free: 32.07 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.009501/2.008, allocations: 3.971 MB / 0.7488 GB, free: 30.22 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 1.247e-05/2.008, allocations: 3.719 kB / 0.7488 GB, free: 30.22 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007087/2.015, allocations: 2.681 MB / 0.7514 GB, free: 27.76 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006524/2.021, allocations: 0.6784 MB / 0.7521 GB, free: 27.26 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02977/2.051, allocations: 9.293 MB / 0.7612 GB, free: 19.15 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005634/2.057, allocations: 3.448 MB / 0.7645 GB, free: 16.54 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004735/2.062, allocations: 2.094 MB / 0.7666 GB, free: 14.61 MB / 411.1 MB Notification: Performance of SimCode: time 1.363e-06/2.062, allocations: 0 / 0.7666 GB, free: 14.61 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.743/7.805, allocations: 248.9 MB / 1.01 GB, free: 122.7 MB / 475.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat