Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.001099/0.001099, allocations: 172.4 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.327/1.327, 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.0007972/0.0007972, allocations: 82.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.793e-05/2.804e-05, allocations: 4 kB / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08179/0.08184, allocations: 47.57 MB / 370.1 MB, free: 1.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3133/0.3952, allocations: 108 MB / 478.1 MB, free: 1.734 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00024/0.3955, allocations: 86.08 kB / 478.2 MB, free: 1.691 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3947/0.7902, allocations: 79.45 MB / 0.5446 GB, free: 89.48 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.7902, allocations: 0 / 0.5446 GB, free: 89.48 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003881/0.7906, allocations: 78.62 kB / 0.5447 GB, free: 89.48 MB / 410.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.009954/0.8006, allocations: 3.169 MB / 0.5478 GB, free: 88.31 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.8007, allocations: 9.5 kB / 0.5478 GB, free: 88.31 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001532/0.8022, allocations: 450.4 kB / 0.5482 GB, free: 88.25 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004635/0.8069, allocations: 0.7107 MB / 0.5489 GB, free: 88.07 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009768/0.8167, allocations: 3.294 MB / 0.5521 GB, free: 87.55 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003424/0.817, allocations: 239.3 kB / 0.5524 GB, free: 87.54 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00135/0.8184, allocations: 311 kB / 0.5527 GB, free: 87.54 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006627/0.8251, allocations: 4.054 MB / 0.5566 GB, free: 87.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.513e-05/0.8251, allocations: 11.72 kB / 0.5566 GB, free: 87.16 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002823/0.8254, allocations: 128.8 kB / 0.5567 GB, free: 87.16 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001003/0.8255, allocations: 147.2 kB / 0.5569 GB, free: 87.15 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005368/0.8309, allocations: 3.278 MB / 0.5601 GB, free: 87.12 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01696/0.8479, allocations: 13.23 MB / 0.573 GB, free: 81.83 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004634/0.8526, allocations: 6.811 MB / 0.5797 GB, free: 75.63 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001628/0.8542, allocations: 1.329 MB / 0.581 GB, free: 75.14 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004988/0.8592, allocations: 3.694 MB / 0.5846 GB, free: 73.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.09e-05/0.8593, allocations: 43.5 kB / 0.5846 GB, free: 73.03 MB / 410.7 MB Notification: Performance of pre-optimization done (n=117): time 2.385e-06/0.8593, allocations: 4 kB / 0.5846 GB, free: 73.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=120): time 0.005531/0.8648, allocations: 3.817 MB / 0.5883 GB, free: 70.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.525e-05/0.8649, allocations: 63.09 kB / 0.5884 GB, free: 70.89 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001932/0.8668, allocations: 1.473 MB / 0.5898 GB, free: 70.29 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.311e-05/0.8669, allocations: 49.55 kB / 0.5899 GB, free: 70.24 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005418/0.8674, allocations: 1.417 MB / 0.5913 GB, free: 69.16 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002023/0.8676, allocations: 424.1 kB / 0.5917 GB, free: 68.84 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.314e-05/0.8677, allocations: 27.75 kB / 0.5917 GB, free: 68.81 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.393e-05/0.8678, allocations: 375.2 kB / 0.5921 GB, free: 68.48 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007095/0.8685, allocations: 0.5881 MB / 0.5926 GB, free: 68.24 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008515/0.8694, allocations: 1.062 MB / 0.5937 GB, free: 67.41 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009124/0.8703, allocations: 0.8028 MB / 0.5945 GB, free: 67.07 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.8703, allocations: 3.688 kB / 0.5945 GB, free: 67.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.002786/0.8731, allocations: 2.213 MB / 0.5966 GB, free: 66.17 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.8731, allocations: 10.62 kB / 0.5966 GB, free: 66.17 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.56e-05/0.8732, allocations: 18.78 kB / 0.5966 GB, free: 66.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005693/0.8737, allocations: 265.1 kB / 0.5969 GB, free: 66.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001218/0.875, allocations: 359.5 kB / 0.5972 GB, free: 66.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003795/0.8788, allocations: 5.67 MB / 0.6028 GB, free: 61.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001629/0.8804, allocations: 83.52 kB / 0.6029 GB, free: 61.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002443/0.8807, allocations: 70.12 kB / 0.6029 GB, free: 61.1 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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.0003711/0.8811, allocations: 206.7 kB / 0.6031 GB, free: 60.91 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004446/0.8815, allocations: 176.2 kB / 0.6033 GB, free: 60.82 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003319/0.8849, allocations: 2.037 MB / 0.6053 GB, free: 59.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.197e-06/0.8849, allocations: 10.41 kB / 0.6053 GB, free: 59.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-05/0.8849, allocations: 7.719 kB / 0.6053 GB, free: 59.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.486e-05/0.8849, allocations: 6.188 kB / 0.6053 GB, free: 59.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00846/0.8934, allocations: 4.69 MB / 0.6099 GB, free: 57.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.8934, allocations: 0 / 0.6099 GB, free: 57.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007313/0.8942, allocations: 172.3 kB / 0.61 GB, free: 57.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001084/0.8953, allocations: 447.2 kB / 0.6105 GB, free: 57.37 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000105/0.8954, allocations: 37.95 kB / 0.6105 GB, free: 57.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007315/0.9027, allocations: 10.04 MB / 0.6203 GB, free: 48.83 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.9028, allocations: 7.812 kB / 0.6203 GB, free: 48.82 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003919/0.9067, allocations: 2.967 MB / 0.6232 GB, free: 46.86 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00101/0.9077, allocations: 405.9 kB / 0.6236 GB, free: 46.48 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005552/0.9083, allocations: 35.7 kB / 0.6236 GB, free: 46.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0012/0.9095, allocations: 74.86 kB / 0.6237 GB, free: 46.39 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000253/0.9098, allocations: 94.27 kB / 0.6238 GB, free: 46.33 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.369e-05/0.9099, allocations: 39.28 kB / 0.6238 GB, free: 46.29 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001666/0.9116, allocations: 1.127 MB / 0.6249 GB, free: 45.27 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.9116, allocations: 4 kB / 0.6249 GB, free: 45.27 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002199/0.9138, allocations: 0.5738 MB / 0.6255 GB, free: 44.7 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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.003909/0.9177, allocations: 4.244 MB / 0.6296 GB, free: 40.66 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002737/0.9204, allocations: 1.967 MB / 0.6316 GB, free: 38.77 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/0.9205, allocations: 4 kB / 0.6316 GB, free: 38.77 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001945/0.9224, allocations: 1.478 MB / 0.633 GB, free: 37.32 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002887/0.9253, allocations: 484 kB / 0.6335 GB, free: 36.96 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01192/0.9373, allocations: 5.24 MB / 0.6386 GB, free: 32.37 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002374/0.9397, allocations: 2.334 MB / 0.6409 GB, free: 30.52 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001552/0.9413, allocations: 385.8 kB / 0.6412 GB, free: 30.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00143/0.9427, allocations: 1.093 MB / 0.6423 GB, free: 29.24 MB / 410.7 MB Notification: Performance of SimCode: time 2.625e-06/0.9427, allocations: 4 kB / 0.6423 GB, free: 29.24 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2661/1.209, allocations: 50.01 MB / 0.6911 GB, free: 96.97 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001554/1.209, allocations: 200.5 kB / 0.6913 GB, free: 96.75 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.853/4.062, allocations: 3.438 kB / 0.6913 GB, free: 96.75 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter_res.mat does not exist to compare? outputFormat=mat