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.001057/0.001057, allocations: 180.9 kB / 16.39 MB, free: 5.766 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.255/1.255, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009436/0.0009437, allocations: 94.3 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002643/0.0002642, allocations: 8 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2233/0.2235, allocations: 50.4 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1285/0.3521, allocations: 112.2 MB / 0.5018 GB, free: 196 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000283/0.3524, allocations: 101.4 kB / 0.5018 GB, free: 96 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3953/0.7477, allocations: 93.7 MB / 0.5934 GB, free: 20.37 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.7477, allocations: 3.938 kB / 0.5934 GB, free: 20.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003797/0.7481, allocations: 95.88 kB / 0.5935 GB, free: 20.27 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.009507/0.7577, allocations: 3.974 MB / 0.5973 GB, free: 16.23 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.7577, allocations: 8.031 kB / 0.5973 GB, free: 16.22 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001562/0.7593, allocations: 0.5058 MB / 0.5978 GB, free: 15.7 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002127/0.7614, allocations: 0.5064 MB / 0.5983 GB, free: 15.19 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005982/0.7674, allocations: 2.564 MB / 0.6008 GB, free: 12.58 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002303/0.7677, allocations: 263 kB / 0.6011 GB, free: 12.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001159/0.7689, allocations: 359.9 kB / 0.6014 GB, free: 11.97 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007906/0.7768, allocations: 4.925 MB / 0.6062 GB, free: 6.891 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.238e-05/0.7769, allocations: 11.89 kB / 0.6062 GB, free: 6.879 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003193/0.7772, allocations: 152 kB / 0.6064 GB, free: 6.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001255/0.7773, allocations: 175.1 kB / 0.6066 GB, free: 6.559 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005953/0.7833, allocations: 4.049 MB / 0.6105 GB, free: 2.504 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02459/0.8079, allocations: 14.94 MB / 0.6251 GB, free: 3.23 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004807/0.8128, allocations: 4.215 MB / 0.6292 GB, free: 14.71 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003614/0.8132, allocations: 143 kB / 0.6294 GB, free: 14.56 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.094e-05/0.8132, allocations: 64.56 kB / 0.6294 GB, free: 14.49 MB / 410.7 MB Notification: Performance of pre-optimization done (n=201): time 3.897e-06/0.8132, allocations: 0 / 0.6294 GB, free: 14.49 MB / 410.7 MB Notification: Performance of matching and sorting (n=221): time 0.02098/0.8342, allocations: 10.22 MB / 0.6394 GB, free: 4.148 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.547e-05/0.8343, allocations: 73.41 kB / 0.6395 GB, free: 4.062 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0037/0.838, allocations: 2.217 MB / 0.6416 GB, free: 1.828 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003139/0.8384, allocations: 61.7 kB / 0.6417 GB, free: 1.762 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00114/0.8395, allocations: 1.6 MB / 0.6433 GB, free: 144 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000698/0.8402, allocations: 0.7356 MB / 0.644 GB, free: 15.39 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001341/0.8404, allocations: 48 kB / 0.644 GB, free: 15.34 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001881/0.8405, allocations: 398.5 kB / 0.6444 GB, free: 14.95 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002006/0.8426, allocations: 1.308 MB / 0.6457 GB, free: 13.64 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002313/0.8449, allocations: 1.737 MB / 0.6474 GB, free: 11.73 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002186/0.8471, allocations: 1.552 MB / 0.6489 GB, free: 10.18 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-06/0.8471, allocations: 4 kB / 0.6489 GB, free: 10.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.006373/0.8535, allocations: 4.056 MB / 0.6529 GB, free: 6.098 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.531e-05/0.8535, allocations: 12 kB / 0.6529 GB, free: 6.086 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/0.8535, allocations: 12 kB / 0.6529 GB, free: 6.074 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00186/0.8554, allocations: 0.7583 MB / 0.6536 GB, free: 5.301 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002076/0.8575, allocations: 0.5304 MB / 0.6541 GB, free: 4.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2501/1.108, allocations: 8.939 MB / 0.6629 GB, free: 73.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002198/1.11, allocations: 124.1 kB / 0.663 GB, free: 73.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001723/1.11, allocations: 85.19 kB / 0.6631 GB, free: 73.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 () * 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.002018/1.112, allocations: 1.216 MB / 0.6643 GB, free: 73.49 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004657/1.113, allocations: 275.1 kB / 0.6645 GB, free: 73.49 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00528/1.118, allocations: 3.776 MB / 0.6682 GB, free: 73.32 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.126e-05/1.118, allocations: 21.53 kB / 0.6682 GB, free: 73.32 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/1.118, allocations: 7.938 kB / 0.6682 GB, free: 73.32 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.72e-05/1.118, allocations: 11.2 kB / 0.6682 GB, free: 73.32 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01128/1.129, allocations: 8.082 MB / 0.6761 GB, free: 72.72 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.037e-06/1.129, allocations: 2.656 kB / 0.6761 GB, free: 72.72 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001561/1.131, allocations: 394.2 kB / 0.6765 GB, free: 72.72 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001836/1.133, allocations: 0.8005 MB / 0.6773 GB, free: 72.68 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001403/1.133, allocations: 55.8 kB / 0.6773 GB, free: 72.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008788/1.142, allocations: 10.46 MB / 0.6876 GB, free: 67.52 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/1.142, allocations: 7.531 kB / 0.6876 GB, free: 67.52 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007602/1.149, allocations: 5.842 MB / 0.6933 GB, free: 66.88 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001616/1.151, allocations: 0.6415 MB / 0.6939 GB, free: 66.69 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003861/1.151, allocations: 51.16 kB / 0.694 GB, free: 66.69 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001311/1.153, allocations: 129.2 kB / 0.6941 GB, free: 66.69 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003679/1.153, allocations: 187.8 kB / 0.6943 GB, free: 66.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001332/1.153, allocations: 65.19 kB / 0.6943 GB, free: 66.68 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002281/1.155, allocations: 1.701 MB / 0.696 GB, free: 66.54 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/1.155, allocations: 3.75 kB / 0.696 GB, free: 66.54 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002485/1.158, allocations: 0.8267 MB / 0.6968 GB, free: 66.54 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 () * 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,(2,100.0%) 26,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007663/1.166, allocations: 7.363 MB / 0.704 GB, free: 63.58 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005279/1.171, allocations: 3.941 MB / 0.7078 GB, free: 61.91 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/1.171, allocations: 0 / 0.7078 GB, free: 61.91 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003269/1.174, allocations: 2.506 MB / 0.7103 GB, free: 60.71 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003335/1.178, allocations: 0.737 MB / 0.711 GB, free: 60.52 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03722/1.215, allocations: 31.96 MB / 0.7422 GB, free: 39.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002195/1.217, allocations: 2.838 MB / 0.745 GB, free: 38.77 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002143/1.219, allocations: 0.6829 MB / 0.7456 GB, free: 38.32 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001461/1.221, allocations: 1.398 MB / 0.747 GB, free: 37.03 MB / 426.7 MB Notification: Performance of SimCode: time 7.92e-07/1.221, allocations: 0 / 0.747 GB, free: 37.03 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1042/1.325, allocations: 74.69 MB / 0.82 GB, free: 6.887 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002037/1.325, allocations: 220.1 kB / 0.8202 GB, free: 6.645 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.083/5.408, allocations: 3.281 kB / 0.8202 GB, free: 6.645 MB / 458.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