Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.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,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R",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.0008531/0.0008531, allocations: 91.22 kB / 15.36 MB, free: 0.7383 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.005258/0.005258, allocations: 173 kB / 16.26 MB, free: 6.676 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.286/1.286, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.456/2.456, allocations: 462.6 MB / 0.7364 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0002769/0.000277, allocations: 8.812 kB / 0.9029 GB, free: 36.37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2174/0.2176, allocations: 159.6 MB / 1.059 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.03193/0.2496, allocations: 33.99 MB / 1.092 GB, free: 2.824 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01314/0.2628, allocations: 9.828 MB / 1.102 GB, free: 8.969 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001905/0.2647, allocations: 123.3 kB / 1.102 GB, free: 8.848 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001624/0.2663, allocations: 0.7016 MB / 1.102 GB, free: 8.141 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.004018/0.2704, allocations: 1.917 MB / 1.104 GB, free: 6.215 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002994/0.2734, allocations: 1.615 MB / 1.106 GB, free: 4.602 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.009069/0.2825, allocations: 11.18 MB / 1.117 GB, free: 9.391 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01489/0.2974, allocations: 12.17 MB / 1.129 GB, free: 13.12 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002924/0.3003, allocations: 2.412 MB / 1.131 GB, free: 10.7 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003171/0.3035, allocations: 3.199 MB / 1.134 GB, free: 7.492 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0003881/0.3039, allocations: 288 kB / 1.134 GB, free: 7.211 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001935/0.3058, allocations: 1.271 MB / 1.136 GB, free: 5.938 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.001571/0.3074, allocations: 2.096 MB / 1.138 GB, free: 3.836 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.002001/0.3094, allocations: 2.532 MB / 1.14 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.006798/0.3162, allocations: 9.858 MB / 1.15 GB, free: 7.395 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.3162, allocations: 0 / 1.15 GB, free: 7.395 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.162e-06/0.3162, allocations: 0 / 1.15 GB, free: 7.395 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 7.46e-05/0.3163, allocations: 0 / 1.15 GB, free: 7.395 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.006692/0.323, allocations: 4.36 MB / 1.154 GB, free: 2.965 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.323, allocations: 11.97 kB / 1.154 GB, free: 2.953 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000829/0.3239, allocations: 0.6984 MB / 1.155 GB, free: 2.246 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003891/0.3278, allocations: 0.9626 MB / 1.156 GB, free: 1.277 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003881/0.3317, allocations: 2.999 MB / 1.159 GB, free: 14.22 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002136/0.3319, allocations: 357.9 kB / 1.159 GB, free: 13.87 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000643/0.3325, allocations: 472.2 kB / 1.159 GB, free: 13.41 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01002/0.3426, allocations: 7.91 MB / 1.167 GB, free: 5.133 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.774e-05/0.3427, allocations: 19.81 kB / 1.167 GB, free: 5.113 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004453/0.3431, allocations: 211.9 kB / 1.167 GB, free: 4.906 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004383/0.3436, allocations: 365.1 kB / 1.168 GB, free: 4.547 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007848/0.3514, allocations: 5.937 MB / 1.173 GB, free: 14.59 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02746/0.3789, allocations: 36.26 MB / 1.209 GB, free: 7.09 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002883/0.3818, allocations: 2.135 MB / 1.211 GB, free: 4.938 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001695/0.3835, allocations: 1.488 MB / 1.212 GB, free: 3.453 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 6.992e-05/0.3836, allocations: 21.25 kB / 1.212 GB, free: 3.434 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.248e-05/0.3836, allocations: 55.81 kB / 1.213 GB, free: 3.371 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=157): time 2.926e-06/0.3836, allocations: 0 / 1.213 GB, free: 3.371 MB / 0.9669 GB Notification: Performance of matching and sorting (n=160): time 0.0116/0.3953, allocations: 7.568 MB / 1.22 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.161e-05/0.3953, allocations: 68.72 kB / 1.22 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001951/0.3973, allocations: 1.864 MB / 1.222 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 9.723e-05/0.3974, allocations: 53.7 kB / 1.222 GB, free: 9.5 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.001177/0.3986, allocations: 2.131 MB / 1.224 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003886/0.3989, allocations: 0.5584 MB / 1.224 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002168/0.3992, allocations: 170.1 kB / 1.225 GB, free: 6.605 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 8.187e-05/0.3993, allocations: 305.1 kB / 1.225 GB, free: 6.305 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001409/0.4007, allocations: 1.062 MB / 1.226 GB, free: 5.238 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001835/0.4025, allocations: 1.768 MB / 1.228 GB, free: 3.152 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003397/0.4059, allocations: 3.045 MB / 1.231 GB, free: 15.79 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.318e-06/0.4059, allocations: 8 kB / 1.231 GB, free: 15.78 MB / 0.9981 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.005507/0.4114, allocations: 3.917 MB / 1.234 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.57e-05/0.4115, allocations: 20.92 kB / 1.234 GB, free: 11.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.185e-05/0.4115, allocations: 20 kB / 1.235 GB, free: 11.78 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002153/0.4137, allocations: 0.9314 MB / 1.235 GB, free: 10.81 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001337/0.415, allocations: 427.3 kB / 1.236 GB, free: 10.39 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4239/0.8389, allocations: 21.06 MB / 1.256 GB, free: 160.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001761/0.8407, allocations: 126.9 kB / 1.257 GB, free: 160.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000185/0.8409, allocations: 92.59 kB / 1.257 GB, free: 160.8 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 (227): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,6,100.0%), (2,6,100.0%), (2,6,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.002037/0.843, allocations: 1.657 MB / 1.258 GB, free: 160.7 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003951/0.8434, allocations: 257.6 kB / 1.258 GB, free: 160.7 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004628/0.848, allocations: 3.265 MB / 1.262 GB, free: 160.5 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.848, allocations: 14.09 kB / 1.262 GB, free: 160.5 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.108e-05/0.848, allocations: 11.97 kB / 1.262 GB, free: 160.5 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.391e-05/0.8481, allocations: 7.781 kB / 1.262 GB, free: 160.5 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01043/0.8585, allocations: 7.551 MB / 1.269 GB, free: 159.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.245e-06/0.8585, allocations: 4.75 kB / 1.269 GB, free: 159.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008614/0.8594, allocations: 221 kB / 1.269 GB, free: 159.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002076/0.8615, allocations: 0.8958 MB / 1.27 GB, free: 159.6 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.8e-05/0.8616, allocations: 31.27 kB / 1.27 GB, free: 159.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01421/0.8758, allocations: 21.05 MB / 1.291 GB, free: 142.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.8758, allocations: 4.594 kB / 1.291 GB, free: 142.3 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004415/0.8802, allocations: 3.383 MB / 1.294 GB, free: 140.8 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007593/0.881, allocations: 0.5359 MB / 1.295 GB, free: 140.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002965/0.8813, allocations: 31.5 kB / 1.295 GB, free: 140.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001015/0.8823, allocations: 94.34 kB / 1.295 GB, free: 140.5 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002693/0.8826, allocations: 140.7 kB / 1.295 GB, free: 140.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.322e-05/0.8827, allocations: 47.28 kB / 1.295 GB, free: 140.5 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001418/0.8841, allocations: 1.22 MB / 1.296 GB, free: 140 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.8841, allocations: 5.219 kB / 1.296 GB, free: 140 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002285/0.8864, allocations: 0.9034 MB / 1.297 GB, free: 139.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 (109): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(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%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%), (2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004443/0.8909, allocations: 3.987 MB / 1.301 GB, free: 137.8 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.004811/0.8957, allocations: 4.42 MB / 1.305 GB, free: 135.3 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.8957, allocations: 6.688 kB / 1.305 GB, free: 135.2 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003062/0.8988, allocations: 3.003 MB / 1.308 GB, free: 133.3 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003854/0.9026, allocations: 0.7693 MB / 1.309 GB, free: 133 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02972/0.9324, allocations: 29.51 MB / 1.338 GB, free: 110 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002298/0.9347, allocations: 3.215 MB / 1.341 GB, free: 106.8 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001319/0.936, allocations: 0.5215 MB / 1.341 GB, free: 106.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001254/0.9373, allocations: 1.647 MB / 1.343 GB, free: 104.6 MB / 0.9981 GB Notification: Performance of SimCode: time 2.6e-07/0.9373, allocations: 0 / 1.343 GB, free: 104.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7552/1.693, allocations: 68.3 MB / 1.41 GB, free: 37.17 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000172/1.693, allocations: 245.4 kB / 1.41 GB, free: 36.92 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.032/4.724, allocations: 7.125 kB / 1.41 GB, free: 36.92 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches