Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.ACLineMatrix_RL,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_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.001578/0.001578, 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.001839/0.001839, allocations: 195.2 kB / 16.53 MB, free: 6.391 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.358/1.358, allocations: 222.9 MB / 240.2 MB, free: 4.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.679/2.679, allocations: 469.4 MB / 0.742 GB, free: 7.746 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 65.11 kB / 0.9083 GB, free: 34.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2882/0.2895, allocations: 159.1 MB / 1.064 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL): time 0.02547/0.315, allocations: 22.58 MB / 1.086 GB, free: 7.902 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01062/0.3257, allocations: 6.236 MB / 1.092 GB, free: 1.652 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001716/0.3274, allocations: 99.5 kB / 1.092 GB, free: 1.555 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.004174/0.3316, allocations: 1.55 MB / 1.093 GB, free: 0 / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.004176/0.3358, allocations: 1.622 MB / 1.095 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003343/0.3391, allocations: 1.342 MB / 1.096 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.006535/0.3457, allocations: 5.936 MB / 1.102 GB, free: 7.082 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008306/0.354, allocations: 6.092 MB / 1.108 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003612/0.3577, allocations: 2.407 MB / 1.11 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004224/0.3619, allocations: 2.866 MB / 1.113 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.001229/0.3631, allocations: 460 kB / 1.114 GB, free: 11.17 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002806/0.366, allocations: 1.096 MB / 1.115 GB, free: 10.07 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.002689/0.3687, allocations: 2.031 MB / 1.117 GB, free: 8.035 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.004075/0.3728, allocations: 2.163 MB / 1.119 GB, free: 5.863 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.008192/0.381, allocations: 7.26 MB / 1.126 GB, free: 14.58 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.381, allocations: 0 / 1.126 GB, free: 14.58 MB / 0.8887 GB Notification: Performance of FrontEnd: time 3.397e-06/0.381, allocations: 0 / 1.126 GB, free: 14.58 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.0002185/0.3812, allocations: 3.938 kB / 1.126 GB, free: 14.58 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: 913 * Number of variables: 913 Notification: Performance of Generate backend data structure: time 0.009384/0.3906, allocations: 3.809 MB / 1.13 GB, free: 10.71 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.3907, allocations: 8.031 kB / 1.13 GB, free: 10.7 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001531/0.3922, allocations: 0.5014 MB / 1.13 GB, free: 10.19 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007027/0.3993, allocations: 1.21 MB / 1.131 GB, free: 8.973 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004782/0.4041, allocations: 2.215 MB / 1.133 GB, free: 6.699 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002232/0.4043, allocations: 242.4 kB / 1.134 GB, free: 6.461 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001104/0.4054, allocations: 315.8 kB / 1.134 GB, free: 6.152 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01163/0.4171, allocations: 6.212 MB / 1.14 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.52e-05/0.4172, allocations: 15.88 kB / 1.14 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005784/0.4178, allocations: 139.9 kB / 1.14 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000483/0.4183, allocations: 402.3 kB / 1.141 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007966/0.4263, allocations: 4.666 MB / 1.145 GB, free: 10.46 MB / 0.9044 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02799/0.4543, allocations: 29.14 MB / 1.174 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001858/0.4561, allocations: 1.428 MB / 1.175 GB, free: 9.168 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001769/0.4579, allocations: 1.479 MB / 1.176 GB, free: 7.688 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 8.214e-05/0.458, allocations: 13 kB / 1.176 GB, free: 7.676 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.482e-05/0.4581, allocations: 47.5 kB / 1.177 GB, free: 7.617 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=110): time 2.905e-06/0.4581, allocations: 0 / 1.177 GB, free: 7.617 MB / 0.9356 GB Notification: Performance of matching and sorting (n=179): time 0.1432/0.6013, allocations: 37.24 MB / 1.213 GB, free: 2.316 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.998e-05/0.6014, allocations: 81.28 kB / 1.213 GB, free: 2.227 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001838/0.6032, allocations: 1.423 MB / 1.214 GB, free: 0.7969 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0001603/0.6034, allocations: 53.7 kB / 1.214 GB, free: 0.7383 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008854/0.6043, allocations: 1.539 MB / 1.216 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005292/0.6048, allocations: 0.6006 MB / 1.216 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007022/0.6055, allocations: 387.3 kB / 1.217 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 8.423e-05/0.6056, allocations: 301.1 kB / 1.217 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002406/0.608, allocations: 1.788 MB / 1.219 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002767/0.6108, allocations: 2.346 MB / 1.221 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005557/0.6164, allocations: 4.387 MB / 1.225 GB, free: 4.863 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.144e-05/0.6164, allocations: 11.94 kB / 1.225 GB, free: 4.852 MB / 0.9825 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.0173/0.6337, allocations: 8.571 MB / 1.234 GB, free: 12.24 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.893e-05/0.6337, allocations: 12 kB / 1.234 GB, free: 12.23 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.733e-05/0.6338, allocations: 16 kB / 1.234 GB, free: 12.21 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01439/0.6482, allocations: 4.673 MB / 1.238 GB, free: 7.523 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/0.6494, allocations: 299.5 kB / 1.239 GB, free: 7.23 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5127/1.162, allocations: 32.6 MB / 1.271 GB, free: 158.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002095/1.164, allocations: 154 kB / 1.271 GB, free: 158.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001826/1.164, allocations: 82.14 kB / 1.271 GB, free: 158.2 MB / 0.9981 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 (157): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(11,13,90.1%), (11,13,91.7%), (6,12,100.0%), (6,12,100.0%), (6,6,100.0%), (6,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001894/1.166, allocations: 1.338 MB / 1.272 GB, free: 157.6 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003491/1.167, allocations: 198.1 kB / 1.272 GB, free: 157.6 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01695/1.184, allocations: 8.442 MB / 1.281 GB, free: 155 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.136e-05/1.184, allocations: 21.72 kB / 1.281 GB, free: 155 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.437e-05/1.184, allocations: 25.84 kB / 1.281 GB, free: 155 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-05/1.184, allocations: 8.656 kB / 1.281 GB, free: 155 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0223/1.206, allocations: 12.84 MB / 1.293 GB, free: 150.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-05/1.206, allocations: 6.375 kB / 1.293 GB, free: 150.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008105/1.207, allocations: 167.4 kB / 1.293 GB, free: 150.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.013/1.22, allocations: 4.527 MB / 1.298 GB, free: 148.4 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002825/1.22, allocations: 39.62 kB / 1.298 GB, free: 148.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03764/1.258, allocations: 32.21 MB / 1.329 GB, free: 121.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/1.258, allocations: 11.94 kB / 1.329 GB, free: 121.8 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01455/1.272, allocations: 8.24 MB / 1.337 GB, free: 113.4 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001158/1.274, allocations: 0.6156 MB / 1.338 GB, free: 112.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003058/1.274, allocations: 44.09 kB / 1.338 GB, free: 112.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001432/1.275, allocations: 139.8 kB / 1.338 GB, free: 112.6 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007213/1.276, allocations: 178.2 kB / 1.338 GB, free: 112.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001271/1.276, allocations: 48 kB / 1.338 GB, free: 112.4 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001001/1.277, allocations: 0.9549 MB / 1.339 GB, free: 111.5 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.6e-07/1.277, allocations: 0 / 1.339 GB, free: 111.5 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002791/1.28, allocations: 1.113 MB / 1.34 GB, free: 110.3 MB / 0.9981 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 (80): * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(6,6,100.0%), (6,12,100.0%), (11,13,91.7%), (6,6,100.0%), (6,12,100.0%), (11,13,91.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01446/1.295, allocations: 8.841 MB / 1.349 GB, free: 101.4 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0119/1.307, allocations: 7.067 MB / 1.356 GB, free: 94.26 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 9.388e-06/1.307, allocations: 0 / 1.356 GB, free: 94.26 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.008077/1.315, allocations: 4.369 MB / 1.36 GB, free: 89.82 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002441/1.317, allocations: 0.5167 MB / 1.361 GB, free: 89.33 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04943/1.367, allocations: 35.22 MB / 1.395 GB, free: 52.41 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002193/1.369, allocations: 2.727 MB / 1.398 GB, free: 49.65 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001041/1.37, allocations: 391 kB / 1.398 GB, free: 49.27 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009696/1.371, allocations: 1.21 MB / 1.399 GB, free: 48.06 MB / 0.9981 GB Notification: Performance of SimCode: time 7.22e-07/1.371, allocations: 0 / 1.399 GB, free: 48.06 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.115/1.486, allocations: 82.83 MB / 1.48 GB, free: 13.74 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.25/11.73, allocations: 23.16 kB / 1.48 GB, free: 13.72 MB / 1.045 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_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_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches