Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.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.ThreePhasesBalanced.Lines.Examples.ACLine_L,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L",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.00123/0.001229, allocations: 100.3 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.001357/0.001357, 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.444/1.444, allocations: 223.2 MB / 239.9 MB, free: 5.457 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.382/2.382, allocations: 390.3 MB / 0.6653 GB, free: 3.027 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003768/0.0003772, allocations: 12 kB / 0.8146 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8992/0.8996, allocations: 142.3 MB / 0.9536 GB, free: 8.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.006085/0.9057, allocations: 5.264 MB / 0.9587 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.004409/0.9102, allocations: 2.972 MB / 0.9616 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005301/0.9107, allocations: 29.53 kB / 0.9617 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002914/0.911, allocations: 111.3 kB / 0.9618 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0008459/0.9119, allocations: 350.2 kB / 0.9621 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009714/0.9129, allocations: 385.7 kB / 0.9625 GB, free: 1.113 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0008109/0.9137, allocations: 0.6575 MB / 0.9631 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001436/0.9151, allocations: 0.9077 MB / 0.964 GB, free: 88 kB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004918/0.9156, allocations: 330.5 kB / 0.9643 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005021/0.9162, allocations: 347.3 kB / 0.9646 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 6.461e-05/0.9162, allocations: 32.97 kB / 0.9647 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004969/0.9167, allocations: 198.8 kB / 0.9649 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002184/0.917, allocations: 232.9 kB / 0.9651 GB, free: 15.47 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001543/0.9171, allocations: 158.8 kB / 0.9652 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0008589/0.918, allocations: 0.8396 MB / 0.9661 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.918, allocations: 1 kB / 0.9661 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.454e-06/0.918, allocations: 4 kB / 0.9661 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.709e-06/0.918, allocations: 0 / 0.9661 GB, free: 14.79 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001463/0.9195, allocations: 0.9173 MB / 0.967 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/0.9196, allocations: 9.312 kB / 0.967 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001478/0.9197, allocations: 112.2 kB / 0.9671 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001396/0.9211, allocations: 208.4 kB / 0.9673 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009125/0.922, allocations: 0.5339 MB / 0.9678 GB, free: 13.4 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.273e-05/0.9221, allocations: 41.72 kB / 0.9678 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001097/0.9222, allocations: 64.7 kB / 0.9679 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001505/0.9237, allocations: 1.024 MB / 0.9689 GB, free: 12.6 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.16e-05/0.9238, allocations: 11.47 kB / 0.9689 GB, free: 12.59 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.927e-05/0.9238, allocations: 28.98 kB / 0.9689 GB, free: 12.57 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001037/0.9239, allocations: 73.89 kB / 0.969 GB, free: 12.55 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.925, allocations: 0.686 MB / 0.9697 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004893/0.9299, allocations: 5.776 MB / 0.9753 GB, free: 6.789 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007923/0.9307, allocations: 0.5858 MB / 0.9759 GB, free: 6.367 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.804e-05/0.9307, allocations: 4.125 kB / 0.9759 GB, free: 6.367 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.299e-05/0.9308, allocations: 40.64 kB / 0.9759 GB, free: 6.32 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=41): time 2.284e-06/0.9308, allocations: 0 / 0.9759 GB, free: 6.32 MB / 0.7325 GB Notification: Performance of matching and sorting (n=42): time 0.003958/0.9347, allocations: 1.901 MB / 0.9778 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.917e-05/0.9348, allocations: 55.91 kB / 0.9778 GB, free: 5.004 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004945/0.9353, allocations: 457.4 kB / 0.9783 GB, free: 4.719 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.197e-05/0.9353, allocations: 31.02 kB / 0.9783 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002576/0.9356, allocations: 394.7 kB / 0.9787 GB, free: 4.336 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.9357, allocations: 152.5 kB / 0.9788 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.622e-05/0.9358, allocations: 18.28 kB / 0.9788 GB, free: 4.188 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001524/0.9359, allocations: 364.2 kB / 0.9792 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003367/0.9363, allocations: 231.3 kB / 0.9794 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000467/0.9367, allocations: 441 kB / 0.9798 GB, free: 3.324 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004237/0.9372, allocations: 295.4 kB / 0.9801 GB, free: 3.176 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.9372, allocations: 2.875 kB / 0.9801 GB, free: 3.176 MB / 0.7325 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001661/0.9388, allocations: 0.9791 MB / 0.9811 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.412e-05/0.9389, allocations: 8.312 kB / 0.9811 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.9389, allocations: 6.625 kB / 0.9811 GB, free: 2.629 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008982/0.9398, allocations: 270.2 kB / 0.9814 GB, free: 2.484 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003611/0.9402, allocations: 103.3 kB / 0.9814 GB, free: 2.457 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006095/0.9463, allocations: 6.739 MB / 0.988 GB, free: 11.36 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004991/0.9468, allocations: 35.98 kB / 0.9881 GB, free: 11.33 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.618e-05/0.9468, allocations: 28.06 kB / 0.9881 GB, free: 11.3 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (55): * Single equations (assignments): 51 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 6,(1,100.0%) 5,(1,100.0%) 3,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003767/0.9472, allocations: 253.5 kB / 0.9883 GB, free: 11.04 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.077e-05/0.9473, allocations: 55.34 kB / 0.9884 GB, free: 10.99 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001454/0.9488, allocations: 0.8225 MB / 0.9892 GB, free: 10.14 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.9488, allocations: 7.984 kB / 0.9892 GB, free: 10.14 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/0.9488, allocations: 7.953 kB / 0.9892 GB, free: 10.13 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.9488, allocations: 3.938 kB / 0.9892 GB, free: 10.12 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002511/0.9513, allocations: 1.723 MB / 0.9909 GB, free: 8.289 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.9513, allocations: 0 / 0.9909 GB, free: 8.289 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002236/0.9516, allocations: 51.94 kB / 0.9909 GB, free: 8.238 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007481/0.9523, allocations: 251.3 kB / 0.9912 GB, free: 7.98 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.002e-05/0.9524, allocations: 8 kB / 0.9912 GB, free: 7.973 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005528/0.9579, allocations: 6.448 MB / 0.9975 GB, free: 0.9922 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.608e-06/0.9579, allocations: 3.953 kB / 0.9975 GB, free: 0.9883 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001549/0.9595, allocations: 0.9783 MB / 0.9984 GB, free: 15.92 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003159/0.9598, allocations: 176.3 kB / 0.9986 GB, free: 15.73 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.47e-05/0.9599, allocations: 8.469 kB / 0.9986 GB, free: 15.72 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002648/0.9602, allocations: 23.94 kB / 0.9986 GB, free: 15.7 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.49e-05/0.9603, allocations: 43.88 kB / 0.9987 GB, free: 15.66 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.457e-05/0.9603, allocations: 16 kB / 0.9987 GB, free: 15.64 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0003406/0.9606, allocations: 306.9 kB / 0.999 GB, free: 15.34 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9606, allocations: 0 / 0.999 GB, free: 15.34 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0008668/0.9615, allocations: 188 kB / 0.9992 GB, free: 15.16 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (27): * Single equations (assignments): 23 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 2,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001836/0.9634, allocations: 1.936 MB / 1.001 GB, free: 13.14 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001699/0.9651, allocations: 1.129 MB / 1.002 GB, free: 11.96 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.9651, allocations: 3.938 kB / 1.002 GB, free: 11.96 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0009993/0.9661, allocations: 0.8073 MB / 1.003 GB, free: 11.11 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008547/0.967, allocations: 180.9 kB / 1.003 GB, free: 10.93 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007143/0.9741, allocations: 8.413 MB / 1.011 GB, free: 2.312 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006068/0.9748, allocations: 1.008 MB / 1.012 GB, free: 1.273 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0003828/0.9751, allocations: 113.2 kB / 1.012 GB, free: 1.164 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002753/0.9754, allocations: 227.4 kB / 1.013 GB, free: 0.9414 MB / 0.7637 GB Notification: Performance of SimCode: time 1.803e-06/0.9754, allocations: 3.938 kB / 1.013 GB, free: 0.9375 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03104/1.006, allocations: 14 MB / 1.026 GB, free: 3.246 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001871/1.007, allocations: 220.5 kB / 1.027 GB, free: 3.004 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.914/2.92, allocations: 0 / 1.027 GB, free: 3.004 MB / 0.7794 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_L.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L_res.mat does not exist to compare? outputFormat=mat