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.002252/0.002252, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.014/2.014, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.00111/0.00111, allocations: 90.64 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.756e-05/3.774e-05, allocations: 8 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1078, allocations: 47.58 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4889/0.5967, allocations: 108.7 MB / 477.9 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000327/0.5971, allocations: 86.14 kB / 478 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2244/0.8215, allocations: 49.95 MB / 0.5156 GB, free: 8 kB / 394.7 MB Notification: Performance of FrontEnd: time 3.396e-06/0.8216, allocations: 3.938 kB / 0.5156 GB, free: 4 kB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004442/0.822, allocations: 63.92 kB / 0.5157 GB, free: 15.94 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.009785/0.8318, allocations: 2.357 MB / 0.518 GB, free: 13.53 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.032e-05/0.8319, allocations: 12.03 kB / 0.518 GB, free: 13.52 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001379/0.8333, allocations: 328.7 kB / 0.5183 GB, free: 13.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001631/0.835, allocations: 320.5 kB / 0.5186 GB, free: 12.87 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007281/0.8423, allocations: 1.687 MB / 0.5202 GB, free: 11.12 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003793/0.8427, allocations: 168.4 kB / 0.5204 GB, free: 10.95 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0014/0.8441, allocations: 223.8 kB / 0.5206 GB, free: 10.73 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01344/0.8576, allocations: 2.822 MB / 0.5234 GB, free: 7.766 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001874/0.8578, allocations: 11.89 kB / 0.5234 GB, free: 7.754 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008512/0.8587, allocations: 92 kB / 0.5235 GB, free: 7.664 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002594/0.859, allocations: 104.3 kB / 0.5236 GB, free: 7.559 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01117/0.8702, allocations: 2.204 MB / 0.5257 GB, free: 5.34 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4302/1.3, allocations: 9.136 MB / 0.5346 GB, free: 96.34 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005967/1.306, allocations: 1.696 MB / 0.5363 GB, free: 95.73 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003678/1.31, allocations: 0.8055 MB / 0.5371 GB, free: 95.72 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007696/1.311, allocations: 217.1 kB / 0.5373 GB, free: 95.53 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.848e-05/1.311, allocations: 49.31 kB / 0.5373 GB, free: 95.49 MB / 410.7 MB Notification: Performance of pre-optimization done (n=108): time 6.161e-06/1.311, allocations: 0.9375 kB / 0.5373 GB, free: 95.49 MB / 410.7 MB Notification: Performance of matching and sorting (n=131): time 0.04207/1.353, allocations: 6.361 MB / 0.5436 GB, free: 94.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.481e-05/1.353, allocations: 69.02 kB / 0.5436 GB, free: 94.75 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005798/1.359, allocations: 1.333 MB / 0.5449 GB, free: 94.58 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005028/1.36, allocations: 49.08 kB / 0.545 GB, free: 94.55 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001549/1.361, allocations: 1.05 MB / 0.546 GB, free: 94.12 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001096/1.362, allocations: 460.6 kB / 0.5464 GB, free: 93.89 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002233/1.363, allocations: 33.19 kB / 0.5465 GB, free: 93.89 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002267/1.363, allocations: 372.2 kB / 0.5468 GB, free: 93.57 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003287/1.366, allocations: 0.7169 MB / 0.5475 GB, free: 93.57 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003657/1.37, allocations: 1.141 MB / 0.5486 GB, free: 93.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003646/1.374, allocations: 0.9117 MB / 0.5495 GB, free: 93.08 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.671e-05/1.374, allocations: 3.312 kB / 0.5495 GB, free: 93.08 MB / 410.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.01049/1.384, allocations: 2.493 MB / 0.552 GB, free: 92.95 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.013e-05/1.384, allocations: 15.66 kB / 0.552 GB, free: 92.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.169e-05/1.384, allocations: 15 kB / 0.552 GB, free: 92.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003837/1.388, allocations: 0.5941 MB / 0.5526 GB, free: 92.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004096/1.392, allocations: 357 kB / 0.5529 GB, free: 92.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01841/1.411, allocations: 6.671 MB / 0.5594 GB, free: 90.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003674/1.415, allocations: 120.3 kB / 0.5595 GB, free: 90.26 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002928/1.415, allocations: 66.59 kB / 0.5596 GB, free: 90.26 MB / 410.7 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 (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.0005931/1.415, allocations: 204 kB / 0.5598 GB, free: 90.14 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006551/1.416, allocations: 175.4 kB / 0.56 GB, free: 90.05 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007408/1.424, allocations: 2.338 MB / 0.5623 GB, free: 89.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.997e-05/1.424, allocations: 11 kB / 0.5623 GB, free: 89.18 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-05/1.424, allocations: 6.969 kB / 0.5623 GB, free: 89.18 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.833e-05/1.424, allocations: 7.406 kB / 0.5623 GB, free: 89.18 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01415/1.438, allocations: 4.904 MB / 0.5671 GB, free: 87.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.298e-05/1.438, allocations: 6.5 kB / 0.5671 GB, free: 87.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001962/1.44, allocations: 214 kB / 0.5673 GB, free: 87.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002984/1.443, allocations: 0.6459 MB / 0.5679 GB, free: 87.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002896/1.443, allocations: 34.8 kB / 0.5679 GB, free: 87.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0137/1.457, allocations: 8.388 MB / 0.5761 GB, free: 81.33 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/1.457, allocations: 3.062 kB / 0.5761 GB, free: 81.33 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008322/1.465, allocations: 3.538 MB / 0.5796 GB, free: 79.69 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001445/1.467, allocations: 413.9 kB / 0.58 GB, free: 79.42 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004809/1.467, allocations: 42.86 kB / 0.58 GB, free: 79.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001954/1.469, allocations: 93.34 kB / 0.5801 GB, free: 79.38 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003949/1.47, allocations: 105.2 kB / 0.5802 GB, free: 79.37 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001372/1.47, allocations: 45.98 kB / 0.5803 GB, free: 79.36 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0022/1.472, allocations: 1.02 MB / 0.5813 GB, free: 78.95 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.034e-06/1.472, allocations: 0 / 0.5813 GB, free: 78.95 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003051/1.475, allocations: 0.5548 MB / 0.5818 GB, free: 78.89 MB / 410.7 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 (103): * Single equations (assignments): 100 * 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.009251/1.484, allocations: 5.078 MB / 0.5868 GB, free: 75.98 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005579/1.49, allocations: 2.319 MB / 0.589 GB, free: 74.97 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.989e-06/1.49, allocations: 2.719 kB / 0.589 GB, free: 74.97 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004009/1.494, allocations: 1.497 MB / 0.5905 GB, free: 74.22 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00376/1.498, allocations: 445.7 kB / 0.5909 GB, free: 74.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01244/1.51, allocations: 4.511 MB / 0.5953 GB, free: 72.15 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00199/1.512, allocations: 1.9 MB / 0.5972 GB, free: 71.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001859/1.514, allocations: 0.8928 MB / 0.598 GB, free: 70.52 MB / 410.7 MB Notification: Performance of SimCode: time 1.322e-06/1.514, allocations: 3.625 kB / 0.598 GB, free: 70.52 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.815/5.329, allocations: 72.8 MB / 0.6691 GB, free: 6.707 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