Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.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.Electrical.Machines.Examples.Transformers.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer",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.001/0.001, allocations: 181.2 kB / 17.01 MB, free: 5.125 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.364/1.364, allocations: 205.4 MB / 223.1 MB, free: 9.133 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.0008691/0.0008689, allocations: 96.09 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002837/0.0002841, allocations: 12 kB / 328.4 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2457, allocations: 47.57 MB / 375.9 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1291/0.3749, allocations: 111.8 MB / 487.7 MB, free: 0.7539 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003232/0.3753, allocations: 91.89 kB / 487.8 MB, free: 0.6641 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3874/0.7627, allocations: 93.34 MB / 0.5675 GB, free: 49.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.7627, allocations: 4 kB / 0.5676 GB, free: 49.31 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003287/0.7631, allocations: 95.88 kB / 0.5676 GB, free: 49.22 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.009638/0.7727, allocations: 3.955 MB / 0.5715 GB, free: 45.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.7728, allocations: 8.031 kB / 0.5715 GB, free: 45.19 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002212/0.775, allocations: 0.5097 MB / 0.572 GB, free: 44.67 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002652/0.7777, allocations: 0.5063 MB / 0.5725 GB, free: 44.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005484/0.7832, allocations: 2.56 MB / 0.575 GB, free: 41.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002047/0.7834, allocations: 271 kB / 0.5753 GB, free: 41.28 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009179/0.7843, allocations: 351.9 kB / 0.5756 GB, free: 40.94 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008376/0.7927, allocations: 4.94 MB / 0.5804 GB, free: 35.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.171e-05/0.7928, allocations: 8.188 kB / 0.5804 GB, free: 35.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003521/0.7932, allocations: 159.9 kB / 0.5806 GB, free: 35.68 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001212/0.7933, allocations: 175.1 kB / 0.5808 GB, free: 35.51 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005491/0.7988, allocations: 4.064 MB / 0.5847 GB, free: 31.44 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01845/0.8173, allocations: 14.95 MB / 0.5993 GB, free: 16.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003201/0.8205, allocations: 4.207 MB / 0.6034 GB, free: 11.66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000279/0.8208, allocations: 155 kB / 0.6036 GB, free: 11.49 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/0.8209, allocations: 60.55 kB / 0.6036 GB, free: 11.42 MB / 378.7 MB Notification: Performance of pre-optimization done (n=201): time 4.448e-06/0.8209, allocations: 0 / 0.6036 GB, free: 11.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=221): time 0.01704/0.8379, allocations: 10.17 MB / 0.6136 GB, free: 1.145 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.59e-05/0.838, allocations: 73.41 kB / 0.6136 GB, free: 1.059 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003169/0.8412, allocations: 2.213 MB / 0.6158 GB, free: 14.82 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001673/0.8414, allocations: 65.7 kB / 0.6159 GB, free: 14.75 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001156/0.8425, allocations: 1.6 MB / 0.6174 GB, free: 13.14 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006133/0.8431, allocations: 0.7432 MB / 0.6181 GB, free: 12.38 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001279/0.8433, allocations: 44 kB / 0.6182 GB, free: 12.34 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001905/0.8435, allocations: 398.5 kB / 0.6186 GB, free: 11.95 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001923/0.8454, allocations: 1.301 MB / 0.6198 GB, free: 10.64 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00213/0.8475, allocations: 1.741 MB / 0.6215 GB, free: 8.727 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002105/0.8497, allocations: 1.552 MB / 0.6231 GB, free: 7.176 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/0.8497, allocations: 4 kB / 0.6231 GB, free: 7.172 MB / 394.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.006235/0.8559, allocations: 4.052 MB / 0.627 GB, free: 3.094 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.626e-05/0.856, allocations: 12 kB / 0.627 GB, free: 3.082 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.92e-05/0.856, allocations: 12 kB / 0.627 GB, free: 3.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001797/0.8578, allocations: 0.7527 MB / 0.6278 GB, free: 2.305 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002001/0.8598, allocations: 0.5266 MB / 0.6283 GB, free: 1.777 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009299/0.8691, allocations: 8.956 MB / 0.637 GB, free: 8.422 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001959/0.8711, allocations: 127.9 kB / 0.6372 GB, free: 8.297 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001809/0.8713, allocations: 83.98 kB / 0.6372 GB, free: 8.215 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (248): * Single equations (assignments): 243 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002295/0.8736, allocations: 1.208 MB / 0.6384 GB, free: 6.996 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004983/0.8741, allocations: 280.6 kB / 0.6387 GB, free: 6.719 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005874/0.88, allocations: 3.777 MB / 0.6424 GB, free: 2.906 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.667e-05/0.88, allocations: 24 kB / 0.6424 GB, free: 2.883 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.709e-06/0.88, allocations: 11.94 kB / 0.6424 GB, free: 2.871 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.736e-05/0.88, allocations: 11.95 kB / 0.6424 GB, free: 2.859 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2319/1.112, allocations: 8.066 MB / 0.6503 GB, free: 81.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.331e-05/1.112, allocations: 7.531 kB / 0.6503 GB, free: 81.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00156/1.114, allocations: 397.4 kB / 0.6507 GB, free: 81.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001981/1.116, allocations: 0.8117 MB / 0.6515 GB, free: 81.09 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001676/1.116, allocations: 51.7 kB / 0.6515 GB, free: 81.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00918/1.125, allocations: 10.47 MB / 0.6617 GB, free: 75.97 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/1.125, allocations: 4.828 kB / 0.6618 GB, free: 75.97 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008231/1.133, allocations: 5.831 MB / 0.6674 GB, free: 75.33 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002161/1.135, allocations: 0.6449 MB / 0.6681 GB, free: 75.24 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006298/1.136, allocations: 52.62 kB / 0.6681 GB, free: 75.24 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001424/1.138, allocations: 127.5 kB / 0.6682 GB, free: 75.24 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004306/1.138, allocations: 187 kB / 0.6684 GB, free: 75.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001496/1.138, allocations: 66.94 kB / 0.6685 GB, free: 75.23 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002451/1.141, allocations: 1.706 MB / 0.6702 GB, free: 75.09 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.141, allocations: 3.469 kB / 0.6702 GB, free: 75.09 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003391/1.144, allocations: 0.8297 MB / 0.671 GB, free: 75.09 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 173 * 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: 4 * 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: 4 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01021/1.154, allocations: 7.357 MB / 0.6782 GB, free: 73.27 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007408/1.162, allocations: 3.928 MB / 0.682 GB, free: 72.65 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/1.162, allocations: 1.125 kB / 0.682 GB, free: 72.65 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004505/1.166, allocations: 2.515 MB / 0.6844 GB, free: 72.01 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004468/1.171, allocations: 0.7457 MB / 0.6852 GB, free: 71.82 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04754/1.218, allocations: 31.96 MB / 0.7164 GB, free: 51.16 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002524/1.221, allocations: 2.848 MB / 0.7192 GB, free: 50.02 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002638/1.224, allocations: 0.68 MB / 0.7198 GB, free: 49.96 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001782/1.225, allocations: 1.396 MB / 0.7212 GB, free: 48.83 MB / 410.7 MB Notification: Performance of SimCode: time 1.523e-06/1.225, allocations: 0 / 0.7212 GB, free: 48.83 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.123/1.348, allocations: 74.78 MB / 0.7942 GB, free: 2.059 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002923/1.349, allocations: 220.5 kB / 0.7944 GB, free: 1.816 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.815/5.163, allocations: 0 / 0.7944 GB, free: 1.816 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer_res.mat does not exist to compare? outputFormat=mat