Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002108/0.002108, allocations: 193.6 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.497/1.497, allocations: 225.6 MB / 234.8 MB, free: 3.23 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008776/0.0008779, allocations: 95.89 kB / 286.7 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.158e-05/3.151e-05, allocations: 12 kB / 343.8 MB, free: 8.156 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1002, allocations: 51.47 MB / 395.3 MB, free: 4.641 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3816/0.4819, allocations: 102.6 MB / 497.9 MB, free: 6.57 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002225/0.4822, allocations: 86.89 kB / 498 MB, free: 6.527 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1081/0.5902, allocations: 39.97 MB / 0.5253 GB, free: 3.523 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.976e-06/0.5903, allocations: 0 / 0.5253 GB, free: 3.523 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001944/0.5905, allocations: 51.94 kB / 0.5254 GB, free: 3.473 MB / 394.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.004679/0.5952, allocations: 1.949 MB / 0.5273 GB, free: 1.473 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.5952, allocations: 8.031 kB / 0.5273 GB, free: 1.465 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001164/0.5964, allocations: 257.2 kB / 0.5275 GB, free: 1.211 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003434/0.5999, allocations: 1.344 MB / 0.5288 GB, free: 15.82 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.398e-05/0.6, allocations: 60 kB / 0.5289 GB, free: 15.76 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004758/0.6005, allocations: 111.9 kB / 0.529 GB, free: 15.65 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003393/0.6039, allocations: 1.686 MB / 0.5307 GB, free: 13.96 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00367/0.6075, allocations: 2.023 MB / 0.5326 GB, free: 11.86 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.216e-05/0.6076, allocations: 4 kB / 0.5326 GB, free: 11.86 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00017/0.6078, allocations: 11.94 kB / 0.5326 GB, free: 11.85 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.206e-05/0.6079, allocations: 83.45 kB / 0.5327 GB, free: 11.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0114/0.6193, allocations: 6.809 MB / 0.5394 GB, free: 4.789 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001631/0.621, allocations: 1.238 MB / 0.5406 GB, free: 3.484 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000933/0.6219, allocations: 0.6663 MB / 0.5412 GB, free: 2.82 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002933/0.6223, allocations: 129.8 kB / 0.5414 GB, free: 2.676 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.312e-05/0.6223, allocations: 47.33 kB / 0.5414 GB, free: 2.617 MB / 410.7 MB Notification: Performance of pre-optimization done (n=90): time 2.405e-06/0.6223, allocations: 0 / 0.5414 GB, free: 2.617 MB / 410.7 MB Notification: Performance of matching and sorting (n=114): time 0.009018/0.6314, allocations: 4.6 MB / 0.5459 GB, free: 13.96 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.247e-05/0.6314, allocations: 60.72 kB / 0.546 GB, free: 13.89 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00155/0.633, allocations: 0.8475 MB / 0.5468 GB, free: 13.02 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.516e-05/0.6331, allocations: 25.7 kB / 0.5468 GB, free: 12.99 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005745/0.6337, allocations: 0.8723 MB / 0.5477 GB, free: 12.11 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003362/0.634, allocations: 378.3 kB / 0.548 GB, free: 11.73 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.691e-05/0.6341, allocations: 0 / 0.548 GB, free: 11.73 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.6343, allocations: 361.9 kB / 0.5484 GB, free: 11.37 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009408/0.6352, allocations: 0.6117 MB / 0.549 GB, free: 10.76 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001103/0.6363, allocations: 0.9051 MB / 0.5498 GB, free: 9.727 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001082/0.6374, allocations: 0.7596 MB / 0.5506 GB, free: 8.969 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.836e-06/0.6374, allocations: 8 kB / 0.5506 GB, free: 8.961 MB / 426.7 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.003742/0.6412, allocations: 2.205 MB / 0.5528 GB, free: 6.734 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.6412, allocations: 8 kB / 0.5528 GB, free: 6.727 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.622e-05/0.6412, allocations: 8 kB / 0.5528 GB, free: 6.719 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001546/0.6428, allocations: 0.6274 MB / 0.5534 GB, free: 6.082 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.6439, allocations: 283.6 kB / 0.5536 GB, free: 5.805 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00694/0.6508, allocations: 6.04 MB / 0.5595 GB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001351/0.6522, allocations: 67.89 kB / 0.5596 GB, free: 15.47 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002205/0.6524, allocations: 52.06 kB / 0.5597 GB, free: 15.42 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (134): * Single equations (assignments): 130 * 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.0003484/0.6528, allocations: 139.7 kB / 0.5598 GB, free: 15.28 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003424/0.6562, allocations: 1.943 MB / 0.5617 GB, free: 13.31 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003032/0.6566, allocations: 126.5 kB / 0.5618 GB, free: 13.19 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003507/0.6601, allocations: 2.078 MB / 0.5638 GB, free: 11.09 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.639e-06/0.6601, allocations: 12 kB / 0.5639 GB, free: 11.07 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.401e-05/0.6601, allocations: 8 kB / 0.5639 GB, free: 11.07 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.6601, allocations: 3.984 kB / 0.5639 GB, free: 11.06 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006689/0.6668, allocations: 4.047 MB / 0.5678 GB, free: 6.922 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.6669, allocations: 0 / 0.5678 GB, free: 6.922 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007273/0.6676, allocations: 171.8 kB / 0.568 GB, free: 6.754 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001792/0.6694, allocations: 0.7103 MB / 0.5687 GB, free: 6.031 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.457e-05/0.6695, allocations: 11.98 kB / 0.5687 GB, free: 6.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.253/0.9225, allocations: 7.703 MB / 0.5762 GB, free: 96.94 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.067e-06/0.9226, allocations: 6.031 kB / 0.5762 GB, free: 96.94 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004502/0.9271, allocations: 3.175 MB / 0.5793 GB, free: 96.47 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007372/0.9278, allocations: 343.7 kB / 0.5796 GB, free: 96.38 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003248/0.9282, allocations: 12.91 kB / 0.5797 GB, free: 96.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009371/0.9291, allocations: 65.59 kB / 0.5797 GB, free: 96.38 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002251/0.9294, allocations: 99.77 kB / 0.5798 GB, free: 96.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.333e-05/0.9295, allocations: 34.19 kB / 0.5798 GB, free: 96.38 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001029/0.9305, allocations: 0.6423 MB / 0.5805 GB, free: 96.27 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.9305, allocations: 0 / 0.5805 GB, free: 96.27 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001544/0.9321, allocations: 410.2 kB / 0.5809 GB, free: 96.27 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (85): * Single equations (assignments): 81 * 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 {(5,84.0%) 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.004621/0.9367, allocations: 4.735 MB / 0.5855 GB, free: 94.41 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002987/0.9397, allocations: 2.126 MB / 0.5876 GB, free: 93.97 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.9397, allocations: 2.781 kB / 0.5876 GB, free: 93.97 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002044/0.9418, allocations: 1.455 MB / 0.589 GB, free: 93.53 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001689/0.9435, allocations: 274.2 kB / 0.5893 GB, free: 93.52 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007813/0.9513, allocations: 3.663 MB / 0.5928 GB, free: 92.67 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001593/0.9529, allocations: 1.687 MB / 0.5945 GB, free: 91.92 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0009594/0.9539, allocations: 278.6 kB / 0.5947 GB, free: 91.88 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008621/0.9548, allocations: 0.686 MB / 0.5954 GB, free: 91.88 MB / 442.7 MB Notification: Performance of SimCode: time 1.984e-06/0.9548, allocations: 0 / 0.5954 GB, free: 91.88 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07456/1.029, allocations: 33.67 MB / 0.6283 GB, free: 90.05 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001557/1.03, allocations: 164.2 kB / 0.6284 GB, free: 89.86 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.05/4.079, allocations: 0 / 0.6284 GB, free: 89.86 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat does not exist to compare? outputFormat=mat