Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001597/0.001596, allocations: 105.7 kB / 16.37 MB, free: 6.477 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.001856/0.001856, allocations: 193.8 kB / 17.31 MB, free: 5.824 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.432/1.432, allocations: 222.9 MB / 241 MB, free: 15.18 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.23/2.23, allocations: 390.3 MB / 0.6655 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 66.25 kB / 0.814 GB, free: 32.7 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2754, allocations: 140.4 MB / 0.9511 GB, free: 8.047 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04231/0.3177, allocations: 37.97 MB / 0.9882 GB, free: 1.953 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01974/0.3375, allocations: 10.98 MB / 0.9989 GB, free: 6.941 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004298/0.3419, allocations: 155.2 kB / 0.9991 GB, free: 6.789 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.01102/0.353, allocations: 4.36 MB / 1.003 GB, free: 2.418 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.006796/0.3598, allocations: 2.215 MB / 1.006 GB, free: 196 kB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.005896/0.3657, allocations: 2.17 MB / 1.008 GB, free: 14.02 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.01422/0.3799, allocations: 9.276 MB / 1.017 GB, free: 4.723 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01706/0.397, allocations: 11.28 MB / 1.028 GB, free: 9.324 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007835/0.4049, allocations: 4 MB / 1.032 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008758/0.4137, allocations: 4.506 MB / 1.036 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.002944/0.4167, allocations: 0.8243 MB / 1.037 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005702/0.4224, allocations: 1.588 MB / 1.038 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.005449/0.4279, allocations: 3.162 MB / 1.041 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.007797/0.4357, allocations: 3.645 MB / 1.045 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.01494/0.4507, allocations: 12.31 MB / 1.057 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 9.157e-06/0.4507, allocations: 7.938 kB / 1.057 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.324e-06/0.4507, allocations: 0 / 1.057 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0003865/0.4511, allocations: 0 / 1.057 GB, free: 11.2 MB / 0.8419 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.01597/0.4671, allocations: 6.319 MB / 1.063 GB, free: 4.809 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 6.09e-05/0.4672, allocations: 8.031 kB / 1.063 GB, free: 4.801 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005367/0.4726, allocations: 1.067 MB / 1.064 GB, free: 3.727 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008806/0.4814, allocations: 3.614 MB / 1.068 GB, free: 60 kB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003148/0.4817, allocations: 423.8 kB / 1.068 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001167/0.4829, allocations: 0.5394 MB / 1.069 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01988/0.5028, allocations: 9.385 MB / 1.078 GB, free: 5.387 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001544/0.503, allocations: 23.72 kB / 1.078 GB, free: 5.363 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007522/0.5038, allocations: 248 kB / 1.078 GB, free: 5.121 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006123/0.5044, allocations: 422.9 kB / 1.079 GB, free: 4.707 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5358/1.04, allocations: 7.116 MB / 1.085 GB, free: 117.8 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05123/1.091, allocations: 40.99 MB / 1.126 GB, free: 84.66 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004873/1.096, allocations: 3.105 MB / 1.129 GB, free: 83.5 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00324/1.1, allocations: 2.139 MB / 1.131 GB, free: 82.66 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001368/1.1, allocations: 22.48 kB / 1.131 GB, free: 82.66 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.234e-05/1.1, allocations: 59.19 kB / 1.131 GB, free: 82.61 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=209): time 4.047e-06/1.1, allocations: 4 kB / 1.131 GB, free: 82.6 MB / 0.8575 GB Notification: Performance of matching and sorting (n=212): time 0.02302/1.123, allocations: 10.56 MB / 1.141 GB, free: 77.56 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.172e-05/1.123, allocations: 73.56 kB / 1.141 GB, free: 77.5 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002936/1.126, allocations: 2.003 MB / 1.143 GB, free: 76.41 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0002043/1.126, allocations: 62.67 kB / 1.143 GB, free: 76.36 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001269/1.127, allocations: 2.402 MB / 1.145 GB, free: 74.25 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005752/1.128, allocations: 0.7288 MB / 1.146 GB, free: 73.62 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007342/1.129, allocations: 477 kB / 1.147 GB, free: 73.36 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.794e-05/1.129, allocations: 309.1 kB / 1.147 GB, free: 73.05 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001911/1.131, allocations: 1.378 MB / 1.148 GB, free: 72.33 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002075/1.133, allocations: 2.102 MB / 1.15 GB, free: 70.67 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004231/1.137, allocations: 3.766 MB / 1.154 GB, free: 68.1 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.395e-05/1.137, allocations: 5.531 kB / 1.154 GB, free: 68.1 MB / 0.8575 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.007803/1.145, allocations: 5.069 MB / 1.159 GB, free: 65.41 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.306e-05/1.145, allocations: 16.75 kB / 1.159 GB, free: 65.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.665e-05/1.145, allocations: 19.81 kB / 1.159 GB, free: 65.41 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003072/1.148, allocations: 1.586 MB / 1.161 GB, free: 64.75 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001508/1.15, allocations: 455.6 kB / 1.161 GB, free: 64.63 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01751/1.167, allocations: 18.58 MB / 1.179 GB, free: 51.17 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002742/1.17, allocations: 151.8 kB / 1.179 GB, free: 51.02 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002147/1.17, allocations: 111.9 kB / 1.179 GB, free: 50.91 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 (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.002588/1.173, allocations: 1.949 MB / 1.181 GB, free: 48.95 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004895/1.173, allocations: 284.7 kB / 1.182 GB, free: 48.67 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005658/1.179, allocations: 4.458 MB / 1.186 GB, free: 44.18 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/1.179, allocations: 20 kB / 1.186 GB, free: 44.16 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.397e-05/1.179, allocations: 16 kB / 1.186 GB, free: 44.14 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.594e-05/1.179, allocations: 15.95 kB / 1.186 GB, free: 44.13 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01308/1.192, allocations: 9.66 MB / 1.195 GB, free: 34.36 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/1.192, allocations: 4 kB / 1.195 GB, free: 34.36 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008948/1.193, allocations: 235.6 kB / 1.196 GB, free: 34.13 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002739/1.196, allocations: 1.419 MB / 1.197 GB, free: 32.7 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001448/1.196, allocations: 44.11 kB / 1.197 GB, free: 32.66 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01689/1.213, allocations: 18.56 MB / 1.215 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.369e-06/1.213, allocations: 12 kB / 1.215 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006193/1.219, allocations: 4.541 MB / 1.22 GB, free: 8.902 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001635/1.221, allocations: 0.6304 MB / 1.22 GB, free: 8.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00032/1.221, allocations: 43.94 kB / 1.22 GB, free: 8.207 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001178/1.222, allocations: 115.9 kB / 1.22 GB, free: 8.094 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004335/1.223, allocations: 181.6 kB / 1.221 GB, free: 7.914 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001235/1.223, allocations: 63.94 kB / 1.221 GB, free: 7.852 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001442/1.224, allocations: 1.315 MB / 1.222 GB, free: 6.527 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/1.224, allocations: 0 / 1.222 GB, free: 6.527 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.002963/1.227, allocations: 1.145 MB / 1.223 GB, free: 5.383 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 (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.0002525/1.227, allocations: 161.1 kB / 1.223 GB, free: 5.215 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.005792/1.233, allocations: 4.711 MB / 1.228 GB, free: 464 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/1.233, allocations: 4 kB / 1.228 GB, free: 460 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.004519/1.238, allocations: 2.927 MB / 1.231 GB, free: 13.48 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003635/1.241, allocations: 0.8906 MB / 1.232 GB, free: 12.62 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01539/1.257, allocations: 9.267 MB / 1.241 GB, free: 3.285 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004076/1.261, allocations: 3.686 MB / 1.244 GB, free: 15.57 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001898/1.263, allocations: 0.5557 MB / 1.245 GB, free: 15 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004191/1.263, allocations: 155.4 kB / 1.245 GB, free: 14.86 MB / 0.8887 GB Notification: Performance of SimCode: time 6.31e-07/1.263, allocations: 0 / 1.245 GB, free: 14.86 MB / 0.8887 GB Notification: Performance of Templates: time 0.09016/1.353, allocations: 50.79 MB / 1.294 GB, free: 12.86 MB / 0.9356 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches