Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 112.3 kB / 16.41 MB, free: 6.008 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.00113/0.00113, allocations: 185 kB / 17.34 MB, free: 5.629 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.36/1.36, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.282/2.282, allocations: 390.3 MB / 0.6655 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 63.89 kB / 0.9515 GB, free: 7.602 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8882/0.8896, allocations: 140.4 MB / 1.089 GB, free: 5.488 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N): time 0.02436/0.914, allocations: 20.25 MB / 1.108 GB, free: 7.828 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01274/0.9268, allocations: 6.439 MB / 1.115 GB, free: 3.41 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002985/0.9299, allocations: 87.47 kB / 1.115 GB, free: 3.383 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.006464/0.9364, allocations: 2.233 MB / 1.117 GB, free: 2.031 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.004822/0.9412, allocations: 1.183 MB / 1.118 GB, free: 1.301 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.004433/0.9457, allocations: 1.288 MB / 1.119 GB, free: 0.5742 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.007923/0.9536, allocations: 4.85 MB / 1.124 GB, free: 14.39 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008577/0.9622, allocations: 5.61 MB / 1.13 GB, free: 12.11 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004789/0.9671, allocations: 2.113 MB / 1.132 GB, free: 11.15 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005226/0.9723, allocations: 2.344 MB / 1.134 GB, free: 10.13 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.002088/0.9745, allocations: 429.4 kB / 1.134 GB, free: 10.13 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004209/0.9787, allocations: 0.9996 MB / 1.135 GB, free: 9.902 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.003904/0.9826, allocations: 1.665 MB / 1.137 GB, free: 9.215 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.006386/0.989, allocations: 1.912 MB / 1.139 GB, free: 7.988 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.01305/1.002, allocations: 6.521 MB / 1.145 GB, free: 5.93 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 7.313e-06/1.002, allocations: 0 / 1.145 GB, free: 5.93 MB / 0.8887 GB Notification: Performance of FrontEnd: time 3.477e-06/1.002, allocations: 3.938 kB / 1.145 GB, free: 5.926 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.00028/1.002, allocations: 5.625 kB / 1.145 GB, free: 5.922 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: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.01447/1.017, allocations: 3.459 MB / 1.149 GB, free: 3.93 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/1.017, allocations: 9.375 kB / 1.149 GB, free: 3.93 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005316/1.022, allocations: 0.6357 MB / 1.149 GB, free: 3.625 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005894/1.028, allocations: 2.047 MB / 1.151 GB, free: 2.254 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000409/1.029, allocations: 217.6 kB / 1.151 GB, free: 2.156 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001758/1.03, allocations: 296.6 kB / 1.152 GB, free: 2.055 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01301/1.044, allocations: 4.892 MB / 1.156 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001101/1.044, allocations: 8.719 kB / 1.156 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004906/1.044, allocations: 125.9 kB / 1.157 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004912/1.045, allocations: 231.9 kB / 1.157 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008275/1.053, allocations: 3.746 MB / 1.16 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02927/1.082, allocations: 21.4 MB / 1.181 GB, free: 9.105 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001974/1.084, allocations: 1.313 MB / 1.183 GB, free: 8.406 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001541/1.086, allocations: 1.059 MB / 1.184 GB, free: 7.852 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 6.392e-05/1.086, allocations: 11.16 kB / 1.184 GB, free: 7.852 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.452e-05/1.086, allocations: 45.41 kB / 1.184 GB, free: 7.805 MB / 0.92 GB Notification: Performance of pre-optimization done (n=107): time 3.617e-06/1.086, allocations: 0 / 1.184 GB, free: 7.805 MB / 0.92 GB Notification: Performance of matching and sorting (n=138): time 0.02505/1.111, allocations: 8.657 MB / 1.192 GB, free: 1.633 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.174e-05/1.111, allocations: 68.7 kB / 1.192 GB, free: 1.555 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001546/1.113, allocations: 1.13 MB / 1.193 GB, free: 428 kB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0001771/1.113, allocations: 45.7 kB / 1.193 GB, free: 376 kB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008259/1.114, allocations: 1.304 MB / 1.195 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004416/1.114, allocations: 477.2 kB / 1.195 GB, free: 14.57 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004564/1.115, allocations: 291.3 kB / 1.195 GB, free: 14.29 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 8.967e-05/1.115, allocations: 313 kB / 1.196 GB, free: 13.98 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001224/1.116, allocations: 0.9096 MB / 1.197 GB, free: 13.07 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001465/1.117, allocations: 1.322 MB / 1.198 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002911/1.12, allocations: 2.43 MB / 1.2 GB, free: 8.973 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.176e-05/1.12, allocations: 4 kB / 1.2 GB, free: 8.969 MB / 0.9356 GB Notification: Performance of matching and sorting (n=203) (initialization): time 0.005983/1.126, allocations: 3.467 MB / 1.204 GB, free: 5.48 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.125e-05/1.126, allocations: 11.98 kB / 1.204 GB, free: 5.469 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.676e-05/1.126, allocations: 12 kB / 1.204 GB, free: 5.457 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003063/1.13, allocations: 1.187 MB / 1.205 GB, free: 4.266 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/1.131, allocations: 255.5 kB / 1.205 GB, free: 4.016 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01687/1.147, allocations: 13.84 MB / 1.219 GB, free: 5.758 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001667/1.149, allocations: 87.97 kB / 1.219 GB, free: 5.672 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002741/1.149, allocations: 64 kB / 1.219 GB, free: 5.609 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (132): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,17,84.0%), (5,17,92.0%), (5,25,88.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002345/1.152, allocations: 1.122 MB / 1.22 GB, free: 4.477 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004635/1.152, allocations: 162 kB / 1.22 GB, free: 4.316 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005905/1.158, allocations: 3.161 MB / 1.223 GB, free: 1.129 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.576e-05/1.158, allocations: 15.94 kB / 1.223 GB, free: 1.113 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.194e-05/1.158, allocations: 15.94 kB / 1.223 GB, free: 1.098 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.749e-05/1.158, allocations: 11.97 kB / 1.223 GB, free: 1.086 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0121/1.17, allocations: 6.241 MB / 1.229 GB, free: 10.7 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.456e-05/1.17, allocations: 4 kB / 1.229 GB, free: 10.7 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006138/1.171, allocations: 147.7 kB / 1.229 GB, free: 10.55 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002849/1.174, allocations: 1.09 MB / 1.23 GB, free: 9.461 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001254/1.174, allocations: 28 kB / 1.23 GB, free: 9.434 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01684/1.191, allocations: 13.53 MB / 1.244 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.393e-06/1.191, allocations: 7.938 kB / 1.244 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005751/1.197, allocations: 3.146 MB / 1.247 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001194/1.198, allocations: 430.9 kB / 1.247 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005682/1.199, allocations: 31.94 kB / 1.247 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001224/1.2, allocations: 83.89 kB / 1.247 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004556/1.2, allocations: 124.7 kB / 1.247 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000106/1.2, allocations: 36 kB / 1.247 GB, free: 7.535 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001438/1.202, allocations: 0.7671 MB / 1.248 GB, free: 6.766 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6.12e-07/1.202, allocations: 0 / 1.248 GB, free: 6.766 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.003116/1.205, allocations: 0.6602 MB / 1.249 GB, free: 6.105 MB / 0.9825 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 (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,17,84.0%), (5,25,88.0%), (5,17,92.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003377/1.205, allocations: 143.1 kB / 1.249 GB, free: 5.957 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.005295/1.211, allocations: 3.138 MB / 1.252 GB, free: 2.773 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.521e-05/1.211, allocations: 4 kB / 1.252 GB, free: 2.77 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.003396/1.214, allocations: 1.948 MB / 1.254 GB, free: 0.7812 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003401/1.218, allocations: 0.5051 MB / 1.254 GB, free: 296 kB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01294/1.231, allocations: 5.789 MB / 1.26 GB, free: 10.42 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003627/1.234, allocations: 2.387 MB / 1.262 GB, free: 8 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005366/1.235, allocations: 91.44 kB / 1.262 GB, free: 7.91 MB / 0.9981 GB Notification: Performance of SimCode: time 1.763e-06/1.235, allocations: 7.938 kB / 1.262 GB, free: 7.902 MB / 0.9981 GB Notification: Performance of Templates: time 0.1035/1.338, allocations: 79.62 MB / 1.34 GB, free: 8.352 MB / 1.076 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches