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.001528/0.001528, allocations: 186.3 kB / 16.4 MB, free: 5.699 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.986/1.986, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001223/0.001223, allocations: 93.25 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003974/0.0003975, allocations: 8 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.3318, allocations: 47.56 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1799/0.5117, allocations: 108.8 MB / 483.5 MB, free: 3.746 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003171/0.5121, allocations: 91.94 kB / 483.6 MB, free: 3.656 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4815/0.9937, allocations: 49.9 MB / 0.521 GB, free: 94.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.076e-06/0.9937, allocations: 0 / 0.521 GB, free: 94.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002788/0.994, allocations: 68.69 kB / 0.521 GB, free: 94.05 MB / 378.7 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.01045/1.004, allocations: 2.624 MB / 0.5236 GB, free: 92.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/1.005, allocations: 12.03 kB / 0.5236 GB, free: 92.12 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001429/1.006, allocations: 328.7 kB / 0.5239 GB, free: 91.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001899/1.008, allocations: 320.5 kB / 0.5242 GB, free: 91.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006374/1.014, allocations: 1.704 MB / 0.5259 GB, free: 89.74 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000218/1.015, allocations: 164.3 kB / 0.526 GB, free: 89.58 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009546/1.016, allocations: 239.8 kB / 0.5263 GB, free: 89.35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009061/1.025, allocations: 2.887 MB / 0.5291 GB, free: 86.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001334/1.025, allocations: 8 kB / 0.5291 GB, free: 86.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003871/1.025, allocations: 95.91 kB / 0.5292 GB, free: 86.22 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001421/1.025, allocations: 104.3 kB / 0.5293 GB, free: 86.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007884/1.033, allocations: 2.324 MB / 0.5315 GB, free: 83.77 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0246/1.058, allocations: 9.132 MB / 0.5405 GB, free: 74.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003997/1.062, allocations: 1.775 MB / 0.5422 GB, free: 72.54 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004987/1.063, allocations: 219.1 kB / 0.5424 GB, free: 72.29 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.134e-05/1.063, allocations: 43.56 kB / 0.5424 GB, free: 72.24 MB / 378.7 MB Notification: Performance of pre-optimization done (n=108): time 3.417e-06/1.063, allocations: 0 / 0.5424 GB, free: 72.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=131): time 0.02998/1.093, allocations: 7.628 MB / 0.5499 GB, free: 64.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.825e-05/1.093, allocations: 64.72 kB / 0.55 GB, free: 64.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003252/1.096, allocations: 1.346 MB / 0.5513 GB, free: 63.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003401/1.096, allocations: 53.7 kB / 0.5513 GB, free: 63.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007899/1.097, allocations: 1.046 MB / 0.5523 GB, free: 61.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006519/1.098, allocations: 465.1 kB / 0.5528 GB, free: 61.51 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002342/1.098, allocations: 36 kB / 0.5528 GB, free: 61.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001695/1.098, allocations: 370.8 kB / 0.5532 GB, free: 61.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002194/1.101, allocations: 0.773 MB / 0.5539 GB, free: 60.33 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0024/1.103, allocations: 1.191 MB / 0.5551 GB, free: 58.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002564/1.106, allocations: 0.9628 MB / 0.556 GB, free: 58 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.28e-05/1.106, allocations: 4 kB / 0.556 GB, free: 58 MB / 378.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.007462/1.113, allocations: 2.615 MB / 0.5586 GB, free: 55.37 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.317e-05/1.113, allocations: 12.06 kB / 0.5586 GB, free: 55.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.936e-05/1.113, allocations: 12 kB / 0.5586 GB, free: 55.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002468/1.116, allocations: 0.5885 MB / 0.5592 GB, free: 54.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002672/1.118, allocations: 359.5 kB / 0.5595 GB, free: 54.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0122/1.131, allocations: 6.925 MB / 0.5663 GB, free: 47.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002549/1.133, allocations: 127.8 kB / 0.5664 GB, free: 47.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003462/1.134, allocations: 60 kB / 0.5665 GB, free: 47.02 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 166 * 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.002053/1.136, allocations: 0.7281 MB / 0.5672 GB, free: 46.28 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005721/1.136, allocations: 177.7 kB / 0.5674 GB, free: 46.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007221/1.144, allocations: 2.45 MB / 0.5698 GB, free: 43.63 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.022e-05/1.144, allocations: 15.94 kB / 0.5698 GB, free: 43.62 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.671e-05/1.144, allocations: 8 kB / 0.5698 GB, free: 43.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.944e-05/1.144, allocations: 7.969 kB / 0.5698 GB, free: 43.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01488/1.159, allocations: 4.996 MB / 0.5747 GB, free: 38.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.865e-05/1.159, allocations: 7.984 kB / 0.5747 GB, free: 38.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00193/1.161, allocations: 215.8 kB / 0.5749 GB, free: 38.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003073/1.164, allocations: 0.6543 MB / 0.5755 GB, free: 37.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003189/1.164, allocations: 31.98 kB / 0.5755 GB, free: 37.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01483/1.179, allocations: 8.643 MB / 0.584 GB, free: 28.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/1.179, allocations: 3.938 kB / 0.584 GB, free: 28.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009588/1.189, allocations: 3.667 MB / 0.5876 GB, free: 24.79 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001473/1.19, allocations: 418.8 kB / 0.588 GB, free: 24.36 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005751/1.191, allocations: 35.94 kB / 0.588 GB, free: 24.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002107/1.193, allocations: 91.89 kB / 0.5881 GB, free: 24.23 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004934/1.193, allocations: 113 kB / 0.5882 GB, free: 24.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001444/1.194, allocations: 39.98 kB / 0.5882 GB, free: 24.08 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002379/1.196, allocations: 1.035 MB / 0.5892 GB, free: 23.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.196, allocations: 0 / 0.5892 GB, free: 23.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003069/1.199, allocations: 0.5469 MB / 0.5898 GB, free: 22.5 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 99 * 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.01093/1.21, allocations: 5.062 MB / 0.5947 GB, free: 17.38 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006947/1.217, allocations: 2.452 MB / 0.5971 GB, free: 14.88 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.105e-05/1.217, allocations: 4.062 kB / 0.5971 GB, free: 14.88 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00454/1.222, allocations: 1.565 MB / 0.5987 GB, free: 13.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003723/1.225, allocations: 431 kB / 0.5991 GB, free: 12.85 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04388/1.269, allocations: 23.08 MB / 0.6216 GB, free: 4.852 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003401/1.273, allocations: 1.902 MB / 0.6235 GB, free: 2.918 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002642/1.276, allocations: 0.8898 MB / 0.6243 GB, free: 2.027 MB / 394.7 MB Notification: Performance of SimCode: time 1.854e-06/1.276, allocations: 0 / 0.6243 GB, free: 2.027 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.156/5.431, allocations: 72.89 MB / 0.6955 GB, free: 84.49 MB / 410.7 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