Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_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.002105/0.002105, allocations: 178 kB / 8.362 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.063/2.063, 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.001305/0.001305, allocations: 90.16 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.546e-05/2.552e-05, allocations: 4 kB / 314.9 MB, free: 9.043 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3741/0.3742, allocations: 47.56 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1797/0.5539, allocations: 108.1 MB / 470.5 MB, free: 10.08 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003452/0.5543, allocations: 84.52 kB / 470.6 MB, free: 10 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.5069/1.061, allocations: 49.29 MB / 0.5077 GB, free: 98.81 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.675e-06/1.061, allocations: 1.031 kB / 0.5077 GB, free: 98.81 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003279/1.062, allocations: 60.41 kB / 0.5078 GB, free: 98.8 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.009449/1.071, allocations: 2.363 MB / 0.5101 GB, free: 97.85 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.607e-05/1.071, allocations: 12.22 kB / 0.5101 GB, free: 97.85 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002194/1.073, allocations: 318.9 kB / 0.5104 GB, free: 97.7 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006836/1.08, allocations: 1.686 MB / 0.512 GB, free: 97.26 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002037/1.081, allocations: 75.47 kB / 0.5121 GB, free: 97.26 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001042/1.082, allocations: 134.3 kB / 0.5122 GB, free: 97.26 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007563/1.089, allocations: 2.08 MB / 0.5143 GB, free: 97.24 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009648/1.099, allocations: 2.497 MB / 0.5167 GB, free: 96.89 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001306/1.099, allocations: 14.88 kB / 0.5167 GB, free: 96.88 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003621/1.1, allocations: 4.062 kB / 0.5167 GB, free: 96.88 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000181/1.1, allocations: 108.6 kB / 0.5168 GB, free: 96.87 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03022/1.13, allocations: 8.705 MB / 0.5253 GB, free: 94.27 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00488/1.135, allocations: 1.666 MB / 0.527 GB, free: 93.22 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002929/1.138, allocations: 0.7678 MB / 0.5277 GB, free: 92.95 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000723/1.139, allocations: 228 kB / 0.5279 GB, free: 92.76 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.779e-05/1.139, allocations: 43.44 kB / 0.528 GB, free: 92.71 MB / 395.1 MB Notification: Performance of pre-optimization done (n=110): time 7.144e-06/1.139, allocations: 0 / 0.528 GB, free: 92.71 MB / 395.1 MB Notification: Performance of matching and sorting (n=133): time 0.02324/1.162, allocations: 4.93 MB / 0.5328 GB, free: 90.71 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/1.162, allocations: 72.38 kB / 0.5329 GB, free: 90.64 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003815/1.166, allocations: 1.107 MB / 0.5339 GB, free: 90.18 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004327/1.166, allocations: 25.7 kB / 0.534 GB, free: 90.14 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001191/1.168, allocations: 1.065 MB / 0.535 GB, free: 89.27 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009661/1.169, allocations: 457.4 kB / 0.5354 GB, free: 88.92 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002188/1.169, allocations: 0 / 0.5354 GB, free: 88.92 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0002138/1.169, allocations: 372.9 kB / 0.5358 GB, free: 88.58 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002324/1.172, allocations: 0.6903 MB / 0.5365 GB, free: 88.32 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002791/1.174, allocations: 1.105 MB / 0.5375 GB, free: 87.55 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003075/1.178, allocations: 0.8803 MB / 0.5384 GB, free: 87.21 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.409e-05/1.178, allocations: 6.031 kB / 0.5384 GB, free: 87.21 MB / 395.1 MB Notification: Performance of matching and sorting (n=201) (initialization): time 0.009187/1.187, allocations: 2.349 MB / 0.5407 GB, free: 86.4 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.121e-05/1.187, allocations: 10.77 kB / 0.5407 GB, free: 86.4 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.032e-05/1.187, allocations: 14.03 kB / 0.5407 GB, free: 86.4 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003339/1.19, allocations: 0.5842 MB / 0.5413 GB, free: 86.24 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003493/1.194, allocations: 361.1 kB / 0.5416 GB, free: 86.21 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01531/1.209, allocations: 6.389 MB / 0.5479 GB, free: 82.1 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003393/1.213, allocations: 82.45 kB / 0.548 GB, free: 82.1 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005531/1.213, allocations: 77.09 kB / 0.548 GB, free: 82.08 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,72.2%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005472/1.214, allocations: 146.8 kB / 0.5482 GB, free: 81.93 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008528/1.222, allocations: 2.067 MB / 0.5502 GB, free: 81.17 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000991/1.224, allocations: 157.5 kB / 0.5503 GB, free: 81.09 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009173/1.233, allocations: 2.214 MB / 0.5525 GB, free: 80.26 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.523e-05/1.233, allocations: 13.16 kB / 0.5525 GB, free: 80.26 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.213e-05/1.233, allocations: 5.781 kB / 0.5525 GB, free: 80.26 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.472e-05/1.233, allocations: 7.094 kB / 0.5525 GB, free: 80.26 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01776/1.251, allocations: 4.528 MB / 0.5569 GB, free: 78.4 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.682e-05/1.251, allocations: 6.328 kB / 0.557 GB, free: 78.4 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002665/1.253, allocations: 227.3 kB / 0.5572 GB, free: 78.38 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004152/1.258, allocations: 0.6301 MB / 0.5578 GB, free: 77.88 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003864/1.258, allocations: 14 kB / 0.5578 GB, free: 77.87 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01887/1.277, allocations: 8.075 MB / 0.5657 GB, free: 70.21 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.175e-05/1.277, allocations: 4 kB / 0.5657 GB, free: 70.21 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01127/1.288, allocations: 3.439 MB / 0.569 GB, free: 67.04 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002033/1.291, allocations: 401.5 kB / 0.5694 GB, free: 66.66 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008146/1.291, allocations: 13.39 kB / 0.5694 GB, free: 66.66 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002902/1.294, allocations: 76.17 kB / 0.5695 GB, free: 66.61 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006442/1.295, allocations: 109.5 kB / 0.5696 GB, free: 66.54 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002152/1.295, allocations: 39.61 kB / 0.5697 GB, free: 66.51 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.002801/1.298, allocations: 0.8318 MB / 0.5705 GB, free: 65.75 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.022e-06/1.298, allocations: 0 / 0.5705 GB, free: 65.75 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.004441/1.303, allocations: 495.3 kB / 0.5709 GB, free: 65.27 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 101 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 23,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0116/1.314, allocations: 4.948 MB / 0.5758 GB, free: 60.68 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.007835/1.322, allocations: 2.231 MB / 0.578 GB, free: 58.61 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.636e-05/1.322, allocations: 0 / 0.578 GB, free: 58.61 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005633/1.328, allocations: 1.456 MB / 0.5794 GB, free: 57.27 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004526/1.332, allocations: 349.3 kB / 0.5797 GB, free: 57.01 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01823/1.351, allocations: 4.39 MB / 0.584 GB, free: 53.14 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003519/1.354, allocations: 1.895 MB / 0.5858 GB, free: 51.61 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003001/1.357, allocations: 0.8931 MB / 0.5867 GB, free: 50.79 MB / 395.1 MB Notification: Performance of SimCode: time 2.184e-06/1.358, allocations: 0 / 0.5867 GB, free: 50.79 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.999/5.357, allocations: 71.26 MB / 0.6563 GB, free: 100.7 MB / 411.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat