Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001584/0.001584, allocations: 177.7 kB / 8.697 MB, free: 388 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.506/1.506, allocations: 205.3 MB / 214.4 MB, free: 1.73 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.0009491/0.0009491, allocations: 86.36 kB / 262.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.836e-05/1.837e-05, allocations: 4 kB / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08794/0.08798, allocations: 47.59 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3703/0.4583, allocations: 124.6 MB / 487.8 MB, free: 3.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003278/0.4587, allocations: 85.14 kB / 487.9 MB, free: 3.477 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4781/0.9368, allocations: 114.5 MB / 0.5882 GB, free: 89.83 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.9369, allocations: 0 / 0.5882 GB, free: 89.83 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004727/0.9374, allocations: 133.1 kB / 0.5884 GB, free: 89.8 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.0144/0.9518, allocations: 4.893 MB / 0.5931 GB, free: 87.51 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.9518, allocations: 15.28 kB / 0.5932 GB, free: 87.5 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005399/0.9572, allocations: 0.9523 MB / 0.5941 GB, free: 87.14 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01049/0.9678, allocations: 4.391 MB / 0.5984 GB, free: 84.96 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002263/0.968, allocations: 165.6 kB / 0.5985 GB, free: 84.96 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001378/0.9694, allocations: 312.8 kB / 0.5988 GB, free: 84.95 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01005/0.9795, allocations: 4.926 MB / 0.6036 GB, free: 81.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01576/0.9953, allocations: 5.813 MB / 0.6093 GB, free: 75.81 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002417/0.9956, allocations: 11.89 kB / 0.6093 GB, free: 75.8 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001034/0.9966, allocations: 7.953 kB / 0.6093 GB, free: 75.79 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001923/0.9968, allocations: 238.2 kB / 0.6096 GB, free: 75.56 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03568/1.033, allocations: 20.16 MB / 0.6292 GB, free: 55.09 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006435/1.039, allocations: 8.401 MB / 0.6375 GB, free: 45.75 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002699/1.042, allocations: 1.915 MB / 0.6393 GB, free: 43.83 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009601/1.051, allocations: 5.879 MB / 0.6451 GB, free: 37.89 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.747e-05/1.051, allocations: 60.56 kB / 0.6451 GB, free: 37.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=212): time 5.62e-06/1.051, allocations: 0 / 0.6451 GB, free: 37.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=236): time 0.01453/1.066, allocations: 8.179 MB / 0.6531 GB, free: 29.57 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.058e-05/1.066, allocations: 77.41 kB / 0.6532 GB, free: 29.48 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003105/1.069, allocations: 2.047 MB / 0.6552 GB, free: 27.43 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004189/1.07, allocations: 25.7 kB / 0.6552 GB, free: 27.39 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001044/1.071, allocations: 2.343 MB / 0.6575 GB, free: 25.02 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006267/1.071, allocations: 0.7775 MB / 0.6583 GB, free: 24.23 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/1.071, allocations: 0 / 0.6583 GB, free: 24.23 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/1.072, allocations: 428.2 kB / 0.6587 GB, free: 23.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001468/1.073, allocations: 1.197 MB / 0.6598 GB, free: 22.61 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001737/1.075, allocations: 2.069 MB / 0.6619 GB, free: 20.15 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002304/1.077, allocations: 1.689 MB / 0.6635 GB, free: 18.44 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.53e-05/1.077, allocations: 8 kB / 0.6635 GB, free: 18.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=383) (initialization): time 0.006261/1.083, allocations: 4.278 MB / 0.6677 GB, free: 14.06 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.379e-05/1.084, allocations: 16 kB / 0.6677 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.23e-05/1.084, allocations: 28 kB / 0.6677 GB, free: 14.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001472/1.085, allocations: 0.7033 MB / 0.6684 GB, free: 13.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002639/1.088, allocations: 0.6981 MB / 0.6691 GB, free: 12.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007047/1.095, allocations: 9.001 MB / 0.6779 GB, free: 3.137 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002709/1.098, allocations: 127.7 kB / 0.678 GB, free: 3.012 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003998/1.098, allocations: 132 kB / 0.6781 GB, free: 2.883 MB / 410.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 (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.000466/1.098, allocations: 192 kB / 0.6783 GB, free: 2.688 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.2697/1.368, allocations: 3.633 MB / 0.6819 GB, free: 79.15 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001297/1.369, allocations: 293.6 kB / 0.6821 GB, free: 79.15 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01022/1.38, allocations: 3.908 MB / 0.686 GB, free: 78.77 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.39e-05/1.38, allocations: 24.62 kB / 0.686 GB, free: 78.77 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.236e-05/1.38, allocations: 10.25 kB / 0.686 GB, free: 78.77 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.278e-05/1.38, allocations: 16.73 kB / 0.686 GB, free: 78.77 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01832/1.398, allocations: 7.948 MB / 0.6938 GB, free: 78.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.421e-05/1.398, allocations: 0 / 0.6938 GB, free: 78.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001949/1.4, allocations: 395.7 kB / 0.6941 GB, free: 78.03 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002848/1.403, allocations: 0.9147 MB / 0.695 GB, free: 77.97 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004251/1.404, allocations: 34 kB / 0.6951 GB, free: 77.97 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01371/1.417, allocations: 14.86 MB / 0.7096 GB, free: 69.46 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.995e-06/1.417, allocations: 8.266 kB / 0.7096 GB, free: 69.46 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009306/1.427, allocations: 5.847 MB / 0.7153 GB, free: 68.58 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002068/1.429, allocations: 0.6343 MB / 0.7159 GB, free: 68.48 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005562/1.429, allocations: 17.23 kB / 0.7159 GB, free: 68.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001718/1.431, allocations: 121.1 kB / 0.7161 GB, free: 68.48 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004946/1.432, allocations: 178 kB / 0.7162 GB, free: 68.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001569/1.432, allocations: 68.62 kB / 0.7163 GB, free: 68.48 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002599/1.434, allocations: 1.506 MB / 0.7178 GB, free: 68.34 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.9e-07/1.434, allocations: 0 / 0.7178 GB, free: 68.34 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00467/1.439, allocations: 0.8923 MB / 0.7186 GB, free: 68.34 MB / 410.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 (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.0101/1.449, allocations: 7.446 MB / 0.7259 GB, free: 64.85 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005909/1.455, allocations: 3.779 MB / 0.7296 GB, free: 63.14 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.064e-05/1.455, allocations: 3.719 kB / 0.7296 GB, free: 63.14 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003979/1.459, allocations: 2.564 MB / 0.7321 GB, free: 61.75 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004127/1.463, allocations: 0.5843 MB / 0.7327 GB, free: 61.61 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02146/1.485, allocations: 8.944 MB / 0.7414 GB, free: 58.09 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003052/1.488, allocations: 3.406 MB / 0.7447 GB, free: 56.81 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002913/1.491, allocations: 0.7198 MB / 0.7454 GB, free: 56.73 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00271/1.494, allocations: 1.937 MB / 0.7473 GB, free: 55.12 MB / 410.7 MB Notification: Performance of SimCode: time 1.162e-06/1.494, allocations: 0 / 0.7473 GB, free: 55.12 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1185/1.612, allocations: 72.85 MB / 0.8185 GB, free: 14.26 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002438/1.612, allocations: 168.9 kB / 0.8186 GB, free: 14.06 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.223/5.835, allocations: 3.938 kB / 0.8186 GB, free: 14.05 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter.fmu > Modelica_3.2.3_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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat