Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 99.62 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.535/1.535, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.527/2.527, allocations: 390.3 MB / 0.6653 GB, free: 3.055 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003725/0.0003727, allocations: 8 kB / 0.8146 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.795/0.7953, allocations: 142.3 MB / 0.9536 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine): time 0.02929/0.8247, allocations: 26.67 MB / 0.9796 GB, free: 4.055 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.02153/0.8463, allocations: 12.6 MB / 0.9919 GB, free: 8.855 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003999/0.8503, allocations: 123.2 kB / 0.9921 GB, free: 8.734 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.003084/0.8534, allocations: 0.6289 MB / 0.9927 GB, free: 8.102 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.008072/0.8615, allocations: 2.107 MB / 0.9947 GB, free: 5.988 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.004822/0.8664, allocations: 1.211 MB / 0.9959 GB, free: 4.781 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.009989/0.8764, allocations: 4.024 MB / 0.9998 GB, free: 0.7461 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01731/0.8938, allocations: 8.515 MB / 1.008 GB, free: 8.156 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005756/0.8996, allocations: 2.301 MB / 1.01 GB, free: 5.848 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005007/0.9046, allocations: 2.039 MB / 1.012 GB, free: 3.801 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.001757/0.9064, allocations: 244 kB / 1.013 GB, free: 3.562 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003137/0.9095, allocations: 0.597 MB / 1.013 GB, free: 2.965 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.003614/0.9132, allocations: 1.761 MB / 1.015 GB, free: 1.199 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.002845/0.9161, allocations: 0.9758 MB / 1.016 GB, free: 220 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.01182/0.9279, allocations: 7.615 MB / 1.023 GB, free: 8.582 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.9279, allocations: 0 / 1.023 GB, free: 8.582 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.105e-06/0.928, allocations: 0 / 1.023 GB, free: 8.582 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0003747/0.9283, allocations: 0 / 1.023 GB, free: 8.582 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1133 * Number of variables: 1133 Notification: Performance of Generate backend data structure: time 0.01273/0.9411, allocations: 4.173 MB / 1.027 GB, free: 4.332 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.778e-05/0.9412, allocations: 8.031 kB / 1.027 GB, free: 4.324 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002758/0.9439, allocations: 0.624 MB / 1.028 GB, free: 3.688 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006579/0.9505, allocations: 0.9698 MB / 1.029 GB, free: 2.711 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00816/0.9587, allocations: 2.822 MB / 1.032 GB, free: 15.8 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004218/0.9592, allocations: 316.4 kB / 1.032 GB, free: 15.5 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00219/0.9614, allocations: 411.9 kB / 1.032 GB, free: 15.09 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01848/0.9799, allocations: 6.717 MB / 1.039 GB, free: 8.082 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002838/0.9802, allocations: 27.77 kB / 1.039 GB, free: 8.055 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001356/0.9816, allocations: 187.9 kB / 1.039 GB, free: 7.871 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001101/0.9827, allocations: 368 kB / 1.04 GB, free: 7.508 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01165/0.9944, allocations: 5.087 MB / 1.045 GB, free: 2.402 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04208/1.036, allocations: 30.78 MB / 1.075 GB, free: 0.8555 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002354/1.039, allocations: 1.379 MB / 1.076 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001474/1.039, allocations: 13.31 kB / 1.076 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.768e-05/1.039, allocations: 63.81 kB / 1.076 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=130): time 3.627e-06/1.039, allocations: 0 / 1.076 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of matching and sorting (n=199): time 0.08624/1.125, allocations: 22.78 MB / 1.098 GB, free: 8.484 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.921e-05/1.125, allocations: 69.41 kB / 1.098 GB, free: 8.402 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00344/1.129, allocations: 2.047 MB / 1.1 GB, free: 6.34 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.000386/1.129, allocations: 61.7 kB / 1.1 GB, free: 6.273 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.00156/1.131, allocations: 2.01 MB / 1.102 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009643/1.132, allocations: 0.6816 MB / 1.103 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003007/1.132, allocations: 44 kB / 1.103 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002474/1.132, allocations: 394.6 kB / 1.103 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00239/1.135, allocations: 1.426 MB / 1.105 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00282/1.138, allocations: 1.994 MB / 1.107 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002584/1.14, allocations: 1.728 MB / 1.108 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.828e-05/1.14, allocations: 8 kB / 1.108 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.0112/1.152, allocations: 5.63 MB / 1.114 GB, free: 8.004 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.715e-05/1.152, allocations: 12 kB / 1.114 GB, free: 7.992 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.792e-05/1.152, allocations: 16 kB / 1.114 GB, free: 7.977 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006705/1.158, allocations: 2.087 MB / 1.116 GB, free: 5.832 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00158/1.16, allocations: 375.4 kB / 1.116 GB, free: 5.465 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03789/1.198, allocations: 36.26 MB / 1.152 GB, free: 14.8 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002684/1.201, allocations: 127.9 kB / 1.152 GB, free: 14.68 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004269/1.201, allocations: 95.98 kB / 1.152 GB, free: 14.58 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (204): * Single equations (assignments): 186 * 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: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 18 {(3,100.0%) 5,(3,100.0%) 5,(3,100.0%) 5,(3,100.0%) 5,(3,100.0%) 5,(3,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003203/1.204, allocations: 1.509 MB / 1.153 GB, free: 13.06 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008297/1.205, allocations: 276.7 kB / 1.154 GB, free: 12.79 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01049/1.216, allocations: 5.196 MB / 1.159 GB, free: 7.516 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-05/1.216, allocations: 27.95 kB / 1.159 GB, free: 7.488 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.588e-05/1.216, allocations: 16 kB / 1.159 GB, free: 7.473 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.961e-05/1.216, allocations: 7.969 kB / 1.159 GB, free: 7.465 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02198/1.238, allocations: 9.665 MB / 1.168 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.84e-05/1.238, allocations: 8 kB / 1.168 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/1.239, allocations: 211.6 kB / 1.168 GB, free: 13.38 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006179/1.245, allocations: 1.839 MB / 1.17 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003872/1.246, allocations: 36 kB / 1.17 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03933/1.285, allocations: 35.29 MB / 1.205 GB, free: 5.75 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.114e-06/1.285, allocations: 8.375 kB / 1.205 GB, free: 5.742 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01029/1.295, allocations: 5.419 MB / 1.21 GB, free: 0 / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002738/1.298, allocations: 0.6227 MB / 1.211 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001288/1.299, allocations: 47.98 kB / 1.211 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002639/1.302, allocations: 127.8 kB / 1.211 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001028/1.303, allocations: 197.5 kB / 1.211 GB, free: 14.99 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003203/1.303, allocations: 60 kB / 1.211 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.003471/1.307, allocations: 1.355 MB / 1.212 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6.61e-07/1.307, allocations: 0 / 1.212 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.005297/1.312, allocations: 1.047 MB / 1.213 GB, free: 12.52 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 94 * 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: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 18 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 4,(3,100.0%) 5,(3,100.0%) 5,(3,100.0%) 5,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 4,(3,100.0%) 5,(3,100.0%) 5,(3,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01145/1.324, allocations: 7.673 MB / 1.221 GB, free: 4.582 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0126/1.336, allocations: 6.261 MB / 1.227 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.12e-05/1.336, allocations: 7.938 kB / 1.227 GB, free: 14.08 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.008195/1.345, allocations: 4.394 MB / 1.231 GB, free: 9.457 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004953/1.35, allocations: 0.8786 MB / 1.232 GB, free: 8.586 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.62/1.97, allocations: 36.86 MB / 1.268 GB, free: 268.6 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004449/1.974, allocations: 3.205 MB / 1.271 GB, free: 267.7 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.002244/1.976, allocations: 0.516 MB / 1.272 GB, free: 267.6 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001666/1.978, allocations: 1.675 MB / 1.273 GB, free: 266.2 MB / 1.014 GB Notification: Performance of SimCode: time 1.072e-06/1.978, allocations: 0 / 1.273 GB, free: 266.2 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1163/2.094, allocations: 85.62 MB / 1.357 GB, free: 200.1 MB / 1.014 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001775/2.095, allocations: 222.3 kB / 1.357 GB, free: 199.8 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.13/6.224, allocations: 2.031 kB / 1.357 GB, free: 199.8 MB / 1.014 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_res.mat does not exist to compare? outputFormat=mat