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.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,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.004609/0.004609, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.001066/0.001066, allocations: 193.3 kB / 16.67 MB, free: 5.969 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.322/1.322, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.365/2.365, allocations: 390.2 MB / 0.6648 GB, free: 220 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 62.38 kB / 0.9504 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2474, allocations: 140.4 MB / 1.087 GB, free: 2.031 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine): time 0.03242/0.2798, allocations: 30.76 MB / 1.118 GB, free: 3.164 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02098/0.3008, allocations: 13.58 MB / 1.131 GB, free: 5.543 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002982/0.3039, allocations: 143.2 kB / 1.131 GB, free: 5.402 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.007822/0.3117, allocations: 3.209 MB / 1.134 GB, free: 2.188 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.007309/0.3191, allocations: 2.755 MB / 1.137 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.004942/0.324, allocations: 2.011 MB / 1.139 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.009118/0.3331, allocations: 7.648 MB / 1.146 GB, free: 5.734 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009148/0.3423, allocations: 8.236 MB / 1.154 GB, free: 13.38 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005745/0.3481, allocations: 3.47 MB / 1.158 GB, free: 9.902 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004856/0.353, allocations: 3.379 MB / 1.161 GB, free: 6.512 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.001299/0.3543, allocations: 0.5977 MB / 1.162 GB, free: 5.914 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003185/0.3575, allocations: 1.494 MB / 1.163 GB, free: 4.418 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.002715/0.3602, allocations: 2.362 MB / 1.165 GB, free: 2.051 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.003636/0.3639, allocations: 2.882 MB / 1.168 GB, free: 15.15 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.009179/0.3731, allocations: 9.492 MB / 1.177 GB, free: 5.633 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.3731, allocations: 0 / 1.177 GB, free: 5.633 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.723e-06/0.3731, allocations: 0 / 1.177 GB, free: 5.633 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 0.0001876/0.3733, allocations: 0 / 1.177 GB, free: 5.633 MB / 0.9356 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.009802/0.3831, allocations: 5.27 MB / 1.183 GB, free: 284 kB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/0.3832, allocations: 8.031 kB / 1.183 GB, free: 276 kB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000903/0.3841, allocations: 0.6242 MB / 1.183 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005707/0.3898, allocations: 1.013 MB / 1.184 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006166/0.396, allocations: 3.105 MB / 1.187 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002072/0.3962, allocations: 316.8 kB / 1.187 GB, free: 11.12 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007896/0.397, allocations: 423.9 kB / 1.188 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01096/0.408, allocations: 6.791 MB / 1.194 GB, free: 3.621 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001098/0.4081, allocations: 15.83 kB / 1.194 GB, free: 3.605 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004612/0.4086, allocations: 188 kB / 1.195 GB, free: 3.422 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000894/0.4095, allocations: 372 kB / 1.195 GB, free: 3.055 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008925/0.4184, allocations: 5.114 MB / 1.2 GB, free: 13.92 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03376/0.4522, allocations: 30.56 MB / 1.23 GB, free: 12.6 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001944/0.4542, allocations: 1.399 MB / 1.231 GB, free: 11.2 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001679/0.4559, allocations: 1.324 MB / 1.233 GB, free: 9.867 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 7.745e-05/0.456, allocations: 21.25 kB / 1.233 GB, free: 9.848 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.163e-05/0.4561, allocations: 47.88 kB / 1.233 GB, free: 9.793 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=130): time 3.928e-06/0.4561, allocations: 0 / 1.233 GB, free: 9.793 MB / 0.9981 GB Notification: Performance of matching and sorting (n=199): time 0.08908/0.5452, allocations: 23.14 MB / 1.255 GB, free: 2.531 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/0.5452, allocations: 73.41 kB / 1.255 GB, free: 2.449 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002769/0.548, allocations: 2.066 MB / 1.257 GB, free: 376 kB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0002362/0.5483, allocations: 57.7 kB / 1.257 GB, free: 312 kB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.4842/1.032, allocations: 2.058 MB / 1.259 GB, free: 156.2 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007054/1.033, allocations: 0.7153 MB / 1.26 GB, free: 155.7 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000763/1.034, allocations: 411.9 kB / 1.26 GB, free: 155.7 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 3.678e-05/1.034, allocations: 306.3 kB / 1.261 GB, free: 155.4 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002126/1.036, allocations: 1.432 MB / 1.262 GB, free: 155 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002415/1.039, allocations: 2.013 MB / 1.264 GB, free: 153.7 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004673/1.043, allocations: 3.695 MB / 1.268 GB, free: 151.6 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.516e-05/1.043, allocations: 5.156 kB / 1.268 GB, free: 151.6 MB / 1.014 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01174/1.055, allocations: 5.671 MB / 1.273 GB, free: 149.3 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 3.357e-05/1.055, allocations: 13.28 kB / 1.273 GB, free: 149.3 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.756e-05/1.055, allocations: 17.03 kB / 1.273 GB, free: 149.3 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006931/1.062, allocations: 2.087 MB / 1.275 GB, free: 148.7 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001571/1.064, allocations: 379.5 kB / 1.276 GB, free: 148.7 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03211/1.096, allocations: 38.46 MB / 1.313 GB, free: 117.3 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00243/1.098, allocations: 125.8 kB / 1.313 GB, free: 117.3 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001918/1.098, allocations: 93.39 kB / 1.313 GB, free: 117.3 MB / 1.014 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 (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,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%), (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 prepare postOptimizeDAE: time 0.002249/1.101, allocations: 1.505 MB / 1.315 GB, free: 116.6 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004644/1.101, allocations: 296.6 kB / 1.315 GB, free: 116.4 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009175/1.11, allocations: 5.219 MB / 1.32 GB, free: 114.2 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.815e-05/1.11, allocations: 18.81 kB / 1.32 GB, free: 114.2 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.719e-05/1.11, allocations: 17.75 kB / 1.32 GB, free: 114.2 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.58e-05/1.11, allocations: 12.39 kB / 1.32 GB, free: 114.2 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01515/1.126, allocations: 9.678 MB / 1.33 GB, free: 110.1 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.85e-05/1.126, allocations: 7.938 kB / 1.33 GB, free: 110.1 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008882/1.127, allocations: 217.8 kB / 1.33 GB, free: 110.1 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005338/1.132, allocations: 1.839 MB / 1.332 GB, free: 109.1 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002204/1.132, allocations: 46.97 kB / 1.332 GB, free: 109 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02713/1.159, allocations: 37.46 MB / 1.368 GB, free: 73.63 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/1.159, allocations: 11.94 kB / 1.368 GB, free: 73.62 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007532/1.167, allocations: 4.937 MB / 1.373 GB, free: 68.53 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001377/1.168, allocations: 0.6281 MB / 1.374 GB, free: 67.88 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004507/1.169, allocations: 47.95 kB / 1.374 GB, free: 67.83 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001444/1.17, allocations: 127.8 kB / 1.374 GB, free: 67.71 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005139/1.171, allocations: 185.6 kB / 1.374 GB, free: 67.52 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001165/1.171, allocations: 67.92 kB / 1.374 GB, free: 67.46 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001555/1.172, allocations: 1.374 MB / 1.376 GB, free: 66.07 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.3e-07/1.172, allocations: 0 / 1.376 GB, free: 66.07 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.003123/1.176, allocations: 1.051 MB / 1.377 GB, free: 65.02 MB / 1.014 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 (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007457/1.183, allocations: 5.541 MB / 1.382 GB, free: 59.31 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.008501/1.192, allocations: 6.305 MB / 1.388 GB, free: 52.8 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/1.192, allocations: 0.875 kB / 1.388 GB, free: 52.8 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.005547/1.197, allocations: 4.405 MB / 1.393 GB, free: 48.16 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004053/1.201, allocations: 0.9892 MB / 1.393 GB, free: 47.22 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04333/1.245, allocations: 30.81 MB / 1.424 GB, free: 15.38 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002848/1.247, allocations: 3.125 MB / 1.427 GB, free: 12.22 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001605/1.249, allocations: 0.5276 MB / 1.427 GB, free: 11.69 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001626/1.251, allocations: 1.671 MB / 1.429 GB, free: 10.02 MB / 1.014 GB Notification: Performance of SimCode: time 9.02e-07/1.251, allocations: 0 / 1.429 GB, free: 10.02 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1547/1.405, allocations: 88.11 MB / 1.515 GB, free: 2.918 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.63/16.03, allocations: 3.75 kB / 1.515 GB, free: 2.914 MB / 1.092 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_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.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches