Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.ACLine_R_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N",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.0007485/0.000751, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.004248/0.004249, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.346/1.346, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.597/2.597, allocations: 462.6 MB / 0.7364 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003594/0.0003594, allocations: 11.47 kB / 0.9029 GB, free: 36.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3552/0.3556, allocations: 159.6 MB / 1.059 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04237/0.398, allocations: 36.74 MB / 1.095 GB, free: 20 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01885/0.4169, allocations: 10.88 MB / 1.105 GB, free: 5.113 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003676/0.4206, allocations: 135.2 kB / 1.105 GB, free: 4.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.002804/0.4234, allocations: 0.7714 MB / 1.106 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.008252/0.4317, allocations: 2.084 MB / 1.108 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.005361/0.4371, allocations: 1.79 MB / 1.11 GB, free: 328 kB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01501/0.4521, allocations: 13.18 MB / 1.123 GB, free: 3.105 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02366/0.4758, allocations: 14.45 MB / 1.137 GB, free: 4.547 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005166/0.481, allocations: 2.836 MB / 1.14 GB, free: 1.699 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006236/0.4872, allocations: 3.873 MB / 1.143 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.00151/0.4887, allocations: 348 kB / 1.144 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0037/0.4924, allocations: 1.326 MB / 1.145 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.003619/0.4961, allocations: 2.529 MB / 1.148 GB, free: 9.609 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.005549/0.5016, allocations: 2.968 MB / 1.15 GB, free: 6.621 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.01176/0.5134, allocations: 11.69 MB / 1.162 GB, free: 10.89 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.5135, allocations: 0 / 1.162 GB, free: 10.89 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.104e-06/0.5135, allocations: 0 / 1.162 GB, free: 10.89 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0003336/0.5138, allocations: 0 / 1.162 GB, free: 10.89 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.01193/0.5258, allocations: 5.082 MB / 1.167 GB, free: 5.742 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.5258, allocations: 15.97 kB / 1.167 GB, free: 5.727 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001883/0.5277, allocations: 0.8333 MB / 1.168 GB, free: 4.883 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005329/0.533, allocations: 1.063 MB / 1.169 GB, free: 3.812 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005696/0.5388, allocations: 3.419 MB / 1.172 GB, free: 348 kB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003013/0.5391, allocations: 427.8 kB / 1.172 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008659/0.5399, allocations: 0.5431 MB / 1.173 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01497/0.5549, allocations: 9.381 MB / 1.182 GB, free: 5.66 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001192/0.5551, allocations: 15.88 kB / 1.182 GB, free: 5.645 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005847/0.5557, allocations: 248 kB / 1.182 GB, free: 5.402 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006246/0.5563, allocations: 418.9 kB / 1.183 GB, free: 4.992 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01204/0.5684, allocations: 7.131 MB / 1.19 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03988/0.6083, allocations: 41.37 MB / 1.23 GB, free: 0.7422 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004194/0.6125, allocations: 3.105 MB / 1.233 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002669/0.6152, allocations: 2.114 MB / 1.235 GB, free: 11.52 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000104/0.6153, allocations: 22 kB / 1.235 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.395e-05/0.6154, allocations: 68.56 kB / 1.235 GB, free: 11.42 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=209): time 3.677e-06/0.6154, allocations: 0 / 1.235 GB, free: 11.42 MB / 0.9981 GB Notification: Performance of matching and sorting (n=212): time 0.02218/0.6376, allocations: 10.61 MB / 1.246 GB, free: 0.707 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.797e-05/0.6377, allocations: 77.41 kB / 1.246 GB, free: 0.6211 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4476/1.085, allocations: 2.002 MB / 1.248 GB, free: 170.7 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003914/1.086, allocations: 63.61 kB / 1.248 GB, free: 170.6 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00149/1.087, allocations: 2.404 MB / 1.25 GB, free: 170.1 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007606/1.088, allocations: 0.7289 MB / 1.251 GB, free: 169.7 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004395/1.088, allocations: 210.1 kB / 1.251 GB, free: 169.7 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.631e-05/1.088, allocations: 301.1 kB / 1.251 GB, free: 169.4 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002141/1.091, allocations: 1.373 MB / 1.253 GB, free: 169.4 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002182/1.093, allocations: 2.113 MB / 1.255 GB, free: 168.5 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004287/1.097, allocations: 3.765 MB / 1.258 GB, free: 167.6 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.153e-05/1.097, allocations: 5.688 kB / 1.258 GB, free: 167.6 MB / 0.9981 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.008031/1.105, allocations: 5.063 MB / 1.263 GB, free: 167.1 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.645e-05/1.105, allocations: 14.5 kB / 1.263 GB, free: 167.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.232e-05/1.105, allocations: 22.98 kB / 1.263 GB, free: 167.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00384/1.109, allocations: 1.577 MB / 1.265 GB, free: 167.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001666/1.111, allocations: 450 kB / 1.265 GB, free: 167 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02067/1.132, allocations: 17.11 MB / 1.282 GB, free: 157.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002267/1.134, allocations: 147.6 kB / 1.282 GB, free: 157.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003755/1.134, allocations: 114.5 kB / 1.282 GB, free: 157 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (231): * Single equations (assignments): 227 * 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 {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00329/1.137, allocations: 1.943 MB / 1.284 GB, free: 156.2 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005552/1.138, allocations: 289.2 kB / 1.285 GB, free: 156.1 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006692/1.145, allocations: 4.458 MB / 1.289 GB, free: 154.2 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-05/1.145, allocations: 20.59 kB / 1.289 GB, free: 154.2 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.726e-05/1.145, allocations: 17.84 kB / 1.289 GB, free: 154.2 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/1.145, allocations: 11.16 kB / 1.289 GB, free: 154.2 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01281/1.158, allocations: 9.667 MB / 1.298 GB, free: 150.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.756e-06/1.158, allocations: 7.875 kB / 1.298 GB, free: 150.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008524/1.159, allocations: 230 kB / 1.299 GB, free: 150.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002637/1.161, allocations: 1.432 MB / 1.3 GB, free: 149.7 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001065/1.161, allocations: 39.78 kB / 1.3 GB, free: 149.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01559/1.177, allocations: 17.1 MB / 1.317 GB, free: 137 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/1.177, allocations: 7.938 kB / 1.317 GB, free: 137 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005477/1.182, allocations: 4.548 MB / 1.321 GB, free: 132.4 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001007/1.183, allocations: 0.6293 MB / 1.322 GB, free: 131.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004491/1.184, allocations: 43.98 kB / 1.322 GB, free: 131.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001336/1.185, allocations: 115.8 kB / 1.322 GB, free: 131.6 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003465/1.186, allocations: 181.4 kB / 1.322 GB, free: 131.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/1.186, allocations: 64 kB / 1.322 GB, free: 131.3 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001499/1.187, allocations: 1.319 MB / 1.323 GB, free: 130 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.187, allocations: 0 / 1.323 GB, free: 130 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002829/1.19, allocations: 1.137 MB / 1.325 GB, free: 128.9 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (107): * Single equations (assignments): 103 * 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 {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005401/1.195, allocations: 5.161 MB / 1.33 GB, free: 123.6 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.005649/1.201, allocations: 4.695 MB / 1.334 GB, free: 118.9 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/1.201, allocations: 5 kB / 1.334 GB, free: 118.9 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003384/1.205, allocations: 2.927 MB / 1.337 GB, free: 115.9 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004454/1.209, allocations: 0.8364 MB / 1.338 GB, free: 115.1 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03843/1.247, allocations: 35.94 MB / 1.373 GB, free: 76.66 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002819/1.25, allocations: 3.69 MB / 1.377 GB, free: 72.93 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001642/1.252, allocations: 0.5571 MB / 1.377 GB, free: 72.37 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001476/1.253, allocations: 1.94 MB / 1.379 GB, free: 70.43 MB / 0.9981 GB Notification: Performance of SimCode: time 7.52e-07/1.253, allocations: 0 / 1.379 GB, free: 70.43 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2107/1.464, allocations: 82.4 MB / 1.46 GB, free: 4.973 MB / 1.014 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000222/1.464, allocations: 259.8 kB / 1.46 GB, free: 4.715 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.285/4.749, allocations: 0 / 1.46 GB, free: 4.715 MB / 1.014 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches