Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.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.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL",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.001686/0.001686, allocations: 108 kB / 15.6 MB, free: 132 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.002145/0.002145, allocations: 198.6 kB / 16.54 MB, free: 6.672 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.34/1.34, allocations: 222.9 MB / 240.2 MB, free: 4.379 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.348/2.348, allocations: 390.3 MB / 0.6647 GB, free: 464 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 63.91 kB / 0.8127 GB, free: 14.34 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5579/0.5593, allocations: 140.4 MB / 0.9497 GB, free: 9.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.02661/0.5859, allocations: 26.65 MB / 0.9758 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01521/0.6012, allocations: 8.073 MB / 0.9836 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002588/0.6038, allocations: 119.7 kB / 0.9837 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.006867/0.6107, allocations: 2.765 MB / 0.9864 GB, free: 11.99 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.004265/0.615, allocations: 1.588 MB / 0.988 GB, free: 10.52 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.004056/0.6191, allocations: 1.673 MB / 0.9896 GB, free: 8.844 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.006717/0.6258, allocations: 6.142 MB / 0.9956 GB, free: 2.684 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009409/0.6352, allocations: 7.419 MB / 1.003 GB, free: 11.16 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004061/0.6393, allocations: 2.559 MB / 1.005 GB, free: 8.594 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004923/0.6443, allocations: 2.835 MB / 1.008 GB, free: 5.75 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.001698/0.646, allocations: 0.5078 MB / 1.009 GB, free: 5.242 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003441/0.6495, allocations: 1.279 MB / 1.01 GB, free: 3.961 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.002598/0.6521, allocations: 2.05 MB / 1.012 GB, free: 1.906 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.003811/0.6559, allocations: 2.385 MB / 1.014 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.007728/0.6637, allocations: 8.004 MB / 1.022 GB, free: 7.484 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.6637, allocations: 0 / 1.022 GB, free: 7.484 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.664e-06/0.6637, allocations: 0 / 1.022 GB, free: 7.484 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0001577/0.6639, allocations: 4 kB / 1.022 GB, free: 7.48 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: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.007873/0.6717, allocations: 4.22 MB / 1.026 GB, free: 3.195 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.6718, allocations: 8.031 kB / 1.026 GB, free: 3.188 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007947/0.6726, allocations: 0.5421 MB / 1.027 GB, free: 2.637 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004285/0.6769, allocations: 0.7961 MB / 1.027 GB, free: 1.836 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004019/0.6809, allocations: 2.424 MB / 1.03 GB, free: 15.36 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001677/0.6811, allocations: 275.6 kB / 1.03 GB, free: 15.09 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006429/0.6818, allocations: 380.4 kB / 1.03 GB, free: 14.71 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009506/0.6913, allocations: 5.996 MB / 1.036 GB, free: 8.465 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001034/0.6914, allocations: 23.77 kB / 1.036 GB, free: 8.441 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004546/0.6919, allocations: 156 kB / 1.036 GB, free: 8.289 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005842/0.6925, allocations: 282.9 kB / 1.037 GB, free: 8.012 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007478/0.7, allocations: 4.52 MB / 1.041 GB, free: 3.484 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02825/0.7282, allocations: 27.66 MB / 1.068 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001652/0.7299, allocations: 1.121 MB / 1.069 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001362/0.7313, allocations: 1.015 MB / 1.07 GB, free: 3.172 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 7.02e-05/0.7314, allocations: 20.98 kB / 1.07 GB, free: 3.152 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/0.7314, allocations: 43.56 kB / 1.07 GB, free: 3.102 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=110): time 4.197e-06/0.7314, allocations: 0 / 1.07 GB, free: 3.102 MB / 0.8262 GB Notification: Performance of matching and sorting (n=131): time 0.02127/0.7527, allocations: 9.68 MB / 1.08 GB, free: 9.215 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.332e-05/0.7528, allocations: 64.72 kB / 1.08 GB, free: 9.141 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001969/0.7548, allocations: 1.49 MB / 1.081 GB, free: 7.652 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0001169/0.7549, allocations: 45.7 kB / 1.081 GB, free: 7.602 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009803/0.7559, allocations: 1.663 MB / 1.083 GB, free: 5.914 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003684/0.7563, allocations: 477.2 kB / 1.083 GB, free: 5.441 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005086/0.7568, allocations: 331.2 kB / 1.084 GB, free: 5.113 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 7.904e-05/0.7569, allocations: 309.1 kB / 1.084 GB, free: 4.809 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001282/0.7581, allocations: 0.9135 MB / 1.085 GB, free: 3.895 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001603/0.7598, allocations: 1.459 MB / 1.086 GB, free: 2.191 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003086/0.7629, allocations: 2.554 MB / 1.089 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.274e-05/0.7629, allocations: 4 kB / 1.089 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005749/0.7686, allocations: 3.29 MB / 1.092 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.051e-05/0.7687, allocations: 16 kB / 1.092 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.717e-05/0.7687, allocations: 16 kB / 1.092 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00227/0.771, allocations: 0.7413 MB / 1.093 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001541/0.7726, allocations: 383.4 kB / 1.093 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0153/0.7879, allocations: 17.05 MB / 1.11 GB, free: 8.57 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001614/0.7895, allocations: 103.9 kB / 1.11 GB, free: 8.469 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002315/0.7898, allocations: 75.94 kB / 1.11 GB, free: 8.395 MB / 0.8731 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 (193): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,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.001949/0.7917, allocations: 1.307 MB / 1.111 GB, free: 7.078 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004219/0.7922, allocations: 197.7 kB / 1.111 GB, free: 6.883 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00501/0.7972, allocations: 2.792 MB / 1.114 GB, free: 4.051 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.7972, allocations: 16 kB / 1.114 GB, free: 4.035 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.809e-05/0.7972, allocations: 8 kB / 1.114 GB, free: 4.027 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/0.7972, allocations: 7.969 kB / 1.114 GB, free: 4.02 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01001/0.8073, allocations: 6.213 MB / 1.12 GB, free: 13.63 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.003e-05/0.8073, allocations: 12 kB / 1.12 GB, free: 13.62 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001201/0.8085, allocations: 235.6 kB / 1.121 GB, free: 13.39 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001983/0.8105, allocations: 0.6755 MB / 1.121 GB, free: 12.69 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.974e-05/0.8106, allocations: 28 kB / 1.121 GB, free: 12.66 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01454/0.8252, allocations: 16.8 MB / 1.138 GB, free: 10.6 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.151e-06/0.8252, allocations: 4 kB / 1.138 GB, free: 10.6 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006467/0.8317, allocations: 4.008 MB / 1.142 GB, free: 6.48 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008695/0.8326, allocations: 446.8 kB / 1.142 GB, free: 6.023 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003748/0.8329, allocations: 44.05 kB / 1.142 GB, free: 5.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001018/0.834, allocations: 83.89 kB / 1.142 GB, free: 5.898 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002935/0.8343, allocations: 124.7 kB / 1.142 GB, free: 5.777 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.84e-05/0.8344, allocations: 36 kB / 1.142 GB, free: 5.742 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001325/0.8357, allocations: 0.9981 MB / 1.143 GB, free: 4.754 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8357, allocations: 0 / 1.143 GB, free: 4.754 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.002099/0.8378, allocations: 0.6836 MB / 1.144 GB, free: 4.07 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (RL_3.phase1.i_p[1],RL_3.phase1.i_p[2],RL_3.phase2.i_p[1],RL_3.phase2.i_p[2],RL_3.phase3.i_p[1],RL_3.phase3.i_p[2]) * 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 (101): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006089/0.8439, allocations: 4.609 MB / 1.148 GB, free: 15.34 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.006156/0.8501, allocations: 4.1 MB / 1.152 GB, free: 11.12 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 8.677e-06/0.8501, allocations: 0.875 kB / 1.152 GB, free: 11.12 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.003056/0.8532, allocations: 2.303 MB / 1.155 GB, free: 8.703 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002752/0.8559, allocations: 0.6686 MB / 1.155 GB, free: 8.055 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03332/0.8893, allocations: 22.72 MB / 1.177 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004458/0.8938, allocations: 2.672 MB / 1.18 GB, free: 13.01 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001602/0.8954, allocations: 485.4 kB / 1.181 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00167/0.8971, allocations: 1.276 MB / 1.182 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of SimCode: time 6.11e-07/0.8971, allocations: 4 kB / 1.182 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1094/1.006, allocations: 56.27 MB / 1.237 GB, free: 3.695 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.38/11.38, allocations: 9.812 kB / 1.237 GB, free: 3.688 MB / 0.9981 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_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_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches