Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00166/0.00166, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.579/1.579, allocations: 225.4 MB / 240.1 MB, free: 15.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009575/0.0009574, allocations: 91.34 kB / 292.1 MB, free: 5.973 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.845e-05/2.873e-05, allocations: 4 kB / 350.6 MB, free: 2.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1069, allocations: 51.49 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3532/0.4601, allocations: 113 MB / 0.503 GB, free: 8.891 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002239/0.4604, allocations: 87.78 kB / 0.5031 GB, free: 8.848 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5091/0.9695, allocations: 94.05 MB / 0.5949 GB, free: 73.09 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.9695, allocations: 0 / 0.5949 GB, free: 73.09 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005279/0.9701, allocations: 101.7 kB / 0.595 GB, free: 73.07 MB / 442.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.01325/0.9833, allocations: 3.569 MB / 0.5985 GB, free: 71.76 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.049e-05/0.9834, allocations: 9.906 kB / 0.5985 GB, free: 71.76 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002163/0.9856, allocations: 0.501 MB / 0.599 GB, free: 71.7 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003391/0.989, allocations: 0.5398 MB / 0.5996 GB, free: 71.48 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008198/0.9972, allocations: 2.545 MB / 0.602 GB, free: 70.92 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003001/0.9975, allocations: 266.3 kB / 0.6023 GB, free: 70.91 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001417/0.999, allocations: 350.1 kB / 0.6026 GB, free: 70.91 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0123/1.011, allocations: 4.829 MB / 0.6073 GB, free: 70.4 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.8e-05/1.011, allocations: 7.391 kB / 0.6074 GB, free: 70.4 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004072/1.012, allocations: 153.6 kB / 0.6075 GB, free: 70.4 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000235/1.012, allocations: 175.9 kB / 0.6077 GB, free: 70.39 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008218/1.02, allocations: 3.906 MB / 0.6115 GB, free: 70.36 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02663/1.047, allocations: 14.94 MB / 0.6261 GB, free: 66.79 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003957/1.051, allocations: 4.152 MB / 0.6301 GB, free: 63.96 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002184/1.053, allocations: 1.828 MB / 0.6319 GB, free: 63.33 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003019/1.054, allocations: 154.7 kB / 0.6321 GB, free: 63.23 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.358e-05/1.054, allocations: 52.12 kB / 0.6321 GB, free: 63.18 MB / 442.7 MB Notification: Performance of pre-optimization done (n=201): time 4.859e-06/1.054, allocations: 0 / 0.6321 GB, free: 63.18 MB / 442.7 MB Notification: Performance of matching and sorting (n=221): time 0.01608/1.07, allocations: 8.351 MB / 0.6403 GB, free: 60 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.453e-05/1.07, allocations: 78.78 kB / 0.6403 GB, free: 59.93 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003412/1.073, allocations: 2.181 MB / 0.6425 GB, free: 59.09 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001936/1.073, allocations: 65.2 kB / 0.6425 GB, free: 59.02 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009086/1.074, allocations: 1.599 MB / 0.6441 GB, free: 57.8 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004804/1.075, allocations: 0.7394 MB / 0.6448 GB, free: 57.23 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001199/1.075, allocations: 46.72 kB / 0.6449 GB, free: 57.19 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001317/1.075, allocations: 394.8 kB / 0.6452 GB, free: 56.85 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001534/1.077, allocations: 1.24 MB / 0.6464 GB, free: 56.39 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001864/1.078, allocations: 1.664 MB / 0.6481 GB, free: 55.44 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001884/1.08, allocations: 1.491 MB / 0.6495 GB, free: 54.88 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.155e-06/1.08, allocations: 3.25 kB / 0.6495 GB, free: 54.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.005901/1.086, allocations: 3.905 MB / 0.6533 GB, free: 53.41 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.934e-05/1.086, allocations: 13.08 kB / 0.6534 GB, free: 53.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.949e-05/1.086, allocations: 22.66 kB / 0.6534 GB, free: 53.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001737/1.088, allocations: 0.7529 MB / 0.6541 GB, free: 53.17 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001951/1.09, allocations: 0.5289 MB / 0.6546 GB, free: 53.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008402/1.098, allocations: 8.713 MB / 0.6631 GB, free: 47.02 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002485/1.101, allocations: 122.4 kB / 0.6633 GB, free: 46.98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002198/1.101, allocations: 84.38 kB / 0.6633 GB, free: 46.96 MB / 442.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 () * 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.00051/1.102, allocations: 240 kB / 0.6636 GB, free: 46.76 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004795/1.102, allocations: 276.6 kB / 0.6638 GB, free: 46.62 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005782/1.108, allocations: 3.644 MB / 0.6674 GB, free: 45.19 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.682e-05/1.108, allocations: 22.53 kB / 0.6674 GB, free: 45.19 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/1.108, allocations: 7.469 kB / 0.6674 GB, free: 45.19 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-05/1.108, allocations: 11.11 kB / 0.6674 GB, free: 45.19 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01238/1.12, allocations: 7.946 MB / 0.6752 GB, free: 42.03 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/1.12, allocations: 3.906 kB / 0.6752 GB, free: 42.03 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001539/1.122, allocations: 395.4 kB / 0.6756 GB, free: 42 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002009/1.124, allocations: 0.8097 MB / 0.6764 GB, free: 41.76 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001612/1.124, allocations: 55.22 kB / 0.6764 GB, free: 41.73 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009193/1.133, allocations: 10.21 MB / 0.6864 GB, free: 34.26 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/1.133, allocations: 7.438 kB / 0.6864 GB, free: 34.25 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007997/1.141, allocations: 5.614 MB / 0.6919 GB, free: 31.71 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001872/1.143, allocations: 0.6447 MB / 0.6925 GB, free: 31.32 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003942/1.144, allocations: 53.41 kB / 0.6926 GB, free: 31.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00135/1.145, allocations: 127.4 kB / 0.6927 GB, free: 31.25 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004558/1.146, allocations: 176.1 kB / 0.6928 GB, free: 31.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001498/1.146, allocations: 62.56 kB / 0.6929 GB, free: 31.21 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002856/1.149, allocations: 1.682 MB / 0.6945 GB, free: 30.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.31e-07/1.149, allocations: 0 / 0.6945 GB, free: 30.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002682/1.151, allocations: 0.8359 MB / 0.6954 GB, free: 29.47 MB / 442.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 () * 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.007442/1.159, allocations: 7.132 MB / 0.7023 GB, free: 22.97 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004883/1.164, allocations: 3.778 MB / 0.706 GB, free: 19.49 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/1.164, allocations: 4 kB / 0.706 GB, free: 19.48 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003029/1.167, allocations: 2.439 MB / 0.7084 GB, free: 17.23 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003907/1.171, allocations: 0.737 MB / 0.7091 GB, free: 16.66 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01323/1.184, allocations: 7.513 MB / 0.7165 GB, free: 10.19 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002153/1.186, allocations: 2.848 MB / 0.7192 GB, free: 8 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002249/1.188, allocations: 0.6789 MB / 0.7199 GB, free: 7.523 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00165/1.19, allocations: 1.4 MB / 0.7213 GB, free: 6.23 MB / 442.7 MB Notification: Performance of SimCode: time 1.132e-06/1.19, allocations: 0 / 0.7213 GB, free: 6.23 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4496/1.64, allocations: 74.97 MB / 0.7945 GB, free: 70.5 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001607/1.64, allocations: 201.5 kB / 0.7947 GB, free: 70.28 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.295/5.935, allocations: 0 / 0.7947 GB, free: 70.28 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat