Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.003053/0.003052, allocations: 180.8 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.259/2.259, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001122/0.001122, allocations: 86.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.386e-05/3.425e-05, allocations: 3.938 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09968/0.09975, allocations: 47.57 MB / 369.2 MB, free: 2.098 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4665/0.5663, allocations: 108 MB / 477.2 MB, free: 1.684 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003169/0.5667, allocations: 86.39 kB / 477.3 MB, free: 1.641 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6439/1.211, allocations: 79.45 MB / 0.5437 GB, free: 89.25 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.617e-06/1.211, allocations: 1.219 kB / 0.5437 GB, free: 89.25 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004006/1.211, allocations: 75.2 kB / 0.5438 GB, free: 89.24 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.01477/1.226, allocations: 3.165 MB / 0.5469 GB, free: 88.08 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.358e-05/1.226, allocations: 9.531 kB / 0.5469 GB, free: 88.08 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002392/1.228, allocations: 447.5 kB / 0.5473 GB, free: 88.02 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00687/1.235, allocations: 0.7238 MB / 0.548 GB, free: 87.84 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01356/1.249, allocations: 3.286 MB / 0.5512 GB, free: 87.32 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003968/1.249, allocations: 238 kB / 0.5514 GB, free: 87.31 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001543/1.251, allocations: 310.3 kB / 0.5517 GB, free: 87.31 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01341/1.264, allocations: 4.054 MB / 0.5557 GB, free: 86.93 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001342/1.265, allocations: 6.484 kB / 0.5557 GB, free: 86.93 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006856/1.265, allocations: 138 kB / 0.5558 GB, free: 86.93 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001882/1.266, allocations: 140.6 kB / 0.556 GB, free: 86.92 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01064/1.276, allocations: 3.284 MB / 0.5592 GB, free: 86.89 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03506/1.311, allocations: 13.23 MB / 0.5721 GB, free: 81.75 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009628/1.321, allocations: 6.81 MB / 0.5787 GB, free: 75.55 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003362/1.324, allocations: 1.327 MB / 0.58 GB, free: 75.05 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009421/1.334, allocations: 3.696 MB / 0.5837 GB, free: 72.99 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.644e-05/1.334, allocations: 44.34 kB / 0.5837 GB, free: 72.94 MB / 410.7 MB Notification: Performance of pre-optimization done (n=117): time 4.919e-06/1.334, allocations: 3.375 kB / 0.5837 GB, free: 72.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=120): time 0.009902/1.344, allocations: 3.813 MB / 0.5874 GB, free: 70.88 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.157e-05/1.344, allocations: 66.75 kB / 0.5875 GB, free: 70.81 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003466/1.347, allocations: 1.47 MB / 0.5889 GB, free: 70.21 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000314/1.348, allocations: 44.55 kB / 0.589 GB, free: 70.16 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009718/1.349, allocations: 1.366 MB / 0.5903 GB, free: 69.07 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000571/1.349, allocations: 420.5 kB / 0.5907 GB, free: 68.75 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001371/1.35, allocations: 34.41 kB / 0.5907 GB, free: 68.72 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001363/1.35, allocations: 374.4 kB / 0.5911 GB, free: 68.38 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001536/1.351, allocations: 0.5961 MB / 0.5917 GB, free: 68.14 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00181/1.353, allocations: 1.059 MB / 0.5927 GB, free: 67.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001926/1.355, allocations: 0.807 MB / 0.5935 GB, free: 66.97 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.466e-05/1.355, allocations: 3.625 kB / 0.5935 GB, free: 66.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.005123/1.36, allocations: 2.104 MB / 0.5956 GB, free: 66.12 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.668e-05/1.36, allocations: 14.16 kB / 0.5956 GB, free: 66.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.937e-05/1.36, allocations: 15.03 kB / 0.5956 GB, free: 66.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001063/1.361, allocations: 265 kB / 0.5958 GB, free: 66.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0027/1.364, allocations: 356.5 kB / 0.5962 GB, free: 66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006563/1.371, allocations: 5.674 MB / 0.6017 GB, free: 61.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002448/1.373, allocations: 73.2 kB / 0.6018 GB, free: 61.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003778/1.374, allocations: 70.05 kB / 0.6019 GB, free: 61.06 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.0004472/1.374, allocations: 202.2 kB / 0.602 GB, free: 60.88 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005769/1.375, allocations: 181.4 kB / 0.6022 GB, free: 60.79 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005501/1.38, allocations: 2.032 MB / 0.6042 GB, free: 59.77 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.188e-05/1.38, allocations: 13.69 kB / 0.6042 GB, free: 59.77 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.751e-05/1.38, allocations: 7.875 kB / 0.6042 GB, free: 59.76 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.444e-05/1.38, allocations: 6.656 kB / 0.6042 GB, free: 59.76 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01265/1.393, allocations: 4.691 MB / 0.6088 GB, free: 57.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.396e-05/1.393, allocations: 0 / 0.6088 GB, free: 57.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001561/1.395, allocations: 176.2 kB / 0.609 GB, free: 57.49 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002047/1.397, allocations: 448.3 kB / 0.6094 GB, free: 57.33 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002624/1.397, allocations: 38.62 kB / 0.6094 GB, free: 57.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01279/1.41, allocations: 10.04 MB / 0.6192 GB, free: 48.78 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.152e-06/1.41, allocations: 6.984 kB / 0.6193 GB, free: 48.78 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00688/1.417, allocations: 2.962 MB / 0.6221 GB, free: 47.11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0015/1.418, allocations: 400.2 kB / 0.6225 GB, free: 46.74 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005667/1.419, allocations: 35.61 kB / 0.6226 GB, free: 46.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001949/1.421, allocations: 74.77 kB / 0.6226 GB, free: 46.65 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003642/1.421, allocations: 98.36 kB / 0.6227 GB, free: 46.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001212/1.422, allocations: 39.84 kB / 0.6228 GB, free: 46.55 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002638/1.424, allocations: 1.125 MB / 0.6239 GB, free: 45.53 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.22e-07/1.424, allocations: 0 / 0.6239 GB, free: 45.53 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003539/1.428, allocations: 0.5735 MB / 0.6244 GB, free: 44.96 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.007795/1.436, allocations: 4.264 MB / 0.6286 GB, free: 40.91 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004554/1.44, allocations: 1.956 MB / 0.6305 GB, free: 39.03 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.847e-06/1.44, allocations: 4 kB / 0.6305 GB, free: 39.02 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003512/1.444, allocations: 1.475 MB / 0.6319 GB, free: 37.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003992/1.448, allocations: 486.1 kB / 0.6324 GB, free: 37.22 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01552/1.464, allocations: 5.165 MB / 0.6374 GB, free: 32.66 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00294/1.467, allocations: 2.285 MB / 0.6397 GB, free: 30.85 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002522/1.469, allocations: 1.11 MB / 0.6408 GB, free: 29.82 MB / 410.7 MB Notification: Performance of SimCode: time 1.453e-06/1.469, allocations: 0 / 0.6408 GB, free: 29.82 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.157/5.627, allocations: 119.6 MB / 0.7576 GB, free: 77.18 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter_res.mat does not exist to compare? outputFormat=mat