Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.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.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 221.3 MB / 235.5 MB, free: 2.957 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.0009368/0.0009366, allocations: 88.11 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.472e-05/4.573e-05, allocations: 0 / 343.9 MB, free: 4.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1007, allocations: 50.41 MB / 394.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3596/0.4603, allocations: 112.1 MB / 0.4946 GB, free: 7.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003522/0.4608, allocations: 87.95 kB / 0.4947 GB, free: 7.184 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5519/1.013, allocations: 93.94 MB / 0.5864 GB, free: 95.72 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.874e-06/1.013, allocations: 0 / 0.5864 GB, free: 95.72 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003306/1.013, allocations: 101.6 kB / 0.5865 GB, free: 95.7 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.0108/1.024, allocations: 3.566 MB / 0.59 GB, free: 94.17 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.945e-05/1.024, allocations: 9.125 kB / 0.59 GB, free: 94.17 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001024/1.025, allocations: 0.4986 MB / 0.5905 GB, free: 93.89 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001384/1.026, allocations: 0.5058 MB / 0.591 GB, free: 93.66 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004351/1.031, allocations: 2.536 MB / 0.5935 GB, free: 92.34 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001359/1.031, allocations: 272.1 kB / 0.5937 GB, free: 92.22 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000452/1.031, allocations: 354.5 kB / 0.5941 GB, free: 92.11 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006659/1.038, allocations: 4.836 MB / 0.5988 GB, free: 89.86 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.968e-05/1.038, allocations: 7.906 kB / 0.5988 GB, free: 89.86 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003144/1.038, allocations: 147.4 kB / 0.5989 GB, free: 89.75 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001251/1.039, allocations: 175.2 kB / 0.5991 GB, free: 89.73 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005253/1.044, allocations: 3.901 MB / 0.6029 GB, free: 88.19 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02004/1.064, allocations: 14.95 MB / 0.6175 GB, free: 80.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003271/1.067, allocations: 4.158 MB / 0.6216 GB, free: 77.77 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002199/1.069, allocations: 1.826 MB / 0.6234 GB, free: 77.1 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002982/1.07, allocations: 148.9 kB / 0.6235 GB, free: 76.95 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.089e-05/1.07, allocations: 60.56 kB / 0.6236 GB, free: 76.88 MB / 426.7 MB Notification: Performance of pre-optimization done (n=201): time 3.907e-06/1.07, allocations: 0 / 0.6236 GB, free: 76.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=221): time 0.01586/1.086, allocations: 8.336 MB / 0.6317 GB, free: 69.55 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.389e-05/1.086, allocations: 73.41 kB / 0.6318 GB, free: 69.46 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003438/1.089, allocations: 2.192 MB / 0.6339 GB, free: 67.25 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002675/1.089, allocations: 61.7 kB / 0.634 GB, free: 67.18 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009318/1.09, allocations: 1.6 MB / 0.6355 GB, free: 65.57 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005195/1.091, allocations: 0.7311 MB / 0.6363 GB, free: 64.84 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/1.091, allocations: 55.94 kB / 0.6363 GB, free: 64.79 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001138/1.091, allocations: 394.5 kB / 0.6367 GB, free: 64.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001531/1.093, allocations: 1.234 MB / 0.6379 GB, free: 63.16 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001645/1.094, allocations: 1.671 MB / 0.6395 GB, free: 61.32 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001692/1.096, allocations: 1.481 MB / 0.641 GB, free: 59.84 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.675e-06/1.096, allocations: 4 kB / 0.641 GB, free: 59.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.005623/1.102, allocations: 3.911 MB / 0.6448 GB, free: 55.9 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.467e-05/1.102, allocations: 12 kB / 0.6448 GB, free: 55.89 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.146e-05/1.102, allocations: 12 kB / 0.6448 GB, free: 55.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001684/1.103, allocations: 0.7701 MB / 0.6456 GB, free: 55.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002075/1.106, allocations: 0.5266 MB / 0.6461 GB, free: 54.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007818/1.113, allocations: 8.711 MB / 0.6546 GB, free: 45.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002415/1.116, allocations: 119.9 kB / 0.6547 GB, free: 45.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003198/1.116, allocations: 91.98 kB / 0.6548 GB, free: 45.27 MB / 426.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.0004274/1.117, allocations: 236 kB / 0.655 GB, free: 45.03 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005361/1.117, allocations: 272.7 kB / 0.6553 GB, free: 44.76 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00529/1.122, allocations: 3.633 MB / 0.6588 GB, free: 41.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-05/1.123, allocations: 23.95 kB / 0.6588 GB, free: 41.07 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/1.123, allocations: 11.94 kB / 0.6589 GB, free: 41.06 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.949e-05/1.123, allocations: 11.95 kB / 0.6589 GB, free: 41.05 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01167/1.134, allocations: 7.943 MB / 0.6666 GB, free: 33.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/1.134, allocations: 4 kB / 0.6666 GB, free: 33.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001518/1.136, allocations: 395.6 kB / 0.667 GB, free: 32.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001998/1.138, allocations: 0.8164 MB / 0.6678 GB, free: 31.82 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002169/1.138, allocations: 59.97 kB / 0.6679 GB, free: 31.76 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009079/1.147, allocations: 10.22 MB / 0.6778 GB, free: 21.03 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.814e-06/1.147, allocations: 0 / 0.6778 GB, free: 21.03 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009064/1.156, allocations: 5.61 MB / 0.6833 GB, free: 15.28 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002138/1.158, allocations: 0.642 MB / 0.6839 GB, free: 14.61 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009195/1.159, allocations: 55.94 kB / 0.684 GB, free: 14.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002295/1.162, allocations: 123.9 kB / 0.6841 GB, free: 14.44 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006335/1.162, allocations: 181.8 kB / 0.6843 GB, free: 14.26 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000244/1.163, allocations: 63.98 kB / 0.6844 GB, free: 14.2 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003447/1.166, allocations: 1.683 MB / 0.686 GB, free: 12.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.11e-07/1.166, allocations: 0 / 0.686 GB, free: 12.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003694/1.17, allocations: 0.8281 MB / 0.6868 GB, free: 11.67 MB / 426.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.008454/1.178, allocations: 7.131 MB / 0.6938 GB, free: 4.457 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005412/1.184, allocations: 3.779 MB / 0.6975 GB, free: 0.5977 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.155e-06/1.184, allocations: 0.8125 kB / 0.6975 GB, free: 0.5977 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004095/1.188, allocations: 2.436 MB / 0.6998 GB, free: 14.08 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004336/1.192, allocations: 0.7363 MB / 0.7006 GB, free: 13.37 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01957/1.212, allocations: 7.505 MB / 0.7079 GB, free: 5.789 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004099/1.216, allocations: 2.847 MB / 0.7107 GB, free: 2.914 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003183/1.219, allocations: 0.6826 MB / 0.7113 GB, free: 2.227 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002945/1.222, allocations: 1.394 MB / 0.7127 GB, free: 0.832 MB / 442.7 MB Notification: Performance of SimCode: time 8.92e-07/1.222, allocations: 0 / 0.7127 GB, free: 0.832 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4055/1.628, allocations: 74.89 MB / 0.7858 GB, free: 76.61 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001854/1.628, allocations: 185.6 kB / 0.786 GB, free: 76.39 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.06/5.689, allocations: 3.938 kB / 0.786 GB, free: 76.38 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_Transformers_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat