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.001061/0.001061, allocations: 180.1 kB / 16.38 MB, free: 5.766 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.416/1.416, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008599/0.0008597, allocations: 87.17 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002742/0.0002743, allocations: 8 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.198/0.1983, allocations: 50.41 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1127/0.311, allocations: 105.7 MB / 0.4954 GB, free: 6.668 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/0.3114, allocations: 87.95 kB / 0.4955 GB, free: 6.582 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2805/0.5919, allocations: 46.27 MB / 0.5407 GB, free: 73.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.592, allocations: 0 / 0.5407 GB, free: 73.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000153/0.5921, allocations: 63.92 kB / 0.5408 GB, free: 73.74 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.004962/0.5971, allocations: 2.503 MB / 0.5432 GB, free: 71.17 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.5972, allocations: 16.02 kB / 0.5432 GB, free: 71.16 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000518/0.5977, allocations: 316 kB / 0.5435 GB, free: 70.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007262/0.5984, allocations: 296.8 kB / 0.5438 GB, free: 70.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003033/0.6015, allocations: 1.613 MB / 0.5454 GB, free: 68.87 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001051/0.6016, allocations: 164.2 kB / 0.5455 GB, free: 68.71 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003935/0.602, allocations: 215.9 kB / 0.5457 GB, free: 68.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004628/0.6066, allocations: 2.773 MB / 0.5484 GB, free: 65.58 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.499e-05/0.6067, allocations: 3.938 kB / 0.5485 GB, free: 65.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001973/0.6069, allocations: 91.98 kB / 0.5485 GB, free: 65.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.994e-05/0.607, allocations: 96.19 kB / 0.5486 GB, free: 65.39 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003478/0.6105, allocations: 2.242 MB / 0.5508 GB, free: 63.13 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01182/0.6223, allocations: 8.62 MB / 0.5592 GB, free: 54.26 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002045/0.6244, allocations: 1.759 MB / 0.561 GB, free: 52.38 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002879/0.6247, allocations: 219.1 kB / 0.5612 GB, free: 52.13 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.748e-05/0.6248, allocations: 43.56 kB / 0.5612 GB, free: 52.08 MB / 378.7 MB Notification: Performance of pre-optimization done (n=104): time 2.925e-06/0.6248, allocations: 0 / 0.5612 GB, free: 52.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.01348/0.6383, allocations: 7.212 MB / 0.5683 GB, free: 44.74 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.734e-05/0.6383, allocations: 64.41 kB / 0.5683 GB, free: 44.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001659/0.64, allocations: 1.239 MB / 0.5695 GB, free: 43.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001031/0.6401, allocations: 53.7 kB / 0.5696 GB, free: 43.36 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004846/0.6406, allocations: 1.03 MB / 0.5706 GB, free: 42.31 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002477/0.6409, allocations: 433.7 kB / 0.571 GB, free: 41.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.169e-05/0.641, allocations: 32 kB / 0.571 GB, free: 41.85 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.195e-05/0.641, allocations: 365.9 kB / 0.5714 GB, free: 41.49 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009752/0.642, allocations: 0.7574 MB / 0.5721 GB, free: 40.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00125/0.6433, allocations: 1.126 MB / 0.5732 GB, free: 39.45 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001195/0.6445, allocations: 0.9276 MB / 0.5741 GB, free: 38.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/0.6445, allocations: 4 kB / 0.5741 GB, free: 38.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=186) (initialization): time 0.00421/0.6487, allocations: 2.614 MB / 0.5767 GB, free: 35.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.639e-05/0.6488, allocations: 8 kB / 0.5767 GB, free: 35.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.161e-05/0.6488, allocations: 16 kB / 0.5767 GB, free: 35.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00136/0.6502, allocations: 0.5884 MB / 0.5773 GB, free: 35.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001183/0.6514, allocations: 331.5 kB / 0.5776 GB, free: 34.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006229/0.6576, allocations: 6.547 MB / 0.584 GB, free: 28.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001495/0.6591, allocations: 115.9 kB / 0.5841 GB, free: 28.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001337/0.6593, allocations: 60 kB / 0.5841 GB, free: 27.96 MB / 378.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 154 * 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.001126/0.6604, allocations: 0.6886 MB / 0.5848 GB, free: 27.26 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002984/0.6607, allocations: 166 kB / 0.585 GB, free: 27.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003684/0.6644, allocations: 2.394 MB / 0.5873 GB, free: 24.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/0.6644, allocations: 16 kB / 0.5873 GB, free: 24.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.6645, allocations: 4 kB / 0.5873 GB, free: 24.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/0.6645, allocations: 7.969 kB / 0.5873 GB, free: 24.65 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007629/0.6721, allocations: 4.782 MB / 0.592 GB, free: 19.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/0.6722, allocations: 0 / 0.592 GB, free: 19.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008816/0.673, allocations: 212.1 kB / 0.5922 GB, free: 19.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001544/0.6746, allocations: 0.6436 MB / 0.5928 GB, free: 18.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.274e-05/0.6747, allocations: 39.97 kB / 0.5929 GB, free: 18.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007208/0.6819, allocations: 8.316 MB / 0.601 GB, free: 10.15 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.682, allocations: 4 kB / 0.601 GB, free: 10.15 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005208/0.6872, allocations: 3.532 MB / 0.6045 GB, free: 6.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00106/0.6883, allocations: 402.9 kB / 0.6048 GB, free: 6.105 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002764/0.6886, allocations: 31.98 kB / 0.6049 GB, free: 6.074 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000949/0.6895, allocations: 95.89 kB / 0.605 GB, free: 5.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002485/0.6898, allocations: 96.81 kB / 0.6051 GB, free: 5.887 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.217e-05/0.6899, allocations: 39.98 kB / 0.6051 GB, free: 5.848 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001242/0.6911, allocations: 0.9576 MB / 0.606 GB, free: 4.891 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6911, allocations: 0 / 0.606 GB, free: 4.891 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001698/0.6928, allocations: 0.5195 MB / 0.6065 GB, free: 4.371 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 94 * 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.005675/0.6985, allocations: 4.758 MB / 0.6112 GB, free: 15.53 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00456/0.7031, allocations: 2.376 MB / 0.6135 GB, free: 13.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.939e-06/0.7032, allocations: 8.312 kB / 0.6135 GB, free: 13.09 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002699/0.7059, allocations: 1.548 MB / 0.615 GB, free: 11.51 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002128/0.708, allocations: 369.1 kB / 0.6154 GB, free: 11.16 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02677/0.7348, allocations: 21.12 MB / 0.636 GB, free: 5.324 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001601/0.7365, allocations: 1.87 MB / 0.6378 GB, free: 3.426 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001327/0.7378, allocations: 362 kB / 0.6382 GB, free: 3.066 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001128/0.7389, allocations: 0.8195 MB / 0.639 GB, free: 2.246 MB / 410.7 MB Notification: Performance of SimCode: time 8.71e-07/0.739, allocations: 4 kB / 0.639 GB, free: 2.242 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2556/0.9945, allocations: 44.21 MB / 0.6821 GB, free: 108.5 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001404/0.9947, allocations: 231.1 kB / 0.6824 GB, free: 108.2 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.274/4.269, allocations: 7.75 kB / 0.6824 GB, free: 108.2 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