Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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.ACLineMedium,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium",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.005042/0.005042, allocations: 101.3 kB / 15.73 MB, free: 6.059 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.00124/0.00124, allocations: 196.9 kB / 16.68 MB, free: 5.961 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.309/1.309, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.253/2.253, allocations: 390.3 MB / 0.6648 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 67.89 kB / 0.9504 GB, free: 8.145 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8187/0.82, allocations: 140.4 MB / 1.087 GB, free: 5.141 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.01781/0.8378, allocations: 14.77 MB / 1.102 GB, free: 11.01 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01696/0.8548, allocations: 10.35 MB / 1.112 GB, free: 3.895 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002604/0.8575, allocations: 57.53 kB / 1.112 GB, free: 3.871 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.004677/0.8622, allocations: 1.69 MB / 1.114 GB, free: 2.852 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.005925/0.8682, allocations: 1.855 MB / 1.116 GB, free: 1.781 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.002239/0.8704, allocations: 0.7602 MB / 1.116 GB, free: 1.387 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.004446/0.8749, allocations: 2.751 MB / 1.119 GB, free: 160 kB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001976/0.8769, allocations: 1.415 MB / 1.12 GB, free: 15.49 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00256/0.8794, allocations: 1.526 MB / 1.122 GB, free: 14.94 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001918/0.8814, allocations: 1.167 MB / 1.123 GB, free: 14.44 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0002599/0.8816, allocations: 160.3 kB / 1.123 GB, free: 14.44 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001733/0.8834, allocations: 0.7865 MB / 1.124 GB, free: 14.2 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0007/0.8841, allocations: 0.6105 MB / 1.124 GB, free: 13.91 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.001192/0.8853, allocations: 0.9571 MB / 1.125 GB, free: 13.32 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.004376/0.8897, allocations: 2.774 MB / 1.128 GB, free: 12.35 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.8897, allocations: 0 / 1.128 GB, free: 12.35 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.513e-06/0.8897, allocations: 0 / 1.128 GB, free: 12.35 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.706e-05/0.8898, allocations: 0 / 1.128 GB, free: 12.35 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.005514/0.8953, allocations: 2.234 MB / 1.13 GB, free: 10.94 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.8954, allocations: 10.7 kB / 1.13 GB, free: 10.94 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003154/0.8957, allocations: 197 kB / 1.131 GB, free: 10.81 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01301/0.9087, allocations: 2.12 MB / 1.133 GB, free: 10.66 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003495/0.9122, allocations: 1.315 MB / 1.134 GB, free: 9.938 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.32e-05/0.9123, allocations: 89 kB / 1.134 GB, free: 9.895 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000324/0.9127, allocations: 119.2 kB / 1.134 GB, free: 9.852 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006505/0.9192, allocations: 2.669 MB / 1.137 GB, free: 8.781 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.418e-05/0.9193, allocations: 12.06 kB / 1.137 GB, free: 8.773 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001948/0.9195, allocations: 50.45 kB / 1.137 GB, free: 8.738 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007302/0.9202, allocations: 194.6 kB / 1.137 GB, free: 8.719 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008388/0.9286, allocations: 2.796 MB / 1.14 GB, free: 7.996 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01683/0.9454, allocations: 10.47 MB / 1.15 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007122/0.9526, allocations: 2.34 MB / 1.152 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003341/0.956, allocations: 1.284 MB / 1.153 GB, free: 14 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 6.824e-05/0.956, allocations: 14.08 kB / 1.153 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.844e-05/0.9561, allocations: 43.12 kB / 1.153 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=89): time 2.335e-06/0.9561, allocations: 5.094 kB / 1.153 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of matching and sorting (n=153): time 0.06452/1.021, allocations: 16.52 MB / 1.17 GB, free: 5.836 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.61e-05/1.021, allocations: 67.19 kB / 1.17 GB, free: 5.77 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001872/1.023, allocations: 1.174 MB / 1.171 GB, free: 5.129 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001885/1.023, allocations: 55.73 kB / 1.171 GB, free: 5.074 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005925/1.023, allocations: 0.7594 MB / 1.172 GB, free: 4.398 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.000544/1.024, allocations: 0.5358 MB / 1.172 GB, free: 3.922 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006317/1.025, allocations: 288.1 kB / 1.172 GB, free: 3.766 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 9.197e-05/1.025, allocations: 306.2 kB / 1.173 GB, free: 3.465 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003853/1.029, allocations: 1.511 MB / 1.174 GB, free: 2.68 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00405/1.033, allocations: 1.784 MB / 1.176 GB, free: 1.578 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007856/1.04, allocations: 3.366 MB / 1.179 GB, free: 14.91 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.104e-05/1.041, allocations: 4 kB / 1.179 GB, free: 14.9 MB / 0.92 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01449/1.055, allocations: 5.278 MB / 1.184 GB, free: 9.586 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.056e-05/1.055, allocations: 11.98 kB / 1.184 GB, free: 9.574 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.148e-05/1.055, allocations: 12.09 kB / 1.184 GB, free: 9.562 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007248/1.062, allocations: 1.88 MB / 1.186 GB, free: 7.66 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002175/1.065, allocations: 415.2 kB / 1.187 GB, free: 7.254 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03024/1.095, allocations: 24.16 MB / 1.21 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003265/1.098, allocations: 307.6 kB / 1.21 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003798/1.099, allocations: 71.89 kB / 1.211 GB, free: 13.61 MB / 0.9512 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (2,8,100.0%), (3,17,100.0%), (3,17,100.0%), (2,16,100.0%), (2,16,100.0%), (2,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001123/1.1, allocations: 466 kB / 1.211 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005239/1.1, allocations: 182.9 kB / 1.211 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01428/1.115, allocations: 5.32 MB / 1.216 GB, free: 7.594 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.069e-05/1.115, allocations: 20 kB / 1.216 GB, free: 7.574 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.504e-05/1.115, allocations: 16 kB / 1.216 GB, free: 7.559 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.758e-05/1.115, allocations: 7.969 kB / 1.216 GB, free: 7.551 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01843/1.133, allocations: 7.419 MB / 1.224 GB, free: 12 kB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-05/1.133, allocations: 0 / 1.224 GB, free: 12 kB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001848/1.135, allocations: 351.3 kB / 1.224 GB, free: 15.67 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006375/1.141, allocations: 1.712 MB / 1.226 GB, free: 13.93 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002352/1.142, allocations: 43.91 kB / 1.226 GB, free: 13.89 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02832/1.17, allocations: 23.33 MB / 1.248 GB, free: 5.449 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/1.17, allocations: 0 / 1.248 GB, free: 5.449 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01263/1.183, allocations: 4.896 MB / 1.253 GB, free: 476 kB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001295/1.184, allocations: 0.4958 MB / 1.254 GB, free: 15.95 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004319/1.184, allocations: 24 kB / 1.254 GB, free: 15.93 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002474/1.187, allocations: 319.5 kB / 1.254 GB, free: 15.61 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004764/1.187, allocations: 160.9 kB / 1.254 GB, free: 15.45 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001515/1.188, allocations: 51.97 kB / 1.254 GB, free: 15.4 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001346/1.189, allocations: 0.7899 MB / 1.255 GB, free: 14.61 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.9e-07/1.189, allocations: 3.938 kB / 1.255 GB, free: 14.61 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002444/1.191, allocations: 0.6562 MB / 1.256 GB, free: 13.95 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01307/1.204, allocations: 5.489 MB / 1.261 GB, free: 8.375 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0119/1.216, allocations: 5.159 MB / 1.266 GB, free: 3.105 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.007e-05/1.216, allocations: 8 kB / 1.266 GB, free: 3.098 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.007247/1.224, allocations: 3.359 MB / 1.269 GB, free: 15.64 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00319/1.227, allocations: 0.5594 MB / 1.27 GB, free: 15.1 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04691/1.274, allocations: 21.91 MB / 1.291 GB, free: 8.676 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001478/1.275, allocations: 1.568 MB / 1.293 GB, free: 7.074 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.001426/1.277, allocations: 382.4 kB / 1.293 GB, free: 6.695 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009197/1.278, allocations: 0.6554 MB / 1.294 GB, free: 6.039 MB / 1.029 GB Notification: Performance of SimCode: time 8.02e-07/1.278, allocations: 0 / 1.294 GB, free: 6.039 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1212/1.399, allocations: 58.76 MB / 1.351 GB, free: 11.99 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.62/21.02, allocations: 6.688 kB / 1.351 GB, free: 11.99 MB / 1.092 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_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_ACLineMedium.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches