Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_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.AsynchronousInductionMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_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.001462/0.001462, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.601/1.601, allocations: 205.3 MB / 214.4 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009319/0.0009319, allocations: 94.36 kB / 262.5 MB, free: 1.676 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.003e-05/1.999e-05, allocations: 4 kB / 315.6 MB, free: 22.6 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09192/0.09196, allocations: 47.58 MB / 363.2 MB, free: 6.957 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3803/0.4723, allocations: 101.7 MB / 464.9 MB, free: 10.21 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003796/0.4727, allocations: 91.5 kB / 465 MB, free: 10.16 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1064/0.5791, allocations: 39.7 MB / 0.4928 GB, free: 7.895 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.5792, allocations: 4 kB / 0.4928 GB, free: 7.891 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001341/0.5793, allocations: 47.94 kB / 0.4929 GB, free: 7.844 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: 468 * Number of variables: 468 Notification: Performance of Generate backend data structure: time 0.004371/0.5837, allocations: 1.937 MB / 0.4948 GB, free: 5.852 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/0.5838, allocations: 8.031 kB / 0.4948 GB, free: 5.844 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009591/0.5848, allocations: 253.3 kB / 0.495 GB, free: 5.594 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002579/0.5873, allocations: 1.344 MB / 0.4963 GB, free: 4.207 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.346e-05/0.5874, allocations: 64 kB / 0.4964 GB, free: 4.145 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002412/0.5877, allocations: 107.9 kB / 0.4965 GB, free: 4.039 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002818/0.5905, allocations: 1.694 MB / 0.4982 GB, free: 2.344 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003137/0.5936, allocations: 2.025 MB / 0.5001 GB, free: 244 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.571e-05/0.5937, allocations: 352 / 0.5001 GB, free: 244 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001375/0.5939, allocations: 11.95 kB / 0.5001 GB, free: 232 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.327e-05/0.5939, allocations: 87.5 kB / 0.5002 GB, free: 144 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01032/0.6043, allocations: 6.833 MB / 0.5069 GB, free: 9.121 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001525/0.6058, allocations: 1.214 MB / 0.5081 GB, free: 7.84 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008979/0.6068, allocations: 0.6676 MB / 0.5087 GB, free: 7.176 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002879/0.6071, allocations: 129.8 kB / 0.5089 GB, free: 7.031 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.141e-05/0.6071, allocations: 39.34 kB / 0.5089 GB, free: 6.984 MB / 394.7 MB Notification: Performance of pre-optimization done (n=90): time 3.176e-06/0.6071, allocations: 8 kB / 0.5089 GB, free: 6.977 MB / 394.7 MB Notification: Performance of matching and sorting (n=113): time 0.009095/0.6162, allocations: 4.581 MB / 0.5134 GB, free: 2.324 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.849e-05/0.6163, allocations: 64.72 kB / 0.5134 GB, free: 2.25 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001432/0.6178, allocations: 0.8434 MB / 0.5143 GB, free: 1.391 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000109/0.6179, allocations: 25.7 kB / 0.5143 GB, free: 1.359 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006341/0.6185, allocations: 0.8762 MB / 0.5151 GB, free: 480 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003126/0.6188, allocations: 378.3 kB / 0.5155 GB, free: 96 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.927e-05/0.6189, allocations: 0 / 0.5155 GB, free: 96 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.6191, allocations: 357.9 kB / 0.5158 GB, free: 15.74 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008188/0.6199, allocations: 0.6078 MB / 0.5164 GB, free: 15.13 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001/0.6209, allocations: 0.9087 MB / 0.5173 GB, free: 14.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.622, allocations: 0.7558 MB / 0.5181 GB, free: 13.34 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.602e-06/0.622, allocations: 4 kB / 0.5181 GB, free: 13.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.004028/0.626, allocations: 2.198 MB / 0.5202 GB, free: 11.12 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.748e-05/0.6261, allocations: 8 kB / 0.5202 GB, free: 11.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.422e-05/0.6261, allocations: 12 kB / 0.5202 GB, free: 11.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001568/0.6277, allocations: 0.631 MB / 0.5209 GB, free: 10.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/0.6287, allocations: 283.6 kB / 0.5211 GB, free: 10.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006752/0.6355, allocations: 6.036 MB / 0.527 GB, free: 3.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/0.6368, allocations: 67.81 kB / 0.5271 GB, free: 3.844 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/0.637, allocations: 56.05 kB / 0.5271 GB, free: 3.789 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (133): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,76.0%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002795/0.6373, allocations: 132.6 kB / 0.5273 GB, free: 3.652 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00324/0.6405, allocations: 1.939 MB / 0.5292 GB, free: 1.695 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002465/0.6408, allocations: 126.5 kB / 0.5293 GB, free: 1.57 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2275/0.8683, allocations: 2.064 MB / 0.5313 GB, free: 109.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-05/0.8684, allocations: 11.72 kB / 0.5313 GB, free: 109.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.005e-05/0.8684, allocations: 6.062 kB / 0.5313 GB, free: 109.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-05/0.8685, allocations: 6.531 kB / 0.5313 GB, free: 109.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008845/0.8773, allocations: 4.014 MB / 0.5352 GB, free: 109.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.171e-05/0.8774, allocations: 2.781 kB / 0.5352 GB, free: 109.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000819/0.8782, allocations: 171.9 kB / 0.5354 GB, free: 109.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002122/0.8803, allocations: 0.7158 MB / 0.5361 GB, free: 109.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001243/0.8805, allocations: 16.48 kB / 0.5361 GB, free: 109.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009032/0.8895, allocations: 7.723 MB / 0.5437 GB, free: 105.8 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.119e-05/0.8896, allocations: 3.859 kB / 0.5437 GB, free: 105.8 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005251/0.8948, allocations: 3.157 MB / 0.5467 GB, free: 105.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008724/0.8957, allocations: 343.7 kB / 0.5471 GB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003825/0.8961, allocations: 9.219 kB / 0.5471 GB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.8972, allocations: 67.62 kB / 0.5471 GB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002914/0.8975, allocations: 99.8 kB / 0.5472 GB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.605e-05/0.8976, allocations: 38.34 kB / 0.5473 GB, free: 105.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001251/0.8989, allocations: 0.6416 MB / 0.5479 GB, free: 105.1 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8989, allocations: 3.391 kB / 0.5479 GB, free: 105.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001941/0.9008, allocations: 409.3 kB / 0.5483 GB, free: 105.1 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],vfController.x,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 80 * 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: 3 * 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: 3 {(7,59.2%) 21,(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.005211/0.9061, allocations: 4.628 MB / 0.5528 GB, free: 103.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003071/0.9091, allocations: 2.119 MB / 0.5549 GB, free: 102.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.9092, allocations: 3.25 kB / 0.5549 GB, free: 102.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002226/0.9114, allocations: 1.48 MB / 0.5563 GB, free: 102.4 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001882/0.9133, allocations: 273.8 kB / 0.5566 GB, free: 102.4 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007232/0.9206, allocations: 3.64 MB / 0.5602 GB, free: 101.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001364/0.922, allocations: 1.682 MB / 0.5618 GB, free: 100.2 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009396/0.9229, allocations: 276.7 kB / 0.5621 GB, free: 100.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007669/0.9237, allocations: 0.6833 MB / 0.5627 GB, free: 99.63 MB / 410.7 MB Notification: Performance of SimCode: time 7.81e-07/0.9237, allocations: 0 / 0.5627 GB, free: 99.63 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0651/0.9888, allocations: 33.56 MB / 0.5955 GB, free: 87.72 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001451/0.989, allocations: 183.2 kB / 0.5957 GB, free: 87.52 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.995/3.984, allocations: 0 / 0.5957 GB, free: 87.52 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter_res.mat does not exist to compare? outputFormat=mat