Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.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: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001167/0.001167, allocations: 191.6 kB / 16.25 MB, free: 6.621 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.353/1.353, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.715/2.715, allocations: 461.9 MB / 0.7343 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 68.53 kB / 0.8986 GB, free: 37.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2945, allocations: 157.4 MB / 1.052 GB, free: 8.738 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L): time 0.03443/0.329, allocations: 32.32 MB / 1.084 GB, free: 8.312 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01749/0.3465, allocations: 10.18 MB / 1.094 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003589/0.3502, allocations: 135.2 kB / 1.094 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.009209/0.3595, allocations: 3.489 MB / 1.097 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.005592/0.3651, allocations: 1.704 MB / 1.099 GB, free: 8.762 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.005729/0.3708, allocations: 1.953 MB / 1.101 GB, free: 6.812 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.009582/0.3804, allocations: 7.341 MB / 1.108 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01994/0.4004, allocations: 11.59 MB / 1.119 GB, free: 3.758 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006429/0.4069, allocations: 3.228 MB / 1.123 GB, free: 0.5195 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007103/0.414, allocations: 3.653 MB / 1.126 GB, free: 12.86 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.002712/0.4168, allocations: 0.6484 MB / 1.127 GB, free: 12.21 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005448/0.4222, allocations: 1.771 MB / 1.128 GB, free: 10.43 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.005074/0.4274, allocations: 2.542 MB / 1.131 GB, free: 7.887 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.00773/0.4351, allocations: 2.898 MB / 1.134 GB, free: 4.977 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0153/0.4505, allocations: 10.14 MB / 1.144 GB, free: 10.8 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 8.406e-06/0.4505, allocations: 4 kB / 1.144 GB, free: 10.8 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.28e-05/0.4505, allocations: 7.938 kB / 1.144 GB, free: 10.79 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0004168/0.451, allocations: 0 / 1.144 GB, free: 10.79 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: 1256 * Number of variables: 1256 Notification: Performance of Generate backend data structure: time 0.0147/0.4657, allocations: 4.986 MB / 1.149 GB, free: 5.734 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.4657, allocations: 8.625 kB / 1.149 GB, free: 5.727 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006429/0.4722, allocations: 0.959 MB / 1.15 GB, free: 4.762 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006856/0.4791, allocations: 2.862 MB / 1.152 GB, free: 1.84 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007138/0.4799, allocations: 345.7 kB / 1.153 GB, free: 1.5 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002862/0.4827, allocations: 468.2 kB / 1.153 GB, free: 1.043 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.021/0.5038, allocations: 7.663 MB / 1.161 GB, free: 9.031 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000262/0.5041, allocations: 27.72 kB / 1.161 GB, free: 9.004 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00138/0.5055, allocations: 196 kB / 1.161 GB, free: 8.812 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003991/0.5059, allocations: 316.9 kB / 1.161 GB, free: 8.5 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0125/0.5184, allocations: 5.706 MB / 1.167 GB, free: 2.777 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04205/0.5605, allocations: 35.1 MB / 1.201 GB, free: 12.47 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003002/0.5635, allocations: 2.158 MB / 1.203 GB, free: 10.19 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001775/0.5653, allocations: 1.273 MB / 1.204 GB, free: 8.918 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001059/0.5654, allocations: 17.31 kB / 1.204 GB, free: 8.902 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/0.5655, allocations: 47.86 kB / 1.204 GB, free: 8.848 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=133): time 3.005e-06/0.5655, allocations: 0 / 1.204 GB, free: 8.848 MB / 0.9669 GB Notification: Performance of matching and sorting (n=136): time 0.01536/0.5809, allocations: 7.085 MB / 1.211 GB, free: 1.488 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/0.5809, allocations: 72.66 kB / 1.211 GB, free: 1.406 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002208/0.5832, allocations: 1.484 MB / 1.213 GB, free: 15.87 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0001192/0.5833, allocations: 49.7 kB / 1.213 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.001238/0.5845, allocations: 2.004 MB / 1.215 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.000446/0.585, allocations: 489 kB / 1.215 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005366/0.5855, allocations: 351.1 kB / 1.216 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.5857, allocations: 301.1 kB / 1.216 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001372/0.587, allocations: 0.9096 MB / 1.217 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001754/0.5888, allocations: 1.597 MB / 1.218 GB, free: 9.84 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003628/0.5924, allocations: 2.733 MB / 1.221 GB, free: 6.797 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.684e-05/0.5925, allocations: 8 kB / 1.221 GB, free: 6.789 MB / 0.9825 GB Notification: Performance of matching and sorting (n=239) (initialization): time 0.006877/0.5994, allocations: 3.526 MB / 1.224 GB, free: 3.215 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.842e-05/0.5994, allocations: 17.55 kB / 1.224 GB, free: 3.199 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.812e-05/0.5995, allocations: 24.84 kB / 1.224 GB, free: 3.176 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00266/0.6022, allocations: 0.9076 MB / 1.225 GB, free: 2.23 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/0.6035, allocations: 351.4 kB / 1.226 GB, free: 1.887 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02296/0.6264, allocations: 23.11 MB / 1.248 GB, free: 9.102 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001788/0.6283, allocations: 99.95 kB / 1.248 GB, free: 9.004 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003345/0.6286, allocations: 88 kB / 1.248 GB, free: 8.918 MB / 1.014 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 (185): * Single equations (assignments): 173 * 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 {(3,5,77.8%), (3,5,77.8%), (3,5,77.8%), (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.003338/0.632, allocations: 1.613 MB / 1.25 GB, free: 7.293 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006536/0.6326, allocations: 205.5 kB / 1.25 GB, free: 7.09 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006264/0.6389, allocations: 2.982 MB / 1.253 GB, free: 4.059 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.031e-05/0.639, allocations: 12 kB / 1.253 GB, free: 4.047 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.619e-05/0.6391, allocations: 19.98 kB / 1.253 GB, free: 4.027 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.311e-05/0.6391, allocations: 3.984 kB / 1.253 GB, free: 4.023 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5911/1.23, allocations: 7.355 MB / 1.26 GB, free: 185.6 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.936e-06/1.23, allocations: 4.594 kB / 1.26 GB, free: 185.6 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007299/1.231, allocations: 173.5 kB / 1.261 GB, free: 185.6 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002098/1.233, allocations: 0.8314 MB / 1.261 GB, free: 185.5 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.796e-05/1.233, allocations: 33.39 kB / 1.261 GB, free: 185.5 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01557/1.249, allocations: 21.94 MB / 1.283 GB, free: 169.4 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/1.249, allocations: 17.56 kB / 1.283 GB, free: 169.4 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006061/1.255, allocations: 3.015 MB / 1.286 GB, free: 168.9 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001147/1.256, allocations: 463.2 kB / 1.286 GB, free: 168.8 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002761/1.256, allocations: 26.11 kB / 1.286 GB, free: 168.8 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008229/1.257, allocations: 76.81 kB / 1.286 GB, free: 168.8 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004873/1.258, allocations: 126.1 kB / 1.286 GB, free: 168.8 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.703e-05/1.258, allocations: 35.38 kB / 1.286 GB, free: 168.8 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001577/1.259, allocations: 0.9759 MB / 1.287 GB, free: 168.7 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.8e-07/1.259, allocations: 2.844 kB / 1.287 GB, free: 168.7 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.00327/1.263, allocations: 0.7904 MB / 1.288 GB, free: 168.7 MB / 1.014 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 (91): * Single equations (assignments): 79 * 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,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,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00028/1.263, allocations: 146.8 kB / 1.288 GB, free: 168.6 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.008057/1.271, allocations: 4.648 MB / 1.293 GB, free: 167.1 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 8.235e-06/1.271, allocations: 2.156 kB / 1.293 GB, free: 167.1 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.003795/1.275, allocations: 2.735 MB / 1.296 GB, free: 165.7 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00364/1.279, allocations: 0.7257 MB / 1.296 GB, free: 165.5 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01505/1.294, allocations: 9.165 MB / 1.305 GB, free: 160.2 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004659/1.298, allocations: 3.111 MB / 1.308 GB, free: 159 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001658/1.3, allocations: 450.8 kB / 1.309 GB, free: 158.9 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002892/1.3, allocations: 124.3 kB / 1.309 GB, free: 158.9 MB / 1.014 GB Notification: Performance of SimCode: time 1.213e-06/1.3, allocations: 0 / 1.309 GB, free: 158.9 MB / 1.014 GB Notification: Performance of Templates: time 0.05194/1.352, allocations: 36.01 MB / 1.344 GB, free: 137.1 MB / 1.014 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches