Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.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.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_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.001647/0.001647, allocations: 174.5 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.327/1.327, allocations: 221.3 MB / 235.5 MB, free: 2.945 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.0008771/0.0008772, allocations: 91.98 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.417e-05/3.418e-05, allocations: 0 / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1017, allocations: 50.42 MB / 394.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3091/0.4108, allocations: 87.02 MB / 481.4 MB, free: 452 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002041/0.411, allocations: 83.95 kB / 481.5 MB, free: 368 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06144/0.4725, allocations: 26.79 MB / 0.4963 GB, free: 5.238 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4725, allocations: 0 / 0.4963 GB, free: 5.238 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.8e-05/0.4726, allocations: 12 kB / 0.4963 GB, free: 5.227 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.002331/0.4749, allocations: 1.022 MB / 0.4973 GB, free: 4.152 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.475, allocations: 8.031 kB / 0.4973 GB, free: 4.145 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001996/0.4752, allocations: 152.1 kB / 0.4975 GB, free: 3.988 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003123/0.4783, allocations: 0.4907 MB / 0.498 GB, free: 3.496 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006896/0.479, allocations: 420 kB / 0.4984 GB, free: 3.047 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.322e-05/0.4791, allocations: 70 kB / 0.4984 GB, free: 2.977 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001471/0.4793, allocations: 99.91 kB / 0.4985 GB, free: 2.879 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001651/0.4809, allocations: 0.947 MB / 0.4995 GB, free: 1.918 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.869e-05/0.481, allocations: 0 / 0.4995 GB, free: 1.918 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.72e-05/0.4811, allocations: 40 kB / 0.4995 GB, free: 1.879 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.993e-05/0.4811, allocations: 20 kB / 0.4995 GB, free: 1.859 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001469/0.4826, allocations: 0.8708 MB / 0.5004 GB, free: 0.9844 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005004/0.4876, allocations: 3.468 MB / 0.5038 GB, free: 13.34 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002284/0.4899, allocations: 2.218 MB / 0.5059 GB, free: 10.76 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003835/0.4903, allocations: 267.6 kB / 0.5062 GB, free: 10.49 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001207/0.4904, allocations: 101.7 kB / 0.5063 GB, free: 10.37 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.903e-05/0.4905, allocations: 43.06 kB / 0.5063 GB, free: 10.32 MB / 394.7 MB Notification: Performance of pre-optimization done (n=65): time 2.425e-06/0.4905, allocations: 0 / 0.5063 GB, free: 10.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=65): time 0.000841/0.4913, allocations: 494.6 kB / 0.5068 GB, free: 9.828 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.225e-05/0.4914, allocations: 107.4 kB / 0.5069 GB, free: 9.699 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002563/0.4917, allocations: 238.9 kB / 0.5071 GB, free: 9.461 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.065e-05/0.4917, allocations: 37.7 kB / 0.5071 GB, free: 9.418 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002004/0.4919, allocations: 386.6 kB / 0.5075 GB, free: 9.031 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001506/0.4921, allocations: 224.8 kB / 0.5077 GB, free: 8.809 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.211e-05/0.4921, allocations: 16 kB / 0.5077 GB, free: 8.793 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.4922, allocations: 350.8 kB / 0.5081 GB, free: 8.441 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003168/0.4926, allocations: 193.6 kB / 0.5083 GB, free: 8.254 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004578/0.493, allocations: 409.2 kB / 0.5087 GB, free: 7.762 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003971/0.4934, allocations: 267.1 kB / 0.5089 GB, free: 7.5 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.4934, allocations: 4 kB / 0.5089 GB, free: 7.496 MB / 394.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00102/0.4945, allocations: 0.6942 MB / 0.5096 GB, free: 6.793 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.4945, allocations: 12.97 kB / 0.5096 GB, free: 6.781 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.4945, allocations: 11.94 kB / 0.5096 GB, free: 6.77 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.245e-05/0.4946, allocations: 12 kB / 0.5096 GB, free: 6.758 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007112/0.4953, allocations: 195.7 kB / 0.5098 GB, free: 6.566 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.047e-05/0.4953, allocations: 11.94 kB / 0.5098 GB, free: 6.555 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004262/0.4957, allocations: 83.2 kB / 0.5099 GB, free: 6.473 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.971e-05/0.4958, allocations: 36 kB / 0.5099 GB, free: 6.438 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001434/0.4959, allocations: 157.2 kB / 0.5101 GB, free: 6.277 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001144/0.4961, allocations: 35.53 kB / 0.5101 GB, free: 6.242 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001048/0.4971, allocations: 0.6162 MB / 0.5107 GB, free: 5.625 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.4971, allocations: 8 kB / 0.5107 GB, free: 5.617 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.4972, allocations: 4 kB / 0.5107 GB, free: 5.613 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.4972, allocations: 3.984 kB / 0.5107 GB, free: 5.609 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002085/0.4993, allocations: 1.436 MB / 0.5121 GB, free: 4.113 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.4993, allocations: 0 / 0.5121 GB, free: 4.113 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005742/0.4999, allocations: 143.9 kB / 0.5123 GB, free: 3.973 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.395e-06/0.4999, allocations: 7.938 kB / 0.5123 GB, free: 3.965 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.753e-05/0.4999, allocations: 15.95 kB / 0.5123 GB, free: 3.949 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.068e-05/0.4999, allocations: 4 kB / 0.5123 GB, free: 3.945 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.4999, allocations: 0 / 0.5123 GB, free: 3.945 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001307/0.5013, allocations: 1.079 MB / 0.5134 GB, free: 2.84 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001426/0.5014, allocations: 124.5 kB / 0.5135 GB, free: 2.699 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.087e-05/0.5015, allocations: 12 kB / 0.5135 GB, free: 2.688 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003739/0.5019, allocations: 27.98 kB / 0.5135 GB, free: 2.66 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.502, allocations: 44.44 kB / 0.5136 GB, free: 2.617 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.227e-05/0.502, allocations: 20 kB / 0.5136 GB, free: 2.598 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002412/0.5023, allocations: 183.2 kB / 0.5138 GB, free: 2.414 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5023, allocations: 0 / 0.5138 GB, free: 2.414 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000982/0.5033, allocations: 243 kB / 0.514 GB, free: 2.176 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (i1.pin_p.reference.gamma,load.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002218/0.5055, allocations: 1.838 MB / 0.5158 GB, free: 312 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001059/0.5066, allocations: 0.5609 MB / 0.5163 GB, free: 15.75 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.5066, allocations: 0 / 0.5163 GB, free: 15.75 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003868/0.507, allocations: 287.1 kB / 0.5166 GB, free: 15.47 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003983/0.5074, allocations: 24.56 kB / 0.5166 GB, free: 15.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002278/0.5097, allocations: 1.06 MB / 0.5177 GB, free: 14.34 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004685/0.5102, allocations: 0.9165 MB / 0.5186 GB, free: 13.39 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003502/0.5105, allocations: 80.38 kB / 0.5186 GB, free: 13.31 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003338/0.5109, allocations: 247.4 kB / 0.5189 GB, free: 13.07 MB / 410.7 MB Notification: Performance of SimCode: time 6.31e-07/0.5109, allocations: 0 / 0.5189 GB, free: 13.07 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0239/0.5348, allocations: 9.509 MB / 0.5282 GB, free: 3.703 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001994/0.5351, allocations: 182.4 kB / 0.5283 GB, free: 3.469 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.097/2.632, allocations: 0 / 0.5283 GB, free: 3.469 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Transformer.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat does not exist to compare? outputFormat=mat