Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_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.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001704/0.001704, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 221.5 MB / 230.3 MB, free: 7.59 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.0008466/0.0008465, allocations: 98.34 kB / 281.2 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.773e-05/1.774e-05, allocations: 4 kB / 337.1 MB, free: 9.949 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1051, allocations: 50.43 MB / 387.6 MB, free: 7.48 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3649/0.47, allocations: 101.8 MB / 489.4 MB, free: 8.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002152/0.4703, allocations: 88.98 kB / 489.4 MB, free: 8.895 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1049/0.5752, allocations: 39.81 MB / 0.5169 GB, free: 0.8242 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5752, allocations: 4 kB / 0.5169 GB, free: 0.8203 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001154/0.5753, allocations: 47.88 kB / 0.5169 GB, free: 0.7734 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.003884/0.5792, allocations: 1.951 MB / 0.5188 GB, free: 14.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.486e-05/0.5793, allocations: 12.02 kB / 0.5188 GB, free: 14.76 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007456/0.58, allocations: 249.4 kB / 0.5191 GB, free: 14.52 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002452/0.5825, allocations: 1.352 MB / 0.5204 GB, free: 13.12 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.278e-05/0.5826, allocations: 60 kB / 0.5204 GB, free: 13.06 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002449/0.5828, allocations: 115.8 kB / 0.5205 GB, free: 12.95 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002824/0.5857, allocations: 1.686 MB / 0.5222 GB, free: 11.26 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003349/0.589, allocations: 2.018 MB / 0.5242 GB, free: 9.164 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.415e-05/0.5891, allocations: 11.98 kB / 0.5242 GB, free: 9.152 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001383/0.5892, allocations: 4 kB / 0.5242 GB, free: 9.148 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.785e-05/0.5893, allocations: 83.52 kB / 0.5243 GB, free: 9.066 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01163/0.601, allocations: 6.806 MB / 0.5309 GB, free: 2.078 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001602/0.6026, allocations: 1.222 MB / 0.5321 GB, free: 0.7891 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009942/0.6036, allocations: 0.6781 MB / 0.5328 GB, free: 116 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003291/0.604, allocations: 129.8 kB / 0.5329 GB, free: 15.97 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.969e-05/0.604, allocations: 51.28 kB / 0.5329 GB, free: 15.91 MB / 426.7 MB Notification: Performance of pre-optimization done (n=90): time 5.66e-06/0.604, allocations: 4 kB / 0.5329 GB, free: 15.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=114): time 0.009224/0.6133, allocations: 4.591 MB / 0.5374 GB, free: 11.24 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/0.6133, allocations: 64.72 kB / 0.5375 GB, free: 11.16 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00126/0.6146, allocations: 0.8395 MB / 0.5383 GB, free: 10.31 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.267e-05/0.6147, allocations: 29.7 kB / 0.5383 GB, free: 10.27 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000595/0.6153, allocations: 0.8723 MB / 0.5392 GB, free: 9.387 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003064/0.6156, allocations: 386.2 kB / 0.5395 GB, free: 9.004 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.17e-05/0.6157, allocations: 3.938 kB / 0.5396 GB, free: 9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.6159, allocations: 353.9 kB / 0.5399 GB, free: 8.648 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008368/0.6167, allocations: 0.6116 MB / 0.5405 GB, free: 8.035 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009856/0.6177, allocations: 0.909 MB / 0.5414 GB, free: 7.004 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00105/0.6188, allocations: 0.7558 MB / 0.5421 GB, free: 6.246 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.115e-06/0.6188, allocations: 4 kB / 0.5421 GB, free: 6.242 MB / 426.7 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.003617/0.6224, allocations: 2.206 MB / 0.5443 GB, free: 4.016 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.195e-05/0.6224, allocations: 8 kB / 0.5443 GB, free: 4.008 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.82e-05/0.6225, allocations: 11.94 kB / 0.5443 GB, free: 3.996 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001625/0.6241, allocations: 0.626 MB / 0.5449 GB, free: 3.359 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001075/0.6252, allocations: 283.6 kB / 0.5452 GB, free: 3.082 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2475/0.8727, allocations: 6.034 MB / 0.5511 GB, free: 110.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001352/0.8741, allocations: 65.5 kB / 0.5511 GB, free: 110.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002871/0.8744, allocations: 52.3 kB / 0.5512 GB, free: 110.5 MB / 426.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.0003896/0.8748, allocations: 135.2 kB / 0.5513 GB, free: 110.4 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003905/0.8788, allocations: 1.943 MB / 0.5532 GB, free: 110.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003779/0.8792, allocations: 126.6 kB / 0.5533 GB, free: 110.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003953/0.8831, allocations: 2.078 MB / 0.5554 GB, free: 110.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.8832, allocations: 15.72 kB / 0.5554 GB, free: 110.1 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.762e-05/0.8832, allocations: 3 kB / 0.5554 GB, free: 110.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.907e-05/0.8832, allocations: 6.141 kB / 0.5554 GB, free: 110.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00864/0.8919, allocations: 4.038 MB / 0.5593 GB, free: 109.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.417e-05/0.8919, allocations: 3.25 kB / 0.5593 GB, free: 109.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007917/0.8927, allocations: 182.6 kB / 0.5595 GB, free: 109.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001946/0.8947, allocations: 0.697 MB / 0.5602 GB, free: 109.6 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001273/0.8948, allocations: 19.5 kB / 0.5602 GB, free: 109.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008782/0.9036, allocations: 7.706 MB / 0.5677 GB, free: 106 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.689e-05/0.9037, allocations: 7.531 kB / 0.5677 GB, free: 106 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00643/0.9101, allocations: 3.175 MB / 0.5708 GB, free: 104.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001074/0.9112, allocations: 342.5 kB / 0.5712 GB, free: 104.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004594/0.9117, allocations: 17.72 kB / 0.5712 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/0.9128, allocations: 63.31 kB / 0.5712 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003767/0.9132, allocations: 102.4 kB / 0.5713 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001239/0.9133, allocations: 32.59 kB / 0.5714 GB, free: 104.6 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001694/0.915, allocations: 0.6418 MB / 0.572 GB, free: 104.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.915, allocations: 0 / 0.572 GB, free: 104.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002562/0.9176, allocations: 408.4 kB / 0.5724 GB, free: 104.3 MB / 426.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.005093/0.9227, allocations: 4.738 MB / 0.577 GB, free: 101.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003149/0.9259, allocations: 2.127 MB / 0.5791 GB, free: 100.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.9259, allocations: 0 / 0.5791 GB, free: 100.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002025/0.9279, allocations: 1.454 MB / 0.5805 GB, free: 99.73 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001623/0.9296, allocations: 263.1 kB / 0.5808 GB, free: 99.67 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006505/0.9361, allocations: 3.667 MB / 0.5843 GB, free: 98.17 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001163/0.9373, allocations: 1.687 MB / 0.586 GB, free: 97.3 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008647/0.9382, allocations: 275 kB / 0.5862 GB, free: 97.27 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007441/0.9389, allocations: 0.6859 MB / 0.5869 GB, free: 96.71 MB / 426.7 MB Notification: Performance of SimCode: time 7.11e-07/0.9389, allocations: 0 / 0.5869 GB, free: 96.71 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05655/0.9955, allocations: 33.59 MB / 0.6197 GB, free: 83.36 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000137/0.9957, allocations: 160.5 kB / 0.6199 GB, free: 83.17 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.041/4.037, allocations: 0 / 0.6199 GB, free: 83.17 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat does not exist to compare? outputFormat=mat