Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00183/0.00183, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 221.3 MB / 235.5 MB, free: 2.957 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 83.83 kB / 286.5 MB, free: 248 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.537e-05/3.538e-05, allocations: 4 kB / 343.9 MB, free: 4.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09774/0.0978, allocations: 50.42 MB / 394.4 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3656/0.4635, allocations: 105.7 MB / 0.4883 GB, free: 13.75 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002091/0.4637, allocations: 85.83 kB / 0.4884 GB, free: 13.67 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1215/0.5853, allocations: 46.32 MB / 0.5336 GB, free: 15.05 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5853, allocations: 0 / 0.5336 GB, free: 15.05 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001687/0.5855, allocations: 63.88 kB / 0.5337 GB, free: 14.99 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.00494/0.5904, allocations: 2.263 MB / 0.5359 GB, free: 12.67 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.5905, allocations: 8.031 kB / 0.5359 GB, free: 12.66 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005528/0.591, allocations: 312 kB / 0.5362 GB, free: 12.35 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008189/0.5919, allocations: 300.7 kB / 0.5365 GB, free: 12.05 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003229/0.5951, allocations: 1.592 MB / 0.538 GB, free: 10.4 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001347/0.5953, allocations: 164.2 kB / 0.5382 GB, free: 10.23 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003285/0.5956, allocations: 208 kB / 0.5384 GB, free: 10.03 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004528/0.6001, allocations: 2.704 MB / 0.541 GB, free: 7.184 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.691e-05/0.6002, allocations: 11.89 kB / 0.541 GB, free: 7.172 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001989/0.6004, allocations: 91.98 kB / 0.5411 GB, free: 7.082 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001048/0.6005, allocations: 96.19 kB / 0.5412 GB, free: 6.984 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003466/0.604, allocations: 2.129 MB / 0.5433 GB, free: 4.84 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2778/0.8818, allocations: 8.604 MB / 0.5517 GB, free: 101 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002594/0.8845, allocations: 1.694 MB / 0.5534 GB, free: 100.4 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001318/0.8858, allocations: 0.7778 MB / 0.5541 GB, free: 100.4 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003771/0.8862, allocations: 223.3 kB / 0.5543 GB, free: 100.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.8863, allocations: 45 kB / 0.5544 GB, free: 100.2 MB / 426.7 MB Notification: Performance of pre-optimization done (n=104): time 3.737e-06/0.8863, allocations: 3.75 kB / 0.5544 GB, free: 100.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=126): time 0.01625/0.9025, allocations: 5.975 MB / 0.5602 GB, free: 99.52 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.9026, allocations: 66.16 kB / 0.5603 GB, free: 99.46 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002485/0.9051, allocations: 1.238 MB / 0.5615 GB, free: 99.29 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001865/0.9053, allocations: 45.73 kB / 0.5615 GB, free: 99.26 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007947/0.9061, allocations: 1.032 MB / 0.5625 GB, free: 98.91 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004076/0.9066, allocations: 439.9 kB / 0.563 GB, free: 98.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.154e-05/0.9066, allocations: 27.75 kB / 0.563 GB, free: 98.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.9068, allocations: 365.9 kB / 0.5633 GB, free: 98.39 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001126/0.9079, allocations: 0.6993 MB / 0.564 GB, free: 98.39 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00129/0.9092, allocations: 1.066 MB / 0.5651 GB, free: 97.98 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001361/0.9106, allocations: 0.8785 MB / 0.5659 GB, free: 97.96 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.269e-05/0.9106, allocations: 4.281 kB / 0.5659 GB, free: 97.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.004961/0.9156, allocations: 2.507 MB / 0.5684 GB, free: 97.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.399e-05/0.9156, allocations: 11.47 kB / 0.5684 GB, free: 97.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.866e-05/0.9157, allocations: 11.19 kB / 0.5684 GB, free: 97.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001778/0.9175, allocations: 0.5756 MB / 0.5689 GB, free: 97.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001411/0.9189, allocations: 343.1 kB / 0.5693 GB, free: 97.74 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007101/0.926, allocations: 6.329 MB / 0.5755 GB, free: 94.81 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001874/0.9279, allocations: 115.5 kB / 0.5756 GB, free: 94.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002083/0.9282, allocations: 62.11 kB / 0.5756 GB, free: 94.77 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 155 * 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%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003317/0.9285, allocations: 185.9 kB / 0.5758 GB, free: 94.63 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003529/0.9289, allocations: 159 kB / 0.576 GB, free: 94.55 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003743/0.9326, allocations: 2.297 MB / 0.5782 GB, free: 93.68 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.169e-05/0.9327, allocations: 11.72 kB / 0.5782 GB, free: 93.68 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.9327, allocations: 7.875 kB / 0.5782 GB, free: 93.68 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.9327, allocations: 7.781 kB / 0.5782 GB, free: 93.68 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007522/0.9402, allocations: 4.729 MB / 0.5828 GB, free: 91.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.704e-06/0.9403, allocations: 0 / 0.5828 GB, free: 91.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008776/0.9412, allocations: 218.1 kB / 0.583 GB, free: 91.81 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001556/0.9427, allocations: 0.6274 MB / 0.5837 GB, free: 91.65 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001185/0.9429, allocations: 31.48 kB / 0.5837 GB, free: 91.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007657/0.9505, allocations: 8.052 MB / 0.5916 GB, free: 86.12 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.9506, allocations: 7 kB / 0.5916 GB, free: 86.12 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004914/0.9555, allocations: 3.424 MB / 0.5949 GB, free: 84.53 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001168/0.9567, allocations: 396.9 kB / 0.5953 GB, free: 84.28 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002428/0.957, allocations: 37.39 kB / 0.5953 GB, free: 84.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009136/0.9579, allocations: 100.5 kB / 0.5954 GB, free: 84.24 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003001/0.9582, allocations: 97.72 kB / 0.5955 GB, free: 84.22 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.344e-05/0.9583, allocations: 39.8 kB / 0.5955 GB, free: 84.21 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001476/0.9598, allocations: 0.9437 MB / 0.5965 GB, free: 83.83 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.9598, allocations: 3.562 kB / 0.5965 GB, free: 83.83 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002161/0.962, allocations: 0.5165 MB / 0.597 GB, free: 83.78 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 96 * 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,75.0%) 22,(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.005503/0.9675, allocations: 4.855 MB / 0.6017 GB, free: 81 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003701/0.9712, allocations: 2.259 MB / 0.6039 GB, free: 80.02 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.767e-06/0.9713, allocations: 3.719 kB / 0.6039 GB, free: 80.02 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002213/0.9735, allocations: 1.477 MB / 0.6054 GB, free: 79.28 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002268/0.9758, allocations: 377.8 kB / 0.6057 GB, free: 79.18 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009742/0.9856, allocations: 4.285 MB / 0.6099 GB, free: 77.36 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001993/0.9876, allocations: 1.874 MB / 0.6117 GB, free: 76.44 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001663/0.9893, allocations: 353.9 kB / 0.6121 GB, free: 76.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001201/0.9905, allocations: 0.8237 MB / 0.6129 GB, free: 75.74 MB / 426.7 MB Notification: Performance of SimCode: time 2.865e-06/0.9905, allocations: 3.094 kB / 0.6129 GB, free: 75.74 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07129/1.062, allocations: 44.42 MB / 0.6563 GB, free: 41.89 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001397/1.062, allocations: 196.5 kB / 0.6564 GB, free: 41.66 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.173/4.235, allocations: 0 / 0.6564 GB, free: 41.66 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat