Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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,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_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,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_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00614/0.00614, allocations: 99 kB / 15.73 MB, free: 6.016 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.001204/0.001204, allocations: 201.4 kB / 16.68 MB, free: 5.93 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.691/2.691, allocations: 469.8 MB / 0.7425 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001566/0.001566, allocations: 71.88 kB / 1.065 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8736/0.8751, allocations: 159.1 MB / 1.221 GB, free: 2.09 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.03985/0.915, allocations: 35.22 MB / 1.255 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.01772/0.9327, allocations: 9.941 MB / 1.265 GB, free: 4.785 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003128/0.9358, allocations: 151.2 kB / 1.265 GB, free: 4.637 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.009893/0.9457, allocations: 3.839 MB / 1.269 GB, free: 0.7891 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.006198/0.9519, allocations: 2.149 MB / 1.271 GB, free: 14.63 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005288/0.9572, allocations: 1.963 MB / 1.273 GB, free: 12.67 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.009943/0.9672, allocations: 7.959 MB / 1.28 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0101/0.9773, allocations: 7.136 MB / 1.287 GB, free: 13.43 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007322/0.9846, allocations: 3.427 MB / 1.291 GB, free: 9.992 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007212/0.9918, allocations: 3.731 MB / 1.294 GB, free: 6.25 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.001827/0.9936, allocations: 0.6835 MB / 1.295 GB, free: 5.566 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003764/0.9974, allocations: 1.443 MB / 1.296 GB, free: 4.121 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.003301/1.001, allocations: 2.689 MB / 1.299 GB, free: 1.426 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.004711/1.005, allocations: 3.097 MB / 1.302 GB, free: 14.32 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.01304/1.018, allocations: 10.41 MB / 1.312 GB, free: 3.879 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/1.018, allocations: 0 / 1.312 GB, free: 3.879 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.194e-06/1.018, allocations: 8 kB / 1.312 GB, free: 3.871 MB / 1.029 GB Notification: Performance of Transformations before backend: time 0.0003194/1.019, allocations: 0 / 1.312 GB, free: 3.871 MB / 1.029 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.01392/1.033, allocations: 5.534 MB / 1.318 GB, free: 14.26 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.926e-05/1.033, allocations: 12.03 kB / 1.318 GB, free: 14.25 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006089/1.039, allocations: 0.9851 MB / 1.319 GB, free: 13.26 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007351/1.046, allocations: 3.196 MB / 1.322 GB, free: 10.01 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004144/1.047, allocations: 357.9 kB / 1.322 GB, free: 9.656 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002162/1.049, allocations: 476.3 kB / 1.323 GB, free: 9.191 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02033/1.069, allocations: 7.899 MB / 1.33 GB, free: 0.9297 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002054/1.069, allocations: 27.75 kB / 1.33 GB, free: 0.9023 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001313/1.071, allocations: 212 kB / 1.33 GB, free: 0.6953 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005626/1.071, allocations: 369.1 kB / 1.331 GB, free: 340 kB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01553/1.087, allocations: 5.937 MB / 1.337 GB, free: 10.38 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04815/1.135, allocations: 36 MB / 1.372 GB, free: 3.148 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003484/1.138, allocations: 1.998 MB / 1.374 GB, free: 1.137 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00204/1.14, allocations: 1.332 MB / 1.375 GB, free: 15.8 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001084/1.14, allocations: 17.31 kB / 1.375 GB, free: 15.79 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.221e-05/1.141, allocations: 63.75 kB / 1.375 GB, free: 15.71 MB / 1.107 GB Notification: Performance of pre-optimization done (n=157): time 3.637e-06/1.141, allocations: 0 / 1.375 GB, free: 15.71 MB / 1.107 GB Notification: Performance of matching and sorting (n=160): time 0.01527/1.156, allocations: 7.574 MB / 1.383 GB, free: 7.879 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.743e-05/1.156, allocations: 72.72 kB / 1.383 GB, free: 7.797 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003303/1.159, allocations: 1.857 MB / 1.384 GB, free: 5.914 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 0.0001562/1.159, allocations: 57.7 kB / 1.384 GB, free: 5.852 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.001578/1.161, allocations: 2.184 MB / 1.387 GB, free: 3.648 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006151/1.162, allocations: 0.5849 MB / 1.387 GB, free: 3.059 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006868/1.162, allocations: 408 kB / 1.388 GB, free: 2.652 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001055/1.162, allocations: 301.1 kB / 1.388 GB, free: 2.355 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001599/1.164, allocations: 1.062 MB / 1.389 GB, free: 1.289 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002158/1.166, allocations: 1.76 MB / 1.391 GB, free: 15.21 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003811/1.17, allocations: 3.052 MB / 1.394 GB, free: 11.84 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.401e-05/1.17, allocations: 4 kB / 1.394 GB, free: 11.84 MB / 1.123 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.006692/1.177, allocations: 3.907 MB / 1.397 GB, free: 7.883 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 3.594e-05/1.177, allocations: 16 kB / 1.397 GB, free: 7.867 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.786e-05/1.177, allocations: 20 kB / 1.397 GB, free: 7.848 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002518/1.179, allocations: 0.9351 MB / 1.398 GB, free: 6.875 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001591/1.181, allocations: 435.2 kB / 1.399 GB, free: 6.449 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02155/1.202, allocations: 22.77 MB / 1.421 GB, free: 14 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002042/1.204, allocations: 119.9 kB / 1.421 GB, free: 13.88 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000326/1.205, allocations: 99.94 kB / 1.421 GB, free: 13.78 MB / 1.154 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.00274/1.207, allocations: 1.649 MB / 1.423 GB, free: 12.12 MB / 1.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005938/1.208, allocations: 266.4 kB / 1.423 GB, free: 11.86 MB / 1.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005599/1.214, allocations: 3.236 MB / 1.426 GB, free: 8.574 MB / 1.154 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.725e-05/1.214, allocations: 20 kB / 1.426 GB, free: 8.555 MB / 1.154 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.122e-05/1.214, allocations: 8 kB / 1.426 GB, free: 8.547 MB / 1.154 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.399e-05/1.214, allocations: 11.97 kB / 1.426 GB, free: 8.535 MB / 1.154 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01382/1.228, allocations: 7.521 MB / 1.434 GB, free: 0.8594 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.316e-05/1.228, allocations: 4 kB / 1.434 GB, free: 0.8555 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009583/1.228, allocations: 220.2 kB / 1.434 GB, free: 0.6406 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002367/1.231, allocations: 0.9003 MB / 1.435 GB, free: 15.7 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001371/1.231, allocations: 32 kB / 1.435 GB, free: 15.67 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02084/1.252, allocations: 22.74 MB / 1.457 GB, free: 7.246 MB / 1.186 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/1.252, allocations: 4 kB / 1.457 GB, free: 7.242 MB / 1.186 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006214/1.258, allocations: 3.369 MB / 1.46 GB, free: 3.758 MB / 1.186 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001699/1.26, allocations: 0.5463 MB / 1.461 GB, free: 3.191 MB / 1.186 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007779/1.261, allocations: 32 kB / 1.461 GB, free: 3.16 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001486/1.262, allocations: 91.83 kB / 1.461 GB, free: 3.07 MB / 1.186 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004276/1.262, allocations: 152.9 kB / 1.461 GB, free: 2.922 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001384/1.263, allocations: 44 kB / 1.461 GB, free: 2.879 MB / 1.186 GB Notification: Performance of sorting global known variables: time 0.002301/1.265, allocations: 1.225 MB / 1.462 GB, free: 1.641 MB / 1.186 GB Notification: Performance of sort global known variables: time 1.1e-07/1.265, allocations: 0 / 1.462 GB, free: 1.641 MB / 1.186 GB Notification: Performance of remove unused functions: time 0.003618/1.269, allocations: 0.9062 MB / 1.463 GB, free: 0.7344 MB / 1.186 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.0003632/1.269, allocations: 156.9 kB / 1.463 GB, free: 0.5742 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.006998/1.276, allocations: 4.295 MB / 1.467 GB, free: 12.13 MB / 1.201 GB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/1.276, allocations: 0 / 1.467 GB, free: 12.13 MB / 1.201 GB Notification: Performance of simCode: created simulation system equations: time 0.004183/1.28, allocations: 2.91 MB / 1.47 GB, free: 9.062 MB / 1.201 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003822/1.284, allocations: 0.8274 MB / 1.471 GB, free: 8.25 MB / 1.201 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01513/1.299, allocations: 7.723 MB / 1.479 GB, free: 436 kB / 1.201 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004347/1.303, allocations: 3.209 MB / 1.482 GB, free: 13.19 MB / 1.217 GB Notification: Performance of simCode: alias equations: time 0.001894/1.305, allocations: 0.5254 MB / 1.482 GB, free: 12.66 MB / 1.217 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004396/1.306, allocations: 143.4 kB / 1.482 GB, free: 12.52 MB / 1.217 GB Notification: Performance of SimCode: time 1.142e-06/1.306, allocations: 0 / 1.482 GB, free: 12.52 MB / 1.217 GB Notification: Performance of Templates: time 0.0724/1.378, allocations: 41.92 MB / 1.523 GB, free: 3.207 MB / 1.248 GB make -j1 -f Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & ./Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches