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.001134/0.001134, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.503/1.503, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000853/0.000853, allocations: 82.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.871e-05/2.873e-05, allocations: 4 kB / 322.6 MB, free: 17.24 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1037, allocations: 47.57 MB / 370.1 MB, free: 1.602 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3554/0.4591, allocations: 102.1 MB / 472.3 MB, free: 7.477 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001965/0.4594, allocations: 87.33 kB / 472.3 MB, free: 7.434 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1074/0.5668, allocations: 40.23 MB / 0.5006 GB, free: 36 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.5668, allocations: 4 kB / 0.5006 GB, free: 32 kB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001433/0.567, allocations: 52.08 kB / 0.5006 GB, free: 15.98 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.003648/0.5706, allocations: 1.941 MB / 0.5025 GB, free: 13.99 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.5707, allocations: 8.031 kB / 0.5025 GB, free: 13.98 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003465/0.571, allocations: 269.8 kB / 0.5028 GB, free: 13.71 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000667/0.5717, allocations: 249.3 kB / 0.503 GB, free: 13.46 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002528/0.5743, allocations: 1.344 MB / 0.5043 GB, free: 12.07 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/0.5744, allocations: 135.5 kB / 0.5044 GB, free: 11.94 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002698/0.5746, allocations: 179.9 kB / 0.5046 GB, free: 11.76 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003761/0.5784, allocations: 2.286 MB / 0.5068 GB, free: 9.395 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.786e-05/0.5785, allocations: 7.984 kB / 0.5069 GB, free: 9.387 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000181/0.5787, allocations: 80.28 kB / 0.5069 GB, free: 9.309 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.864e-05/0.5788, allocations: 83.47 kB / 0.507 GB, free: 9.227 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003303/0.5821, allocations: 1.79 MB / 0.5088 GB, free: 7.434 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01159/0.5937, allocations: 7.168 MB / 0.5158 GB, free: 72 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001745/0.5955, allocations: 1.272 MB / 0.517 GB, free: 14.73 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001018/0.5965, allocations: 0.6976 MB / 0.5177 GB, free: 14.03 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003107/0.5969, allocations: 133.8 kB / 0.5178 GB, free: 13.88 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.433e-05/0.5969, allocations: 43.34 kB / 0.5179 GB, free: 13.83 MB / 410.7 MB Notification: Performance of pre-optimization done (n=90): time 4.919e-06/0.5969, allocations: 0 / 0.5179 GB, free: 13.83 MB / 410.7 MB Notification: Performance of matching and sorting (n=113): time 0.01388/0.6108, allocations: 5.946 MB / 0.5237 GB, free: 7.812 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.67e-05/0.6109, allocations: 64.41 kB / 0.5237 GB, free: 7.738 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001598/0.6125, allocations: 1.034 MB / 0.5247 GB, free: 6.691 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.826e-05/0.6126, allocations: 45.7 kB / 0.5248 GB, free: 6.641 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005657/0.6132, allocations: 0.8536 MB / 0.5256 GB, free: 5.773 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003193/0.6135, allocations: 410.2 kB / 0.526 GB, free: 5.367 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.81e-05/0.6136, allocations: 24 kB / 0.526 GB, free: 5.344 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.6137, allocations: 357.9 kB / 0.5264 GB, free: 4.988 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009256/0.6147, allocations: 0.6351 MB / 0.527 GB, free: 4.355 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001069/0.6158, allocations: 0.9461 MB / 0.5279 GB, free: 3.281 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001116/0.6169, allocations: 0.7856 MB / 0.5287 GB, free: 2.492 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.793e-06/0.6169, allocations: 4 kB / 0.5287 GB, free: 2.488 MB / 410.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.00392/0.6208, allocations: 2.323 MB / 0.5309 GB, free: 148 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.704e-05/0.6209, allocations: 11.94 kB / 0.531 GB, free: 136 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/0.6209, allocations: 8 kB / 0.531 GB, free: 128 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2246/0.8455, allocations: 0.6305 MB / 0.5316 GB, free: 107.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001315/0.8468, allocations: 280.6 kB / 0.5318 GB, free: 107.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007754/0.8546, allocations: 6.293 MB / 0.538 GB, free: 104.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00141/0.856, allocations: 94.31 kB / 0.5381 GB, free: 104.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001226/0.8562, allocations: 52.31 kB / 0.5381 GB, free: 104.9 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.0002785/0.8564, allocations: 182.6 kB / 0.5383 GB, free: 104.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002703/0.8567, allocations: 138.3 kB / 0.5384 GB, free: 104.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004337/0.8611, allocations: 2.184 MB / 0.5406 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.56e-05/0.8611, allocations: 15.28 kB / 0.5406 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/0.8611, allocations: 7.125 kB / 0.5406 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/0.8611, allocations: 3.656 kB / 0.5406 GB, free: 104.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008638/0.8698, allocations: 4.347 MB / 0.5448 GB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-05/0.8698, allocations: 2.938 kB / 0.5448 GB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000843/0.8707, allocations: 182.4 kB / 0.545 GB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002023/0.8727, allocations: 0.7148 MB / 0.5457 GB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001052/0.8729, allocations: 33.08 kB / 0.5457 GB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008754/0.8816, allocations: 8.051 MB / 0.5536 GB, free: 100 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.8817, allocations: 3.781 kB / 0.5536 GB, free: 100 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004411/0.8861, allocations: 3.263 MB / 0.5568 GB, free: 98.55 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008377/0.8869, allocations: 359.3 kB / 0.5571 GB, free: 98.31 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001633/0.8871, allocations: 34.56 kB / 0.5572 GB, free: 98.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007476/0.8879, allocations: 75.2 kB / 0.5572 GB, free: 98.28 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002467/0.8881, allocations: 107.3 kB / 0.5574 GB, free: 98.26 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.639e-05/0.8882, allocations: 34.28 kB / 0.5574 GB, free: 98.25 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00116/0.8894, allocations: 0.7924 MB / 0.5582 GB, free: 97.91 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.8894, allocations: 3.688 kB / 0.5582 GB, free: 97.91 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00166/0.8911, allocations: 476.2 kB / 0.5586 GB, free: 97.86 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.005048/0.8961, allocations: 4.754 MB / 0.5633 GB, free: 95.08 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003208/0.8993, allocations: 2.209 MB / 0.5654 GB, free: 94.06 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.8994, allocations: 0 / 0.5654 GB, free: 94.06 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002074/0.9014, allocations: 1.533 MB / 0.5669 GB, free: 93.26 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00175/0.9032, allocations: 352.8 kB / 0.5672 GB, free: 93.17 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006056/0.9093, allocations: 3.773 MB / 0.5709 GB, free: 91.59 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001152/0.9104, allocations: 1.684 MB / 0.5726 GB, free: 90.71 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008876/0.9113, allocations: 294.9 kB / 0.5729 GB, free: 90.68 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007278/0.9121, allocations: 0.6831 MB / 0.5735 GB, free: 90.14 MB / 410.7 MB Notification: Performance of SimCode: time 1.823e-06/0.9121, allocations: 0 / 0.5735 GB, free: 90.14 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05931/0.9714, allocations: 39.9 MB / 0.6125 GB, free: 66.42 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000134/0.9716, allocations: 204.9 kB / 0.6127 GB, free: 66.2 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.987/3.958, allocations: 0 / 0.6127 GB, free: 66.2 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