Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.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.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_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.001425/0.001425, allocations: 176.4 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 221.5 MB / 230.3 MB, free: 7.555 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.0009105/0.0009104, allocations: 96.55 kB / 281.2 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.899e-05/1.901e-05, allocations: 4 kB / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1119, allocations: 50.43 MB / 387.6 MB, free: 7.453 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3756/0.4875, allocations: 111.4 MB / 499 MB, free: 15.23 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000331/0.4879, allocations: 91.94 kB / 499 MB, free: 15.14 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.482/0.97, allocations: 92.62 MB / 0.5778 GB, free: 94.38 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.97, allocations: 0 / 0.5778 GB, free: 94.38 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003431/0.9704, allocations: 99.47 kB / 0.5779 GB, free: 94.37 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.009666/0.9801, allocations: 3.568 MB / 0.5814 GB, free: 92.93 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.225e-05/0.9801, allocations: 9.656 kB / 0.5814 GB, free: 92.93 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002321/0.9825, allocations: 0.5081 MB / 0.5819 GB, free: 92.7 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006577/0.9891, allocations: 2.534 MB / 0.5844 GB, free: 92.14 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001943/0.9893, allocations: 114.9 kB / 0.5845 GB, free: 92.14 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001416/0.9907, allocations: 211.8 kB / 0.5847 GB, free: 92.14 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007957/0.9987, allocations: 3.691 MB / 0.5883 GB, free: 92.12 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01146/1.01, allocations: 4.319 MB / 0.5925 GB, free: 90.72 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002088/1.01, allocations: 15.38 kB / 0.5925 GB, free: 90.71 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001138/1.012, allocations: 6.938 kB / 0.5925 GB, free: 90.71 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002216/1.012, allocations: 173.1 kB / 0.5927 GB, free: 90.69 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02991/1.042, allocations: 14.22 MB / 0.6066 GB, free: 83.54 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004859/1.047, allocations: 4.066 MB / 0.6105 GB, free: 80.72 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002684/1.049, allocations: 1.75 MB / 0.6122 GB, free: 80.12 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003576/1.05, allocations: 149.8 kB / 0.6124 GB, free: 80.02 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.919e-05/1.05, allocations: 58.81 kB / 0.6124 GB, free: 79.97 MB / 426.7 MB Notification: Performance of pre-optimization done (n=201): time 4.047e-06/1.05, allocations: 3.938 kB / 0.6125 GB, free: 79.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=221): time 0.01334/1.063, allocations: 7.201 MB / 0.6195 GB, free: 76.97 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.859e-05/1.063, allocations: 74.16 kB / 0.6196 GB, free: 76.91 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003827/1.067, allocations: 1.743 MB / 0.6213 GB, free: 76.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003197/1.067, allocations: 29.7 kB / 0.6213 GB, free: 76.16 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001032/1.069, allocations: 1.606 MB / 0.6229 GB, free: 74.94 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000625/1.069, allocations: 0.7038 MB / 0.6235 GB, free: 74.38 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000189/1.069, allocations: 0 / 0.6235 GB, free: 74.38 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001436/1.07, allocations: 405.7 kB / 0.6239 GB, free: 74.04 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001533/1.071, allocations: 1.189 MB / 0.6251 GB, free: 73.58 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001749/1.073, allocations: 1.606 MB / 0.6267 GB, free: 72.64 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001911/1.075, allocations: 1.438 MB / 0.6281 GB, free: 71.93 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.148e-05/1.075, allocations: 4 kB / 0.6281 GB, free: 71.92 MB / 426.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.005577/1.08, allocations: 3.662 MB / 0.6316 GB, free: 68.73 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.905e-05/1.08, allocations: 9.094 kB / 0.6316 GB, free: 68.72 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.158e-05/1.08, allocations: 12 kB / 0.6317 GB, free: 68.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001675/1.082, allocations: 0.7393 MB / 0.6324 GB, free: 68.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002022/1.084, allocations: 0.5303 MB / 0.6329 GB, free: 67.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007223/1.091, allocations: 8.34 MB / 0.641 GB, free: 59.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00208/1.094, allocations: 79.33 kB / 0.6411 GB, free: 59.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001905/1.094, allocations: 87.23 kB / 0.6412 GB, free: 59.6 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,(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004021/1.094, allocations: 160.1 kB / 0.6414 GB, free: 59.44 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004568/1.099, allocations: 3.21 MB / 0.6445 GB, free: 56.66 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005347/1.099, allocations: 248.8 kB / 0.6447 GB, free: 56.41 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004823/1.104, allocations: 3.425 MB / 0.6481 GB, free: 53.57 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.467e-05/1.104, allocations: 24 kB / 0.6481 GB, free: 53.54 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/1.104, allocations: 8 kB / 0.6481 GB, free: 53.54 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.927e-05/1.104, allocations: 10.08 kB / 0.6481 GB, free: 53.54 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01091/1.115, allocations: 7.283 MB / 0.6552 GB, free: 47.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.848e-06/1.115, allocations: 8.031 kB / 0.6552 GB, free: 47.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001683/1.117, allocations: 395.4 kB / 0.6556 GB, free: 46.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001941/1.119, allocations: 0.7931 MB / 0.6564 GB, free: 45.98 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001906/1.119, allocations: 23.98 kB / 0.6564 GB, free: 45.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007925/1.127, allocations: 9.821 MB / 0.666 GB, free: 35.7 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/1.127, allocations: 0 / 0.666 GB, free: 35.7 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007789/1.135, allocations: 5.391 MB / 0.6713 GB, free: 30.15 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001994/1.137, allocations: 0.6034 MB / 0.6719 GB, free: 29.52 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006973/1.138, allocations: 15.98 kB / 0.6719 GB, free: 29.51 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001479/1.139, allocations: 91.89 kB / 0.672 GB, free: 29.42 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004192/1.139, allocations: 173.7 kB / 0.6721 GB, free: 29.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001346/1.14, allocations: 63.98 kB / 0.6722 GB, free: 29.18 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001788/1.141, allocations: 1.317 MB / 0.6735 GB, free: 27.85 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.21e-07/1.141, allocations: 4 kB / 0.6735 GB, free: 27.84 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002756/1.144, allocations: 0.7226 MB / 0.6742 GB, free: 27.12 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.006908/1.151, allocations: 6.891 MB / 0.6809 GB, free: 20.15 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004855/1.156, allocations: 3.614 MB / 0.6844 GB, free: 16.47 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/1.156, allocations: 4.125 kB / 0.6844 GB, free: 16.46 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003514/1.16, allocations: 2.34 MB / 0.6867 GB, free: 14.07 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003274/1.163, allocations: 0.5267 MB / 0.6872 GB, free: 13.56 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01358/1.176, allocations: 7.249 MB / 0.6943 GB, free: 6.289 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002336/1.179, allocations: 2.85 MB / 0.6971 GB, free: 3.41 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002144/1.181, allocations: 0.634 MB / 0.6977 GB, free: 2.789 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00157/1.183, allocations: 1.362 MB / 0.6991 GB, free: 1.426 MB / 426.7 MB Notification: Performance of SimCode: time 1.042e-06/1.183, allocations: 0 / 0.6991 GB, free: 1.426 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3589/1.542, allocations: 61.73 MB / 0.7593 GB, free: 93.28 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001999/1.542, allocations: 166.8 kB / 0.7595 GB, free: 93.09 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.686/5.228, allocations: 0 / 0.7595 GB, free: 93.09 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat