Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: 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_9_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_9_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.001114/0.001114, allocations: 102.5 kB / 16.35 MB, free: 5.828 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.001277/0.001277, allocations: 193.2 kB / 17.29 MB, free: 5.484 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.374/1.374, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.208/2.208, allocations: 390.3 MB / 0.6655 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 61.58 kB / 0.814 GB, free: 32.73 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3005/0.3017, allocations: 140.4 MB / 0.9511 GB, free: 8.016 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L): time 0.03695/0.3387, allocations: 32.62 MB / 0.983 GB, free: 7.293 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01721/0.356, allocations: 10.27 MB / 0.993 GB, free: 13 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003218/0.3592, allocations: 143.3 kB / 0.9931 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.009327/0.3686, allocations: 3.718 MB / 0.9968 GB, free: 9.129 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.005757/0.3744, allocations: 1.866 MB / 0.9986 GB, free: 7.254 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.006357/0.3808, allocations: 2.116 MB / 1.001 GB, free: 5.137 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.009585/0.3904, allocations: 7.321 MB / 1.008 GB, free: 13.8 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01168/0.4021, allocations: 9.424 MB / 1.017 GB, free: 4.246 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00535/0.4075, allocations: 3.17 MB / 1.02 GB, free: 1.066 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005925/0.4135, allocations: 3.485 MB / 1.024 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.002021/0.4155, allocations: 0.6445 MB / 1.024 GB, free: 12.93 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004538/0.4201, allocations: 1.782 MB / 1.026 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.003566/0.4237, allocations: 2.546 MB / 1.028 GB, free: 8.59 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.004641/0.4283, allocations: 2.894 MB / 1.031 GB, free: 5.684 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.01112/0.4395, allocations: 10.11 MB / 1.041 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.4395, allocations: 4 kB / 1.041 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.993e-06/0.4395, allocations: 0 / 1.041 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 0.0003259/0.4398, allocations: 0 / 1.041 GB, free: 11.54 MB / 0.8262 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.01275/0.4526, allocations: 4.99 MB / 1.046 GB, free: 6.48 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.4527, allocations: 16.03 kB / 1.046 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0057/0.4584, allocations: 0.9473 MB / 1.047 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007559/0.466, allocations: 3.046 MB / 1.05 GB, free: 2.406 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003555/0.4664, allocations: 353.7 kB / 1.05 GB, free: 2.059 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001723/0.4681, allocations: 460.2 kB / 1.051 GB, free: 1.609 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01762/0.4857, allocations: 7.667 MB / 1.058 GB, free: 9.594 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002496/0.486, allocations: 31.72 kB / 1.058 GB, free: 9.562 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001265/0.4873, allocations: 200 kB / 1.058 GB, free: 9.367 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003883/0.4877, allocations: 313 kB / 1.059 GB, free: 9.059 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0122/0.4999, allocations: 5.714 MB / 1.064 GB, free: 3.328 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5665/1.066, allocations: 34.81 MB / 1.098 GB, free: 104.6 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003188/1.07, allocations: 2.159 MB / 1.1 GB, free: 103.4 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001745/1.071, allocations: 1.27 MB / 1.102 GB, free: 102.8 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 8.739e-05/1.072, allocations: 17.47 kB / 1.102 GB, free: 102.8 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.66e-05/1.072, allocations: 45.62 kB / 1.102 GB, free: 102.8 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=133): time 3.556e-06/1.072, allocations: 2.562 kB / 1.102 GB, free: 102.8 MB / 0.8575 GB Notification: Performance of matching and sorting (n=136): time 0.01422/1.086, allocations: 7.09 MB / 1.109 GB, free: 99.24 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.421e-05/1.086, allocations: 66.23 kB / 1.109 GB, free: 99.18 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002445/1.088, allocations: 1.486 MB / 1.11 GB, free: 98.56 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0001653/1.089, allocations: 47.88 kB / 1.11 GB, free: 98.52 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001252/1.09, allocations: 1.999 MB / 1.112 GB, free: 97.01 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004615/1.09, allocations: 492.2 kB / 1.113 GB, free: 96.64 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005329/1.091, allocations: 347.2 kB / 1.113 GB, free: 96.47 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.611e-05/1.091, allocations: 305.9 kB / 1.113 GB, free: 96.17 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001363/1.092, allocations: 0.9105 MB / 1.114 GB, free: 95.83 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001673/1.094, allocations: 1.598 MB / 1.116 GB, free: 94.62 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003535/1.097, allocations: 2.735 MB / 1.118 GB, free: 92.83 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.624e-05/1.097, allocations: 10.62 kB / 1.118 GB, free: 92.82 MB / 0.8575 GB Notification: Performance of matching and sorting (n=239) (initialization): time 0.006456/1.104, allocations: 3.532 MB / 1.122 GB, free: 91.35 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.972e-05/1.104, allocations: 15.38 kB / 1.122 GB, free: 91.35 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4e-05/1.104, allocations: 22.69 kB / 1.122 GB, free: 91.35 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002643/1.107, allocations: 0.9043 MB / 1.123 GB, free: 91.04 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/1.108, allocations: 353 kB / 1.123 GB, free: 91 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01927/1.127, allocations: 23.1 MB / 1.146 GB, free: 71.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001863/1.129, allocations: 105.3 kB / 1.146 GB, free: 71.11 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002005/1.129, allocations: 85.28 kB / 1.146 GB, free: 71.09 MB / 0.8575 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.002754/1.132, allocations: 1.614 MB / 1.147 GB, free: 70.37 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004918/1.133, allocations: 203.9 kB / 1.147 GB, free: 70.27 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005195/1.138, allocations: 2.992 MB / 1.15 GB, free: 68.98 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.721e-05/1.138, allocations: 12.75 kB / 1.15 GB, free: 68.98 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.794e-05/1.138, allocations: 14.22 kB / 1.15 GB, free: 68.98 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.215e-05/1.138, allocations: 7.125 kB / 1.15 GB, free: 68.98 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01175/1.15, allocations: 7.337 MB / 1.158 GB, free: 64.49 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.948e-06/1.15, allocations: 4.25 kB / 1.158 GB, free: 64.49 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007721/1.15, allocations: 180.8 kB / 1.158 GB, free: 64.43 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002206/1.153, allocations: 0.8266 MB / 1.159 GB, free: 63.95 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001076/1.153, allocations: 30.69 kB / 1.159 GB, free: 63.93 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01422/1.167, allocations: 21.94 MB / 1.18 GB, free: 43.49 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/1.167, allocations: 7.75 kB / 1.18 GB, free: 43.49 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004685/1.172, allocations: 3.021 MB / 1.183 GB, free: 41.63 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001071/1.173, allocations: 463.1 kB / 1.183 GB, free: 41.29 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002165/1.173, allocations: 31.42 kB / 1.183 GB, free: 41.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007446/1.174, allocations: 74.58 kB / 1.184 GB, free: 41.23 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003752/1.174, allocations: 117.8 kB / 1.184 GB, free: 41.16 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.737e-05/1.174, allocations: 46.47 kB / 1.184 GB, free: 41.14 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001188/1.176, allocations: 0.9771 MB / 1.185 GB, free: 40.59 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.6e-07/1.176, allocations: 0 / 1.185 GB, free: 40.59 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.003106/1.179, allocations: 0.7853 MB / 1.185 GB, free: 40.53 MB / 0.8575 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.0002555/1.179, allocations: 140.4 kB / 1.186 GB, free: 40.4 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.005143/1.184, allocations: 4.028 MB / 1.19 GB, free: 37.62 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 5.68e-06/1.184, allocations: 0 / 1.19 GB, free: 37.62 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.003076/1.187, allocations: 2.739 MB / 1.192 GB, free: 35.47 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003005/1.19, allocations: 0.7343 MB / 1.193 GB, free: 34.77 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01231/1.203, allocations: 7.101 MB / 1.2 GB, free: 27.61 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002819/1.205, allocations: 3.115 MB / 1.203 GB, free: 24.46 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001329/1.207, allocations: 454 kB / 1.203 GB, free: 24.02 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002823/1.207, allocations: 115.4 kB / 1.203 GB, free: 23.91 MB / 0.8575 GB Notification: Performance of SimCode: time 1.142e-06/1.207, allocations: 0 / 1.203 GB, free: 23.91 MB / 0.8575 GB Notification: Performance of Templates: time 0.05882/1.266, allocations: 35.72 MB / 1.238 GB, free: 4.645 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches