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.0011/0.0011, allocations: 179.5 kB / 16.39 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.273/1.273, 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.0009451/0.0009455, allocations: 99.19 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002682/0.0002681, allocations: 11.98 kB / 351.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.2322, allocations: 50.4 MB / 401.6 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1171/0.3493, allocations: 102.5 MB / 0.4923 GB, free: 9.77 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/0.3496, allocations: 99.92 kB / 0.4924 GB, free: 9.672 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2962/0.6458, allocations: 40.27 MB / 0.5317 GB, free: 82.21 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.6459, allocations: 3.938 kB / 0.5317 GB, free: 82.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001653/0.646, allocations: 47.94 kB / 0.5318 GB, free: 82.16 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.004945/0.651, allocations: 2.154 MB / 0.5339 GB, free: 79.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.651, allocations: 8.031 kB / 0.5339 GB, free: 79.94 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006589/0.6517, allocations: 269.8 kB / 0.5341 GB, free: 79.66 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008563/0.6526, allocations: 253.2 kB / 0.5344 GB, free: 79.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003129/0.6557, allocations: 1.355 MB / 0.5357 GB, free: 78.01 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.735e-05/0.6558, allocations: 131.6 kB / 0.5358 GB, free: 77.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004587/0.6563, allocations: 187.9 kB / 0.536 GB, free: 77.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004255/0.6606, allocations: 2.336 MB / 0.5383 GB, free: 75.29 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.036e-05/0.6607, allocations: 4.344 kB / 0.5383 GB, free: 75.28 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002113/0.6609, allocations: 83.94 kB / 0.5384 GB, free: 75.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.867e-05/0.661, allocations: 83.5 kB / 0.5384 GB, free: 75.12 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003117/0.6641, allocations: 1.88 MB / 0.5403 GB, free: 73.23 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009517/0.6736, allocations: 7.164 MB / 0.5473 GB, free: 65.88 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001607/0.6753, allocations: 1.329 MB / 0.5486 GB, free: 64.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002345/0.6755, allocations: 142 kB / 0.5487 GB, free: 64.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.007e-05/0.6756, allocations: 43.5 kB / 0.5488 GB, free: 64.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=90): time 2.234e-06/0.6756, allocations: 0 / 0.5488 GB, free: 64.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=113): time 0.01433/0.6899, allocations: 7.203 MB / 0.5558 GB, free: 56.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.168e-05/0.69, allocations: 64.41 kB / 0.5558 GB, free: 56.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001565/0.6915, allocations: 1.044 MB / 0.5569 GB, free: 55.79 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9e-05/0.6916, allocations: 45.7 kB / 0.5569 GB, free: 55.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004656/0.6921, allocations: 0.8614 MB / 0.5578 GB, free: 54.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002441/0.6924, allocations: 394.2 kB / 0.5581 GB, free: 54.47 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.891e-05/0.6924, allocations: 24 kB / 0.5582 GB, free: 54.45 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.223e-05/0.6925, allocations: 361.9 kB / 0.5585 GB, free: 54.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009359/0.6935, allocations: 0.6858 MB / 0.5592 GB, free: 53.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001069/0.6945, allocations: 0.9814 MB / 0.5601 GB, free: 52.29 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001102/0.6957, allocations: 0.8345 MB / 0.5609 GB, free: 51.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/0.6957, allocations: 4 kB / 0.5609 GB, free: 51.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003729/0.6994, allocations: 2.424 MB / 0.5633 GB, free: 49.01 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.66e-05/0.6995, allocations: 10.81 kB / 0.5633 GB, free: 49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.632e-05/0.6995, allocations: 8 kB / 0.5633 GB, free: 48.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001464/0.701, allocations: 0.6468 MB / 0.564 GB, free: 48.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.702, allocations: 283.6 kB / 0.5642 GB, free: 48.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006268/0.7083, allocations: 6.534 MB / 0.5706 GB, free: 41.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001237/0.7096, allocations: 91.88 kB / 0.5707 GB, free: 41.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001617/0.7098, allocations: 52 kB / 0.5708 GB, free: 41.12 MB / 378.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 () * Number of clocked 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.001048/0.7108, allocations: 0.6067 MB / 0.5713 GB, free: 40.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003202/0.7111, allocations: 134.3 kB / 0.5715 GB, free: 40.37 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003707/0.7149, allocations: 2.279 MB / 0.5737 GB, free: 38.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.7149, allocations: 15.95 kB / 0.5737 GB, free: 38.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.346e-05/0.7149, allocations: 8 kB / 0.5737 GB, free: 38.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.7149, allocations: 7.984 kB / 0.5737 GB, free: 38.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007079/0.722, allocations: 4.426 MB / 0.578 GB, free: 33.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/0.722, allocations: 0 / 0.578 GB, free: 33.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007596/0.7228, allocations: 175.8 kB / 0.5782 GB, free: 33.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001781/0.7246, allocations: 0.7264 MB / 0.5789 GB, free: 32.61 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001072/0.7247, allocations: 27.98 kB / 0.579 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00729/0.732, allocations: 8.311 MB / 0.5871 GB, free: 23.87 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.7321, allocations: 4 kB / 0.5871 GB, free: 23.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004467/0.7366, allocations: 3.382 MB / 0.5904 GB, free: 20.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008257/0.7374, allocations: 359.3 kB / 0.5907 GB, free: 20.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001778/0.7376, allocations: 31.98 kB / 0.5907 GB, free: 19.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007886/0.7384, allocations: 79.92 kB / 0.5908 GB, free: 19.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002244/0.7386, allocations: 100.8 kB / 0.5909 GB, free: 19.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.46e-05/0.7387, allocations: 35.98 kB / 0.591 GB, free: 19.77 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009808/0.7397, allocations: 0.803 MB / 0.5917 GB, free: 18.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7397, allocations: 0 / 0.5917 GB, free: 18.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001349/0.7411, allocations: 483.9 kB / 0.5922 GB, free: 18.49 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 79 * 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.004841/0.7459, allocations: 4.725 MB / 0.5968 GB, free: 13.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00316/0.7491, allocations: 2.319 MB / 0.5991 GB, free: 11.28 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.7491, allocations: 0 / 0.5991 GB, free: 11.28 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002139/0.7512, allocations: 1.581 MB / 0.6006 GB, free: 9.637 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001519/0.7528, allocations: 348.3 kB / 0.601 GB, free: 9.297 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02005/0.7728, allocations: 17.87 MB / 0.6184 GB, free: 6.883 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001596/0.7745, allocations: 1.689 MB / 0.6201 GB, free: 5.16 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001143/0.7756, allocations: 292.1 kB / 0.6203 GB, free: 4.871 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009629/0.7766, allocations: 0.6828 MB / 0.621 GB, free: 4.188 MB / 394.7 MB Notification: Performance of SimCode: time 1.313e-06/0.7766, allocations: 0 / 0.621 GB, free: 4.188 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2555/1.032, allocations: 39.67 MB / 0.6597 GB, free: 116.3 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001636/1.032, allocations: 228.7 kB / 0.66 GB, free: 116.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.983/4.016, allocations: 0 / 0.66 GB, free: 116.1 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