Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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_R,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R",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.001669/0.001669, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001929/0.00193, allocations: 195.5 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.388/2.388, allocations: 390.3 MB / 0.6647 GB, free: 252 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001569, allocations: 67.89 kB / 0.8127 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5688/0.5704, allocations: 140.4 MB / 0.9497 GB, free: 9.484 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.006906/0.5774, allocations: 6.798 MB / 0.9564 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.004041/0.5814, allocations: 3.076 MB / 0.9594 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004722/0.5819, allocations: 28.91 kB / 0.9594 GB, free: 1.785 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0021/0.584, allocations: 0.9524 MB / 0.9603 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0009571/0.585, allocations: 0.4962 MB / 0.9608 GB, free: 0.6523 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008459/0.5859, allocations: 448.7 kB / 0.9612 GB, free: 308 kB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001048/0.5869, allocations: 1.225 MB / 0.9624 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008459/0.5878, allocations: 0.6654 MB / 0.9631 GB, free: 15.24 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005087/0.5883, allocations: 475.9 kB / 0.9635 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005696/0.5889, allocations: 0.514 MB / 0.964 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001062/0.589, allocations: 66.25 kB / 0.9641 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000672/0.5897, allocations: 385.2 kB / 0.9645 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002785/0.59, allocations: 307.1 kB / 0.9648 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0004272/0.5904, allocations: 453 kB / 0.9652 GB, free: 14 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001227/0.5916, allocations: 1.203 MB / 0.9664 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.5916, allocations: 0 / 0.9664 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.112e-06/0.5917, allocations: 4 kB / 0.9664 GB, free: 13.18 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.295e-05/0.5917, allocations: 0.8438 kB / 0.9664 GB, free: 13.18 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001872/0.5936, allocations: 1.175 MB / 0.9675 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.5936, allocations: 9.031 kB / 0.9675 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001368/0.5937, allocations: 113.7 kB / 0.9676 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001532/0.5953, allocations: 240.9 kB / 0.9679 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007604/0.5961, allocations: 0.5589 MB / 0.9684 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.863e-05/0.5961, allocations: 43.47 kB / 0.9685 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.977e-05/0.5962, allocations: 70.17 kB / 0.9685 GB, free: 11.56 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001461/0.5977, allocations: 1.079 MB / 0.9696 GB, free: 10.78 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.396e-05/0.5977, allocations: 10.53 kB / 0.9696 GB, free: 10.77 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.58e-05/0.5978, allocations: 34.27 kB / 0.9696 GB, free: 10.75 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001523/0.598, allocations: 84.34 kB / 0.9697 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001142/0.5991, allocations: 0.753 MB / 0.9704 GB, free: 10.35 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005731/0.6048, allocations: 5.902 MB / 0.9762 GB, free: 4.855 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009552/0.6058, allocations: 0.5539 MB / 0.9767 GB, free: 4.562 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004838/0.6063, allocations: 329.2 kB / 0.9771 GB, free: 4.395 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.185e-05/0.6064, allocations: 4.531 kB / 0.9771 GB, free: 4.395 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.447e-05/0.6064, allocations: 38.34 kB / 0.9771 GB, free: 4.352 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=47): time 3.637e-06/0.6064, allocations: 7.922 kB / 0.9771 GB, free: 4.34 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48): time 0.004256/0.6107, allocations: 1.991 MB / 0.979 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.186e-05/0.6108, allocations: 57.16 kB / 0.9791 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007455/0.6115, allocations: 0.5629 MB / 0.9796 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.194e-05/0.6116, allocations: 37.7 kB / 0.9797 GB, free: 2.473 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002537/0.6118, allocations: 414.9 kB / 0.9801 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000128/0.612, allocations: 177.6 kB / 0.9802 GB, free: 1.883 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001827/0.6122, allocations: 126.5 kB / 0.9804 GB, free: 1.754 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001441/0.6123, allocations: 378.7 kB / 0.9807 GB, free: 1.375 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003791/0.6127, allocations: 273.8 kB / 0.981 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005069/0.6132, allocations: 497 kB / 0.9815 GB, free: 0.5234 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001003/0.6142, allocations: 0.8016 MB / 0.9822 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.6142, allocations: 4 kB / 0.9823 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001811/0.616, allocations: 1.087 MB / 0.9833 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.6161, allocations: 8 kB / 0.9833 GB, free: 14.51 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.6161, allocations: 8 kB / 0.9833 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008229/0.6169, allocations: 279.2 kB / 0.9836 GB, free: 14.21 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004911/0.6174, allocations: 127.8 kB / 0.9837 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006309/0.6237, allocations: 7.133 MB / 0.9907 GB, free: 6.398 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006619/0.6244, allocations: 35.97 kB / 0.9907 GB, free: 6.363 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.688e-05/0.6245, allocations: 28 kB / 0.9907 GB, free: 6.336 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 (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,6,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003849/0.6249, allocations: 254.3 kB / 0.991 GB, free: 6.078 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001107/0.625, allocations: 79.19 kB / 0.9911 GB, free: 6 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001516/0.6265, allocations: 0.8926 MB / 0.9919 GB, free: 5.086 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.6265, allocations: 4 kB / 0.9919 GB, free: 5.082 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.6265, allocations: 4 kB / 0.9919 GB, free: 5.078 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.6266, allocations: 0 / 0.9919 GB, free: 5.078 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002479/0.629, allocations: 1.74 MB / 0.9936 GB, free: 3.25 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.6291, allocations: 3.938 kB / 0.9936 GB, free: 3.246 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002637/0.6293, allocations: 63.89 kB / 0.9937 GB, free: 3.184 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007133/0.63, allocations: 271.6 kB / 0.994 GB, free: 2.906 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.166e-05/0.6301, allocations: 12 kB / 0.994 GB, free: 2.895 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006037/0.6361, allocations: 7.126 MB / 1.001 GB, free: 11.2 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.6362, allocations: 0 / 1.001 GB, free: 11.2 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001444/0.6376, allocations: 0.9757 MB / 1.002 GB, free: 10.18 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002702/0.6379, allocations: 200.2 kB / 1.002 GB, free: 9.965 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.832e-05/0.638, allocations: 15.94 kB / 1.002 GB, free: 9.949 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003729/0.6384, allocations: 27.97 kB / 1.002 GB, free: 9.922 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.58e-05/0.6385, allocations: 43.94 kB / 1.002 GB, free: 9.879 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.806e-05/0.6385, allocations: 12 kB / 1.002 GB, free: 9.867 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.000397/0.6389, allocations: 391.1 kB / 1.003 GB, free: 9.488 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.81e-07/0.6389, allocations: 0 / 1.003 GB, free: 9.488 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0007877/0.6397, allocations: 220 kB / 1.003 GB, free: 9.273 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 (31): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00166/0.6414, allocations: 1.54 MB / 1.004 GB, free: 7.68 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.00195/0.6433, allocations: 1.334 MB / 1.006 GB, free: 6.289 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.6434, allocations: 0 / 1.006 GB, free: 6.289 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001137/0.6445, allocations: 0.9009 MB / 1.006 GB, free: 5.336 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009819/0.6455, allocations: 226.6 kB / 1.007 GB, free: 5.125 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007728/0.6532, allocations: 6.552 MB / 1.013 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005713/0.6538, allocations: 1.013 MB / 1.014 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0004022/0.6542, allocations: 122 kB / 1.014 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002895/0.6545, allocations: 255.3 kB / 1.014 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of SimCode: time 5.81e-07/0.6545, allocations: 0 / 1.014 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.048/0.7025, allocations: 17.25 MB / 1.031 GB, free: 11.89 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.869/10.57, allocations: 13.19 kB / 1.031 GB, free: 11.88 MB / 0.795 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches