Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.001334/0.001334, allocations: 175 kB / 13.63 MB, free: 1.684 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.405/1.405, allocations: 221.3 MB / 235.5 MB, free: 2.941 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.001029/0.001029, allocations: 93 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.047e-05/3.05e-05, allocations: 4 kB / 343.9 MB, free: 4.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1063, allocations: 50.42 MB / 394.4 MB, free: 1.742 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3737/0.4801, allocations: 108.9 MB / 0.4914 GB, free: 10.52 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002576/0.4804, allocations: 91.95 kB / 0.4915 GB, free: 10.43 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.467/0.9474, allocations: 79.63 MB / 0.5693 GB, free: 96.3 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.195e-06/0.9475, allocations: 2.344 kB / 0.5693 GB, free: 96.3 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002809/0.9478, allocations: 76.44 kB / 0.5694 GB, free: 96.29 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.01133/0.9591, allocations: 3.179 MB / 0.5725 GB, free: 95.03 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/0.9592, allocations: 7.906 kB / 0.5725 GB, free: 95.03 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001612/0.9608, allocations: 452.7 kB / 0.5729 GB, free: 94.97 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005/0.9658, allocations: 0.718 MB / 0.5736 GB, free: 94.79 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009003/0.9749, allocations: 3.288 MB / 0.5768 GB, free: 94.26 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002309/0.9751, allocations: 233.1 kB / 0.5771 GB, free: 94.25 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001111/0.9763, allocations: 321.2 kB / 0.5774 GB, free: 94.25 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009698/0.986, allocations: 4.044 MB / 0.5813 GB, free: 93.87 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.921e-05/0.9861, allocations: 3.891 kB / 0.5813 GB, free: 93.87 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003492/0.9865, allocations: 132.6 kB / 0.5814 GB, free: 93.87 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001308/0.9866, allocations: 140.6 kB / 0.5816 GB, free: 93.86 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007232/0.9938, allocations: 3.288 MB / 0.5848 GB, free: 92.73 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02637/1.02, allocations: 13.23 MB / 0.5977 GB, free: 85.61 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005968/1.026, allocations: 6.819 MB / 0.6044 GB, free: 79.41 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002082/1.028, allocations: 1.317 MB / 0.6056 GB, free: 78.92 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007187/1.036, allocations: 3.734 MB / 0.6093 GB, free: 76.83 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.308e-05/1.036, allocations: 43.31 kB / 0.6093 GB, free: 76.78 MB / 426.7 MB Notification: Performance of pre-optimization done (n=118): time 3.096e-06/1.036, allocations: 0 / 0.6093 GB, free: 76.78 MB / 426.7 MB Notification: Performance of matching and sorting (n=121): time 0.008293/1.044, allocations: 3.824 MB / 0.6131 GB, free: 74.68 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/1.044, allocations: 63.84 kB / 0.6131 GB, free: 74.61 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003298/1.047, allocations: 1.473 MB / 0.6146 GB, free: 74.01 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001138/1.048, allocations: 45.42 kB / 0.6146 GB, free: 73.96 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001031/1.049, allocations: 1.415 MB / 0.616 GB, free: 72.89 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003334/1.049, allocations: 422 kB / 0.6164 GB, free: 72.57 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.632e-05/1.049, allocations: 31.56 kB / 0.6164 GB, free: 72.54 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001522/1.049, allocations: 370.2 kB / 0.6168 GB, free: 72.21 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009518/1.05, allocations: 0.5931 MB / 0.6174 GB, free: 71.97 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001219/1.051, allocations: 1.059 MB / 0.6184 GB, free: 71.14 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001294/1.053, allocations: 0.8018 MB / 0.6192 GB, free: 70.79 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-05/1.053, allocations: 11.39 kB / 0.6192 GB, free: 70.79 MB / 426.7 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.00393/1.057, allocations: 2.221 MB / 0.6214 GB, free: 69.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.34e-05/1.057, allocations: 10.56 kB / 0.6214 GB, free: 69.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.138e-05/1.057, allocations: 13.84 kB / 0.6214 GB, free: 69.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008406/1.058, allocations: 270.8 kB / 0.6216 GB, free: 69.67 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001288/1.059, allocations: 352.5 kB / 0.622 GB, free: 69.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004324/1.063, allocations: 5.67 MB / 0.6275 GB, free: 64.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001747/1.065, allocations: 77 kB / 0.6276 GB, free: 64.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003448/1.065, allocations: 70.38 kB / 0.6276 GB, free: 64.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (178): * Single equations (assignments): 174 * 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 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003791/1.066, allocations: 206.2 kB / 0.6278 GB, free: 64.5 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004835/1.066, allocations: 175.1 kB / 0.628 GB, free: 64.41 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003938/1.07, allocations: 2.049 MB / 0.63 GB, free: 63.39 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/1.07, allocations: 12.78 kB / 0.63 GB, free: 63.39 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.253e-05/1.07, allocations: 3.875 kB / 0.63 GB, free: 63.39 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.441e-05/1.07, allocations: 7.547 kB / 0.63 GB, free: 63.39 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009443/1.08, allocations: 4.706 MB / 0.6346 GB, free: 60.78 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/1.08, allocations: 0 / 0.6346 GB, free: 60.78 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007453/1.081, allocations: 168.7 kB / 0.6348 GB, free: 60.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001212/1.082, allocations: 446.3 kB / 0.6352 GB, free: 60.27 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001094/1.082, allocations: 35.8 kB / 0.6353 GB, free: 60.24 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008184/1.09, allocations: 10.06 MB / 0.6451 GB, free: 50.09 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/1.09, allocations: 7.969 kB / 0.6451 GB, free: 50.08 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004882/1.095, allocations: 2.953 MB / 0.648 GB, free: 47.27 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001159/1.096, allocations: 404 kB / 0.6484 GB, free: 46.89 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006224/1.097, allocations: 28 kB / 0.6484 GB, free: 46.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001427/1.098, allocations: 78.84 kB / 0.6485 GB, free: 46.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003456/1.099, allocations: 98.98 kB / 0.6486 GB, free: 46.74 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000131/1.099, allocations: 35.52 kB / 0.6486 GB, free: 46.71 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002805/1.102, allocations: 1.131 MB / 0.6497 GB, free: 45.69 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.31e-07/1.102, allocations: 0 / 0.6497 GB, free: 45.69 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003198/1.105, allocations: 0.5742 MB / 0.6503 GB, free: 45.12 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,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): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005335/1.11, allocations: 4.197 MB / 0.6543 GB, free: 41.13 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003575/1.114, allocations: 1.984 MB / 0.6563 GB, free: 39.22 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/1.114, allocations: 0 / 0.6563 GB, free: 39.22 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002044/1.116, allocations: 1.472 MB / 0.6577 GB, free: 37.79 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002727/1.119, allocations: 476.5 kB / 0.6582 GB, free: 37.41 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01227/1.131, allocations: 5.203 MB / 0.6633 GB, free: 32.85 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002765/1.134, allocations: 2.332 MB / 0.6655 GB, free: 31.01 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001848/1.136, allocations: 386.8 kB / 0.6659 GB, free: 30.74 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001559/1.137, allocations: 1.099 MB / 0.667 GB, free: 29.73 MB / 426.7 MB Notification: Performance of SimCode: time 1.282e-06/1.137, allocations: 0 / 0.667 GB, free: 29.73 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.327/1.464, allocations: 50.16 MB / 0.716 GB, free: 92.5 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001535/1.465, allocations: 216.2 kB / 0.7162 GB, free: 92.28 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.721/5.185, allocations: 0 / 0.7162 GB, free: 92.28 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter_res.mat does not exist to compare? outputFormat=mat