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.002302/0.002301, 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.107/2.107, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.001077/0.001077, allocations: 86.48 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.295e-05/3.292e-05, allocations: 7.984 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3627/0.3627, allocations: 47.56 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2108/0.5736, allocations: 124.4 MB / 486.8 MB, free: 9.734 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003138/0.574, allocations: 83.95 kB / 486.9 MB, free: 9.652 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6974/1.271, allocations: 114.5 MB / 0.5873 GB, free: 55.51 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.974e-06/1.271, allocations: 11.94 kB / 0.5873 GB, free: 55.5 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0005743/1.272, allocations: 127.8 kB / 0.5874 GB, free: 55.38 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.02032/1.292, allocations: 4.893 MB / 0.5922 GB, free: 50.41 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/1.292, allocations: 8.031 kB / 0.5922 GB, free: 50.41 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007305/1.3, allocations: 0.9495 MB / 0.5931 GB, free: 49.45 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01641/1.316, allocations: 4.397 MB / 0.5974 GB, free: 45.06 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003696/1.317, allocations: 172 kB / 0.5976 GB, free: 44.89 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002134/1.319, allocations: 311.8 kB / 0.5979 GB, free: 44.59 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01612/1.335, allocations: 4.925 MB / 0.6027 GB, free: 39.66 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02121/1.356, allocations: 5.815 MB / 0.6084 GB, free: 33.65 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003482/1.357, allocations: 11.91 kB / 0.6084 GB, free: 33.64 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001749/1.358, allocations: 7.938 kB / 0.6084 GB, free: 33.63 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002922/1.359, allocations: 230.2 kB / 0.6086 GB, free: 33.4 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05438/1.413, allocations: 20.15 MB / 0.6283 GB, free: 12.94 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01127/1.424, allocations: 8.394 MB / 0.6365 GB, free: 3.594 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004659/1.429, allocations: 1.923 MB / 0.6384 GB, free: 1.668 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02022/1.449, allocations: 5.868 MB / 0.6441 GB, free: 11.74 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.568e-05/1.45, allocations: 64.55 kB / 0.6442 GB, free: 11.66 MB / 411.1 MB Notification: Performance of pre-optimization done (n=212): time 5.11e-06/1.45, allocations: 0 / 0.6442 GB, free: 11.66 MB / 411.1 MB Notification: Performance of matching and sorting (n=236): time 0.0291/1.479, allocations: 8.194 MB / 0.6522 GB, free: 3.398 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.33e-05/1.479, allocations: 73.41 kB / 0.6522 GB, free: 3.316 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005507/1.484, allocations: 2.047 MB / 0.6542 GB, free: 1.262 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005851/1.485, allocations: 33.7 kB / 0.6543 GB, free: 1.223 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.3135/1.798, allocations: 2.215 MB / 0.6564 GB, free: 73.08 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001203/1.8, allocations: 0.7844 MB / 0.6572 GB, free: 72.79 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003289/1.8, allocations: 1.031 kB / 0.6572 GB, free: 72.79 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0002431/1.8, allocations: 427.2 kB / 0.6576 GB, free: 72.47 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002952/1.803, allocations: 1.195 MB / 0.6588 GB, free: 72.46 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00385/1.807, allocations: 2.059 MB / 0.6608 GB, free: 71.45 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004816/1.812, allocations: 1.699 MB / 0.6624 GB, free: 71.4 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-05/1.812, allocations: 9.344 kB / 0.6624 GB, free: 71.4 MB / 411.1 MB Notification: Performance of matching and sorting (n=383) (initialization): time 0.01228/1.824, allocations: 4.101 MB / 0.6664 GB, free: 71.07 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.997e-05/1.825, allocations: 14.88 kB / 0.6665 GB, free: 71.07 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.483e-05/1.825, allocations: 30.75 kB / 0.6665 GB, free: 71.07 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002762/1.827, allocations: 0.7035 MB / 0.6672 GB, free: 71.02 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005388/1.833, allocations: 0.7068 MB / 0.6679 GB, free: 71.02 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01253/1.845, allocations: 8.992 MB / 0.6766 GB, free: 66.09 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004206/1.85, allocations: 128.4 kB / 0.6768 GB, free: 66.09 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008267/1.851, allocations: 129.5 kB / 0.6769 GB, free: 66.09 MB / 411.1 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 (347): * Single equations (assignments): 341 * 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.0007076/1.851, allocations: 192.6 kB / 0.6771 GB, free: 65.98 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01104/1.862, allocations: 3.645 MB / 0.6806 GB, free: 65.48 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001465/1.864, allocations: 288.8 kB / 0.6809 GB, free: 65.33 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01338/1.877, allocations: 3.918 MB / 0.6847 GB, free: 64.92 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.005e-05/1.877, allocations: 27.25 kB / 0.6848 GB, free: 64.92 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.909e-05/1.877, allocations: 9.781 kB / 0.6848 GB, free: 64.92 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.321e-05/1.878, allocations: 12.67 kB / 0.6848 GB, free: 64.92 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02384/1.901, allocations: 7.936 MB / 0.6925 GB, free: 64.16 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.915e-05/1.901, allocations: 3.281 kB / 0.6925 GB, free: 64.16 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003667/1.905, allocations: 388.2 kB / 0.6929 GB, free: 64.16 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004369/1.91, allocations: 0.9143 MB / 0.6938 GB, free: 64.1 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005518/1.91, allocations: 41.56 kB / 0.6938 GB, free: 64.1 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02911/1.939, allocations: 14.87 MB / 0.7084 GB, free: 55.39 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-05/1.939, allocations: 4.875 kB / 0.7084 GB, free: 55.39 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01974/1.959, allocations: 5.844 MB / 0.7141 GB, free: 53.49 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003609/1.963, allocations: 0.6306 MB / 0.7147 GB, free: 53.09 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001874/1.965, allocations: 17.73 kB / 0.7147 GB, free: 53.09 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004941/1.97, allocations: 122.5 kB / 0.7148 GB, free: 53.09 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001316/1.971, allocations: 177.6 kB / 0.715 GB, free: 53.06 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006555/1.972, allocations: 71.55 kB / 0.7151 GB, free: 53.04 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.005548/1.977, allocations: 1.516 MB / 0.7165 GB, free: 52.4 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.002e-06/1.978, allocations: 0 / 0.7165 GB, free: 52.4 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.007982/1.986, allocations: 0.8887 MB / 0.7174 GB, free: 52.39 MB / 411.1 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 (180): * Single equations (assignments): 173 * 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.02114/2.007, allocations: 7.436 MB / 0.7247 GB, free: 48.38 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.01308/2.02, allocations: 3.779 MB / 0.7284 GB, free: 46.67 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 1.818e-05/2.02, allocations: 4.125 kB / 0.7284 GB, free: 46.67 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009198/2.029, allocations: 2.569 MB / 0.7309 GB, free: 45.28 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007351/2.037, allocations: 0.5772 MB / 0.7314 GB, free: 45.14 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03743/2.074, allocations: 8.885 MB / 0.7401 GB, free: 40.94 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006624/2.081, allocations: 3.331 MB / 0.7434 GB, free: 38.42 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004962/2.086, allocations: 1.954 MB / 0.7453 GB, free: 36.61 MB / 411.1 MB Notification: Performance of SimCode: time 1.322e-06/2.086, allocations: 4 kB / 0.7453 GB, free: 36.61 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.939/7.025, allocations: 234.9 MB / 0.9747 GB, free: 140 kB / 443.1 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