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.002254/0.002253, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.066/2.066, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001124/0.001124, allocations: 87.64 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.124e-05/2.134e-05, allocations: 4 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.347/0.3471, allocations: 47.57 MB / 362.4 MB, free: 45.71 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1771/0.5242, allocations: 107.4 MB / 469.8 MB, free: 10.77 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003498/0.5246, allocations: 79.95 kB / 469.9 MB, free: 10.69 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6/1.125, allocations: 78.45 MB / 0.5355 GB, free: 93.61 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.954e-06/1.125, allocations: 4 kB / 0.5355 GB, free: 93.61 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003126/1.125, allocations: 78.41 kB / 0.5356 GB, free: 93.59 MB / 395.1 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.0134/1.139, allocations: 3.163 MB / 0.5387 GB, free: 92.02 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.473e-05/1.139, allocations: 10.81 kB / 0.5387 GB, free: 92.02 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006178/1.145, allocations: 0.717 MB / 0.5394 GB, free: 91.78 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01241/1.157, allocations: 3.286 MB / 0.5426 GB, free: 90.16 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002632/1.158, allocations: 102.8 kB / 0.5427 GB, free: 90.15 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001382/1.159, allocations: 189.9 kB / 0.5428 GB, free: 90.15 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01015/1.169, allocations: 3.102 MB / 0.5459 GB, free: 88.77 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01223/1.181, allocations: 3.602 MB / 0.5494 GB, free: 87.13 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000123/1.182, allocations: 6.344 kB / 0.5494 GB, free: 87.13 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004089/1.182, allocations: 6.906 kB / 0.5494 GB, free: 87.13 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001817/1.182, allocations: 140.7 kB / 0.5495 GB, free: 87.11 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0307/1.213, allocations: 12.63 MB / 0.5619 GB, free: 78.73 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008771/1.222, allocations: 6.749 MB / 0.5685 GB, free: 71.12 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003171/1.225, allocations: 1.264 MB / 0.5697 GB, free: 69.88 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009518/1.235, allocations: 3.596 MB / 0.5732 GB, free: 66.22 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.946e-05/1.235, allocations: 47.88 kB / 0.5733 GB, free: 66.17 MB / 395.1 MB Notification: Performance of pre-optimization done (n=117): time 4.548e-06/1.235, allocations: 0 / 0.5733 GB, free: 66.17 MB / 395.1 MB Notification: Performance of matching and sorting (n=120): time 0.01156/1.246, allocations: 4.01 MB / 0.5772 GB, free: 62.05 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.454e-05/1.246, allocations: 64.72 kB / 0.5772 GB, free: 61.98 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002698/1.249, allocations: 1.201 MB / 0.5784 GB, free: 60.77 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000294/1.249, allocations: 29.7 kB / 0.5784 GB, free: 60.73 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008907/1.25, allocations: 1.371 MB / 0.5798 GB, free: 59.35 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000434/1.251, allocations: 406 kB / 0.5802 GB, free: 58.95 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001047/1.251, allocations: 7.938 kB / 0.5802 GB, free: 58.94 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/1.251, allocations: 374.7 kB / 0.5805 GB, free: 58.56 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001313/1.252, allocations: 0.5623 MB / 0.5811 GB, free: 58 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001472/1.254, allocations: 1.02 MB / 0.5821 GB, free: 56.78 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002604/1.256, allocations: 0.8962 MB / 0.583 GB, free: 55.88 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.357e-05/1.256, allocations: 8 kB / 0.583 GB, free: 55.88 MB / 395.1 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.005535/1.262, allocations: 2.063 MB / 0.585 GB, free: 53.77 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.536e-05/1.262, allocations: 8 kB / 0.585 GB, free: 53.77 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.755e-05/1.262, allocations: 16 kB / 0.585 GB, free: 53.75 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001015/1.263, allocations: 259.2 kB / 0.5852 GB, free: 53.48 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002538/1.266, allocations: 363.5 kB / 0.5856 GB, free: 53.13 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006008/1.272, allocations: 5.455 MB / 0.5909 GB, free: 47.33 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002162/1.274, allocations: 51.86 kB / 0.591 GB, free: 47.28 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002927/1.274, allocations: 75.94 kB / 0.591 GB, free: 47.2 MB / 395.1 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.0003795/1.275, allocations: 152.5 kB / 0.5912 GB, free: 47.05 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005022/1.28, allocations: 1.9 MB / 0.593 GB, free: 45.08 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004718/1.28, allocations: 173.4 kB / 0.5932 GB, free: 44.91 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005387/1.286, allocations: 2.02 MB / 0.5952 GB, free: 42.82 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.688e-05/1.286, allocations: 12 kB / 0.5952 GB, free: 42.81 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.198e-05/1.286, allocations: 8.125 kB / 0.5952 GB, free: 42.8 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.756e-05/1.286, allocations: 7.938 kB / 0.5952 GB, free: 42.8 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01025/1.296, allocations: 4.319 MB / 0.5994 GB, free: 38.39 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.098e-05/1.296, allocations: 0 / 0.5994 GB, free: 38.39 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001358/1.297, allocations: 167.8 kB / 0.5996 GB, free: 38.22 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001825/1.299, allocations: 440.2 kB / 0.6 GB, free: 37.78 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001267/1.299, allocations: 19.98 kB / 0.6 GB, free: 37.76 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01133/1.311, allocations: 9.666 MB / 0.6095 GB, free: 27.52 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.118e-06/1.311, allocations: 3.938 kB / 0.6095 GB, free: 27.52 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006691/1.318, allocations: 2.982 MB / 0.6124 GB, free: 24.4 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001195/1.319, allocations: 379 kB / 0.6127 GB, free: 24.01 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003196/1.319, allocations: 8 kB / 0.6127 GB, free: 24 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001474/1.321, allocations: 60.06 kB / 0.6128 GB, free: 23.95 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003079/1.321, allocations: 97.12 kB / 0.6129 GB, free: 23.85 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001069/1.321, allocations: 32 kB / 0.6129 GB, free: 23.82 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001808/1.323, allocations: 0.9192 MB / 0.6138 GB, free: 22.9 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.01e-07/1.323, allocations: 0 / 0.6138 GB, free: 22.9 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.00309/1.326, allocations: 0.5 MB / 0.6143 GB, free: 22.4 MB / 395.1 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.00735/1.333, allocations: 4.2 MB / 0.6184 GB, free: 18.1 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.003788/1.337, allocations: 1.88 MB / 0.6202 GB, free: 16.17 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/1.337, allocations: 0 / 0.6202 GB, free: 16.17 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002918/1.34, allocations: 1.408 MB / 0.6216 GB, free: 14.71 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002895/1.343, allocations: 361 kB / 0.622 GB, free: 14.36 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01396/1.357, allocations: 5.003 MB / 0.6269 GB, free: 9.277 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002382/1.36, allocations: 2.293 MB / 0.6291 GB, free: 6.961 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002172/1.362, allocations: 1.093 MB / 0.6302 GB, free: 5.867 MB / 395.1 MB Notification: Performance of SimCode: time 1.333e-06/1.362, allocations: 7.938 kB / 0.6302 GB, free: 5.859 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.979/5.34, allocations: 117.3 MB / 0.7448 GB, free: 41.93 MB / 411.1 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