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.002145/0.002145, allocations: 176.5 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.579/1.579, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001041/0.001041, allocations: 74.72 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.453e-05/2.456e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08834/0.08839, allocations: 47.58 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4406/0.5291, allocations: 129.9 MB / 493.1 MB, free: 14.62 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003185/0.5295, allocations: 92.03 kB / 493.2 MB, free: 14.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5363/1.066, allocations: 122.5 MB / 0.6013 GB, free: 85 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.275e-06/1.066, allocations: 0 / 0.6013 GB, free: 85 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005436/1.066, allocations: 143.6 kB / 0.6014 GB, free: 84.86 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.01697/1.083, allocations: 5.102 MB / 0.6064 GB, free: 79.7 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.255e-05/1.083, allocations: 12.03 kB / 0.6064 GB, free: 79.68 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006199/1.09, allocations: 1.008 MB / 0.6074 GB, free: 78.67 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.011/1.101, allocations: 4.599 MB / 0.6119 GB, free: 74.08 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002431/1.101, allocations: 176 kB / 0.6121 GB, free: 73.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001584/1.103, allocations: 327.8 kB / 0.6124 GB, free: 73.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01014/1.113, allocations: 5.094 MB / 0.6174 GB, free: 68.49 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0145/1.127, allocations: 6.048 MB / 0.6233 GB, free: 62.25 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001685/1.127, allocations: 15.89 kB / 0.6233 GB, free: 62.23 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000575/1.128, allocations: 8 kB / 0.6233 GB, free: 62.22 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002162/1.128, allocations: 246.6 kB / 0.6235 GB, free: 61.98 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03681/1.165, allocations: 21.5 MB / 0.6445 GB, free: 40.11 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006821/1.172, allocations: 8.191 MB / 0.6525 GB, free: 31.04 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002801/1.175, allocations: 2.018 MB / 0.6545 GB, free: 29.02 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01062/1.186, allocations: 6.151 MB / 0.6605 GB, free: 22.8 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.763e-05/1.186, allocations: 60.59 kB / 0.6606 GB, free: 22.74 MB / 410.7 MB Notification: Performance of pre-optimization done (n=231): time 5.55e-06/1.186, allocations: 0 / 0.6606 GB, free: 22.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=258): time 0.01724/1.203, allocations: 8.701 MB / 0.6691 GB, free: 13.94 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.348e-05/1.203, allocations: 81.44 kB / 0.6691 GB, free: 13.84 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003908/1.207, allocations: 2.198 MB / 0.6713 GB, free: 11.64 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005705/1.207, allocations: 29.7 kB / 0.6713 GB, free: 11.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001267/1.209, allocations: 2.5 MB / 0.6738 GB, free: 9.07 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008328/1.21, allocations: 0.8467 MB / 0.6746 GB, free: 8.211 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001559/1.21, allocations: 0 / 0.6746 GB, free: 8.211 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001642/1.21, allocations: 440.8 kB / 0.675 GB, free: 7.773 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001633/1.212, allocations: 1.264 MB / 0.6762 GB, free: 6.508 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001905/1.213, allocations: 2.224 MB / 0.6784 GB, free: 3.855 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002521/1.216, allocations: 1.823 MB / 0.6802 GB, free: 2.012 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-05/1.216, allocations: 8 kB / 0.6802 GB, free: 2.004 MB / 410.7 MB Notification: Performance of matching and sorting (n=419) (initialization): time 0.3145/1.531, allocations: 4.549 MB / 0.6846 GB, free: 74.11 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.668e-05/1.531, allocations: 17.78 kB / 0.6847 GB, free: 74.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.391e-05/1.531, allocations: 29.78 kB / 0.6847 GB, free: 74.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002137/1.533, allocations: 0.7187 MB / 0.6854 GB, free: 74.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003652/1.537, allocations: 0.7625 MB / 0.6861 GB, free: 74.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01121/1.548, allocations: 9.342 MB / 0.6953 GB, free: 69.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003443/1.551, allocations: 137.5 kB / 0.6954 GB, free: 69.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006563/1.552, allocations: 143.9 kB / 0.6955 GB, free: 69.16 MB / 410.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 (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.0005829/1.553, allocations: 197.6 kB / 0.6957 GB, free: 69.06 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007672/1.56, allocations: 3.844 MB / 0.6995 GB, free: 68.66 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009746/1.561, allocations: 319.3 kB / 0.6998 GB, free: 68.66 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007123/1.568, allocations: 4.132 MB / 0.7038 GB, free: 68.22 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.03e-05/1.568, allocations: 26.95 kB / 0.7038 GB, free: 68.21 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.608e-05/1.569, allocations: 16.55 kB / 0.7038 GB, free: 68.21 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.576e-05/1.569, allocations: 9.891 kB / 0.7039 GB, free: 68.21 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01512/1.584, allocations: 8.472 MB / 0.7121 GB, free: 67.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.215e-05/1.584, allocations: 6.812 kB / 0.7121 GB, free: 67.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001745/1.585, allocations: 422.4 kB / 0.7125 GB, free: 67.42 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002226/1.588, allocations: 0.9462 MB / 0.7135 GB, free: 67.36 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002288/1.588, allocations: 37.39 kB / 0.7135 GB, free: 67.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01297/1.601, allocations: 15.32 MB / 0.7285 GB, free: 58.61 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.688e-06/1.601, allocations: 7.281 kB / 0.7285 GB, free: 58.61 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00913/1.61, allocations: 6.297 MB / 0.7346 GB, free: 55.96 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001994/1.612, allocations: 0.6792 MB / 0.7353 GB, free: 55.53 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005323/1.613, allocations: 19.66 kB / 0.7353 GB, free: 55.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001636/1.614, allocations: 126.4 kB / 0.7354 GB, free: 55.52 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004886/1.615, allocations: 194.7 kB / 0.7356 GB, free: 55.49 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001626/1.615, allocations: 74.59 kB / 0.7357 GB, free: 55.48 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002628/1.618, allocations: 1.621 MB / 0.7373 GB, free: 54.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.71e-07/1.618, allocations: 0 / 0.7373 GB, free: 54.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004726/1.622, allocations: 0.9505 MB / 0.7382 GB, free: 54.78 MB / 410.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 (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.00993/1.632, allocations: 8.174 MB / 0.7462 GB, free: 50.19 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006596/1.639, allocations: 3.973 MB / 0.75 GB, free: 48.4 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/1.639, allocations: 2.406 kB / 0.75 GB, free: 48.4 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003956/1.643, allocations: 2.682 MB / 0.7527 GB, free: 46.97 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00485/1.648, allocations: 0.6868 MB / 0.7533 GB, free: 46.81 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02089/1.669, allocations: 9.345 MB / 0.7625 GB, free: 42.12 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002927/1.672, allocations: 3.527 MB / 0.7659 GB, free: 39.46 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003103/1.675, allocations: 0.7696 MB / 0.7667 GB, free: 38.93 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002452/1.677, allocations: 2.076 MB / 0.7687 GB, free: 37.01 MB / 410.7 MB Notification: Performance of SimCode: time 8.32e-07/1.677, allocations: 0 / 0.7687 GB, free: 37.01 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1403/1.818, allocations: 79.07 MB / 0.8459 GB, free: 0.5352 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002019/1.818, allocations: 162.2 kB / 0.8461 GB, free: 352 kB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.524/6.342, allocations: 4.031 kB / 0.8461 GB, free: 348 kB / 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