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.001652/0.001652, allocations: 176.4 kB / 8.346 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.415/1.415, allocations: 221.5 MB / 230.3 MB, free: 7.559 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.0008954/0.0008954, allocations: 99.45 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.895e-05/1.923e-05, allocations: 7.938 kB / 337.1 MB, free: 9.914 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09576/0.09579, allocations: 50.42 MB / 387.6 MB, free: 7.449 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3891/0.4849, allocations: 108.2 MB / 495.8 MB, free: 2.422 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003655/0.4854, allocations: 95.94 kB / 495.9 MB, free: 2.328 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4411/0.9265, allocations: 78.64 MB / 0.5611 GB, free: 94.28 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.9265, allocations: 0 / 0.5611 GB, free: 94.28 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002683/0.9268, allocations: 78.34 kB / 0.5611 GB, free: 94.27 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.01066/0.9375, allocations: 3.177 MB / 0.5642 GB, free: 93.12 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.9375, allocations: 8.406 kB / 0.5642 GB, free: 93.12 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005208/0.9428, allocations: 0.7157 MB / 0.5649 GB, free: 92.94 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008554/0.9514, allocations: 3.287 MB / 0.5681 GB, free: 92.42 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001794/0.9516, allocations: 100.3 kB / 0.5682 GB, free: 92.42 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008191/0.9524, allocations: 187.4 kB / 0.5684 GB, free: 92.42 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007116/0.9595, allocations: 3.107 MB / 0.5715 GB, free: 92.4 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007694/0.9673, allocations: 3.596 MB / 0.575 GB, free: 92.04 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.903e-05/0.9674, allocations: 15.33 kB / 0.575 GB, free: 92.04 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000274/0.9676, allocations: 2.906 kB / 0.575 GB, free: 92.04 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001147/0.9678, allocations: 141.6 kB / 0.5751 GB, free: 92.03 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01961/0.9874, allocations: 12.62 MB / 0.5874 GB, free: 88.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004826/0.9923, allocations: 6.732 MB / 0.594 GB, free: 82.34 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00167/0.994, allocations: 1.272 MB / 0.5953 GB, free: 81.87 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005692/0.9997, allocations: 3.618 MB / 0.5988 GB, free: 79.86 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/0.9997, allocations: 50.5 kB / 0.5988 GB, free: 79.81 MB / 426.7 MB Notification: Performance of pre-optimization done (n=118): time 3.697e-06/0.9998, allocations: 0 / 0.5988 GB, free: 79.81 MB / 426.7 MB Notification: Performance of matching and sorting (n=121): time 0.007039/1.007, allocations: 4.024 MB / 0.6028 GB, free: 77.74 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.098e-05/1.007, allocations: 67.62 kB / 0.6028 GB, free: 77.67 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001894/1.009, allocations: 1.2 MB / 0.604 GB, free: 77.15 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.803e-05/1.009, allocations: 25.7 kB / 0.604 GB, free: 77.12 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006484/1.01, allocations: 1.41 MB / 0.6054 GB, free: 76.05 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002414/1.01, allocations: 415.1 kB / 0.6058 GB, free: 75.73 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.685e-05/1.01, allocations: 0 / 0.6058 GB, free: 75.73 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.451e-05/1.01, allocations: 361 kB / 0.6062 GB, free: 75.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007155/1.011, allocations: 0.5664 MB / 0.6067 GB, free: 75.16 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008724/1.012, allocations: 1.026 MB / 0.6077 GB, free: 74.33 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001349/1.013, allocations: 0.8902 MB / 0.6086 GB, free: 73.98 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/1.013, allocations: 6.656 kB / 0.6086 GB, free: 73.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.003322/1.016, allocations: 2.171 MB / 0.6107 GB, free: 73.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3e-05/1.016, allocations: 12.88 kB / 0.6107 GB, free: 73.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.308e-05/1.016, allocations: 13.78 kB / 0.6107 GB, free: 73.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006571/1.017, allocations: 263.1 kB / 0.611 GB, free: 73.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001256/1.018, allocations: 352.6 kB / 0.6113 GB, free: 73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003745/1.022, allocations: 5.472 MB / 0.6167 GB, free: 68.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001387/1.023, allocations: 48.05 kB / 0.6167 GB, free: 68.31 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001144/1.024, allocations: 70.75 kB / 0.6168 GB, free: 68.3 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.000264/1.024, allocations: 140.9 kB / 0.6169 GB, free: 68.16 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002957/1.027, allocations: 1.919 MB / 0.6188 GB, free: 67.23 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002948/1.027, allocations: 161.5 kB / 0.6189 GB, free: 67.15 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003782/1.031, allocations: 2.051 MB / 0.6209 GB, free: 66.17 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.39e-05/1.031, allocations: 17.19 kB / 0.621 GB, free: 66.17 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/1.031, allocations: 11.31 kB / 0.621 GB, free: 66.16 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.563e-05/1.031, allocations: 10.3 kB / 0.621 GB, free: 66.16 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00746/1.038, allocations: 4.304 MB / 0.6252 GB, free: 64.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/1.039, allocations: 8.094 kB / 0.6252 GB, free: 64.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007292/1.039, allocations: 167.9 kB / 0.6253 GB, free: 64.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00103/1.04, allocations: 445.9 kB / 0.6258 GB, free: 63.92 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.75e-05/1.04, allocations: 23.16 kB / 0.6258 GB, free: 63.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007236/1.048, allocations: 9.67 MB / 0.6352 GB, free: 55.77 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.994e-06/1.048, allocations: 5.625 kB / 0.6352 GB, free: 55.77 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004099/1.052, allocations: 2.977 MB / 0.6382 GB, free: 54.17 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008325/1.053, allocations: 376.3 kB / 0.6385 GB, free: 53.91 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002187/1.053, allocations: 11.97 kB / 0.6385 GB, free: 53.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008328/1.054, allocations: 57.47 kB / 0.6386 GB, free: 53.89 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002311/1.054, allocations: 98.06 kB / 0.6387 GB, free: 53.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.886e-05/1.054, allocations: 37.62 kB / 0.6387 GB, free: 53.87 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001242/1.055, allocations: 0.9013 MB / 0.6396 GB, free: 53.46 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.055, allocations: 0 / 0.6396 GB, free: 53.46 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002088/1.057, allocations: 0.4998 MB / 0.6401 GB, free: 53.45 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.00438/1.062, allocations: 4.137 MB / 0.6441 GB, free: 50.48 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002509/1.064, allocations: 1.881 MB / 0.6459 GB, free: 48.67 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/1.064, allocations: 0 / 0.6459 GB, free: 48.67 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001683/1.066, allocations: 1.415 MB / 0.6473 GB, free: 47.31 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002067/1.068, allocations: 354.9 kB / 0.6477 GB, free: 47.04 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01026/1.078, allocations: 5.052 MB / 0.6526 GB, free: 42.62 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001687/1.08, allocations: 2.335 MB / 0.6549 GB, free: 40.77 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001477/1.082, allocations: 357.4 kB / 0.6552 GB, free: 40.52 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001283/1.083, allocations: 1.09 MB / 0.6563 GB, free: 39.52 MB / 426.7 MB Notification: Performance of SimCode: time 1.683e-06/1.083, allocations: 0 / 0.6563 GB, free: 39.52 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07154/1.154, allocations: 41.53 MB / 0.6968 GB, free: 3.145 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001561/1.155, allocations: 187.9 kB / 0.697 GB, free: 2.949 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.05/4.204, allocations: 0 / 0.697 GB, free: 2.949 MB / 426.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