Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_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.002327/0.002327, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.029/2.029, allocations: 205.2 MB / 219.4 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.001089/0.001089, allocations: 86.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.394e-05/3.421e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09697/0.09705, allocations: 47.57 MB / 369.2 MB, free: 2.098 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4878/0.5849, allocations: 125 MB / 494.2 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003262/0.5853, allocations: 90.14 kB / 494.3 MB, free: 0.5156 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9158/1.501, allocations: 116 MB / 0.596 GB, free: 86.48 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.285e-06/1.501, allocations: 0 / 0.596 GB, free: 86.48 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005453/1.502, allocations: 129.3 kB / 0.5961 GB, free: 86.46 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.02/1.522, allocations: 4.897 MB / 0.6009 GB, free: 82.68 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.81e-05/1.522, allocations: 8.031 kB / 0.6009 GB, free: 82.67 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002795/1.525, allocations: 0.6978 MB / 0.6016 GB, free: 81.96 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007396/1.532, allocations: 0.9517 MB / 0.6025 GB, free: 81 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01615/1.548, allocations: 4.404 MB / 0.6068 GB, free: 76.62 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004856/1.549, allocations: 386.1 kB / 0.6072 GB, free: 76.25 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002157/1.551, allocations: 0.5032 MB / 0.6077 GB, free: 75.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02161/1.573, allocations: 6.557 MB / 0.6141 GB, free: 69 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002289/1.573, allocations: 19.83 kB / 0.6141 GB, free: 68.98 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001229/1.574, allocations: 215.4 kB / 0.6143 GB, free: 68.77 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002778/1.574, allocations: 234.2 kB / 0.6145 GB, free: 68.54 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01714/1.592, allocations: 5.242 MB / 0.6196 GB, free: 63.29 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0599/1.652, allocations: 21.14 MB / 0.6403 GB, free: 41.83 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01252/1.664, allocations: 8.493 MB / 0.6486 GB, free: 32.39 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005502/1.67, allocations: 2.003 MB / 0.6505 GB, free: 30.38 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0188/1.689, allocations: 6.007 MB / 0.6564 GB, free: 24.3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.478e-05/1.689, allocations: 56.5 kB / 0.6564 GB, free: 24.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=208): time 4.829e-06/1.689, allocations: 0 / 0.6564 GB, free: 24.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=232): time 0.03211/1.721, allocations: 9.283 MB / 0.6655 GB, free: 14.88 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.076e-05/1.721, allocations: 73.41 kB / 0.6656 GB, free: 14.79 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006589/1.728, allocations: 2.504 MB / 0.668 GB, free: 12.28 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006023/1.728, allocations: 61.7 kB / 0.6681 GB, free: 12.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001897/1.73, allocations: 2.196 MB / 0.6702 GB, free: 10 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00122/1.731, allocations: 0.8029 MB / 0.671 GB, free: 9.207 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003352/1.732, allocations: 56 kB / 0.6711 GB, free: 9.152 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002201/1.732, allocations: 425 kB / 0.6715 GB, free: 8.727 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003492/1.735, allocations: 1.252 MB / 0.6727 GB, free: 7.473 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004157/1.74, allocations: 2.12 MB / 0.6748 GB, free: 4.965 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004394/1.744, allocations: 1.634 MB / 0.6764 GB, free: 3.305 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.823e-05/1.744, allocations: 8 kB / 0.6764 GB, free: 3.297 MB / 410.7 MB Notification: Performance of matching and sorting (n=379) (initialization): time 0.01287/1.757, allocations: 4.283 MB / 0.6805 GB, free: 14.93 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.239e-05/1.757, allocations: 16 kB / 0.6806 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.102e-05/1.757, allocations: 28 kB / 0.6806 GB, free: 14.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003414/1.761, allocations: 0.7146 MB / 0.6813 GB, free: 14.15 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005855/1.767, allocations: 0.6942 MB / 0.682 GB, free: 13.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01713/1.784, allocations: 9.38 MB / 0.6911 GB, free: 3.539 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004593/1.788, allocations: 191.7 kB / 0.6913 GB, free: 3.352 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008102/1.789, allocations: 132 kB / 0.6914 GB, free: 3.223 MB / 426.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,72.2%) 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.0008281/1.79, allocations: 284 kB / 0.6917 GB, free: 2.938 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001186/1.791, allocations: 316.2 kB / 0.692 GB, free: 2.625 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3352/2.127, allocations: 4.008 MB / 0.6959 GB, free: 91.44 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.383e-05/2.127, allocations: 22.41 kB / 0.6959 GB, free: 91.44 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.868e-05/2.127, allocations: 10 kB / 0.696 GB, free: 91.44 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.877e-05/2.127, allocations: 12.7 kB / 0.696 GB, free: 91.44 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03358/2.161, allocations: 8.635 MB / 0.7044 GB, free: 90.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.207e-05/2.161, allocations: 4.125 kB / 0.7044 GB, free: 90.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003717/2.164, allocations: 375.5 kB / 0.7048 GB, free: 90.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004777/2.169, allocations: 0.9463 MB / 0.7057 GB, free: 90.59 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000586/2.17, allocations: 65.75 kB / 0.7057 GB, free: 90.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02362/2.194, allocations: 15.45 MB / 0.7208 GB, free: 81.62 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/2.194, allocations: 6.219 kB / 0.7208 GB, free: 81.62 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01385/2.207, allocations: 5.904 MB / 0.7266 GB, free: 80.69 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002667/2.21, allocations: 0.6731 MB / 0.7273 GB, free: 80.59 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001082/2.211, allocations: 51.27 kB / 0.7273 GB, free: 80.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003641/2.215, allocations: 158.8 kB / 0.7275 GB, free: 80.59 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000894/2.216, allocations: 175.2 kB / 0.7276 GB, free: 80.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002807/2.216, allocations: 71.02 kB / 0.7277 GB, free: 80.59 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007534/2.224, allocations: 1.892 MB / 0.7295 GB, free: 80.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.332e-06/2.224, allocations: 0 / 0.7295 GB, free: 80.43 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007757/2.232, allocations: 1.015 MB / 0.7305 GB, free: 80.43 MB / 426.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,75.0%) 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.01851/2.25, allocations: 7.609 MB / 0.738 GB, free: 77.59 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01038/2.261, allocations: 3.948 MB / 0.7418 GB, free: 75.83 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.16e-05/2.261, allocations: 2.281 kB / 0.7418 GB, free: 75.83 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007345/2.268, allocations: 2.67 MB / 0.7444 GB, free: 74.38 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006828/2.275, allocations: 0.771 MB / 0.7452 GB, free: 74.18 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02969/2.305, allocations: 9.125 MB / 0.7541 GB, free: 70.57 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006233/2.311, allocations: 3.333 MB / 0.7573 GB, free: 69.32 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004812/2.316, allocations: 1.956 MB / 0.7593 GB, free: 67.71 MB / 426.7 MB Notification: Performance of SimCode: time 2.264e-06/2.316, allocations: 0 / 0.7593 GB, free: 67.71 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.373/7.689, allocations: 238.6 MB / 0.9922 GB, free: 12.6 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat