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.00456/0.00456, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001072/0.001072, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.37/1.37, 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.0.1-master/package.mo): time 2.685/2.685, allocations: 461.9 MB / 0.7348 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001486, allocations: 64.12 kB / 1.054 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8118/0.8133, allocations: 157.4 MB / 1.208 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L): time 0.03442/0.8478, allocations: 32.6 MB / 1.24 GB, free: 12.93 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.01826/0.8661, allocations: 10.27 MB / 1.25 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003706/0.8699, allocations: 151.2 kB / 1.25 GB, free: 2.488 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.009416/0.8793, allocations: 3.714 MB / 1.253 GB, free: 14.77 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.005573/0.8849, allocations: 1.858 MB / 1.255 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.00586/0.8908, allocations: 2.135 MB / 1.257 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.008679/0.8995, allocations: 7.322 MB / 1.264 GB, free: 3.422 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01187/0.9114, allocations: 9.412 MB / 1.274 GB, free: 9.891 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00565/0.9171, allocations: 3.229 MB / 1.277 GB, free: 6.652 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006577/0.9237, allocations: 3.481 MB / 1.28 GB, free: 3.16 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.00207/0.9258, allocations: 0.6484 MB / 1.281 GB, free: 2.512 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004925/0.9307, allocations: 1.767 MB / 1.283 GB, free: 0.7422 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.00366/0.9344, allocations: 2.55 MB / 1.285 GB, free: 14.19 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.005521/0.9399, allocations: 2.898 MB / 1.288 GB, free: 11.28 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.01218/0.9521, allocations: 10.11 MB / 1.298 GB, free: 1.145 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.9522, allocations: 0 / 1.298 GB, free: 1.145 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.003e-06/0.9522, allocations: 0 / 1.298 GB, free: 1.145 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0003408/0.9525, allocations: 0 / 1.298 GB, free: 1.145 MB / 1.014 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.013/0.9655, allocations: 4.998 MB / 1.303 GB, free: 12.07 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.9656, allocations: 12.03 kB / 1.303 GB, free: 12.06 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006551/0.9721, allocations: 0.9473 MB / 1.304 GB, free: 11.11 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007651/0.9798, allocations: 3.042 MB / 1.307 GB, free: 8.008 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003151/0.9802, allocations: 349.7 kB / 1.307 GB, free: 7.664 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00166/0.9818, allocations: 472.2 kB / 1.307 GB, free: 7.203 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01812/1, allocations: 7.663 MB / 1.315 GB, free: 15.19 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002524/1, allocations: 23.72 kB / 1.315 GB, free: 15.17 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001273/1.002, allocations: 200 kB / 1.315 GB, free: 14.97 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00042/1.002, allocations: 316.9 kB / 1.315 GB, free: 14.66 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01181/1.014, allocations: 5.71 MB / 1.321 GB, free: 8.934 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04173/1.056, allocations: 34.83 MB / 1.355 GB, free: 2.895 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003615/1.059, allocations: 2.152 MB / 1.357 GB, free: 0.625 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002168/1.061, allocations: 1.272 MB / 1.358 GB, free: 15.35 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001522/1.062, allocations: 13.31 kB / 1.358 GB, free: 15.34 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.721e-05/1.062, allocations: 47.88 kB / 1.358 GB, free: 15.28 MB / 1.092 GB Notification: Performance of pre-optimization done (n=133): time 4.939e-06/1.062, allocations: 0 / 1.358 GB, free: 15.28 MB / 1.092 GB Notification: Performance of matching and sorting (n=136): time 0.01443/1.076, allocations: 7.084 MB / 1.365 GB, free: 7.926 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.056e-05/1.076, allocations: 68.66 kB / 1.365 GB, free: 7.848 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002586/1.079, allocations: 1.488 MB / 1.367 GB, free: 6.312 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 0.0001235/1.079, allocations: 49.7 kB / 1.367 GB, free: 6.258 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.001305/1.08, allocations: 2.004 MB / 1.369 GB, free: 4.227 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004598/1.081, allocations: 485 kB / 1.369 GB, free: 3.746 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005339/1.081, allocations: 351.1 kB / 1.37 GB, free: 3.398 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 9.418e-05/1.081, allocations: 305.1 kB / 1.37 GB, free: 3.098 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001353/1.083, allocations: 0.9096 MB / 1.371 GB, free: 2.188 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0017/1.085, allocations: 1.593 MB / 1.372 GB, free: 288 kB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003141/1.088, allocations: 2.737 MB / 1.375 GB, free: 13.23 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.505e-05/1.088, allocations: 4 kB / 1.375 GB, free: 13.23 MB / 1.107 GB Notification: Performance of matching and sorting (n=239) (initialization): time 0.005921/1.094, allocations: 3.533 MB / 1.378 GB, free: 9.648 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 3.141e-05/1.094, allocations: 17 kB / 1.378 GB, free: 9.633 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.027e-05/1.094, allocations: 24 kB / 1.378 GB, free: 9.609 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002546/1.096, allocations: 0.9037 MB / 1.379 GB, free: 8.668 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001115/1.097, allocations: 355.3 kB / 1.38 GB, free: 8.32 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02062/1.118, allocations: 23.09 MB / 1.402 GB, free: 15.55 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001848/1.12, allocations: 95.92 kB / 1.402 GB, free: 15.46 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003636/1.12, allocations: 84 kB / 1.402 GB, free: 15.38 MB / 1.139 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.003122/1.123, allocations: 1.619 MB / 1.404 GB, free: 13.75 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005693/1.124, allocations: 205.5 kB / 1.404 GB, free: 13.54 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005629/1.13, allocations: 2.994 MB / 1.407 GB, free: 10.5 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-05/1.13, allocations: 12 kB / 1.407 GB, free: 10.48 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-05/1.13, allocations: 12 kB / 1.407 GB, free: 10.47 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.451e-05/1.13, allocations: 7.969 kB / 1.407 GB, free: 10.46 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01459/1.144, allocations: 7.332 MB / 1.414 GB, free: 2.895 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.797e-05/1.144, allocations: 4 kB / 1.414 GB, free: 2.891 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008367/1.145, allocations: 183.7 kB / 1.414 GB, free: 2.711 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002458/1.148, allocations: 0.8262 MB / 1.415 GB, free: 1.848 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001268/1.148, allocations: 24 kB / 1.415 GB, free: 1.824 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0196/1.167, allocations: 21.95 MB / 1.437 GB, free: 10.19 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.192e-06/1.168, allocations: 4 kB / 1.437 GB, free: 10.18 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005642/1.173, allocations: 3.025 MB / 1.44 GB, free: 7.047 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001272/1.174, allocations: 458.5 kB / 1.44 GB, free: 6.578 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005381/1.175, allocations: 39.84 kB / 1.44 GB, free: 6.539 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001145/1.176, allocations: 71.84 kB / 1.44 GB, free: 6.469 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004126/1.177, allocations: 128.7 kB / 1.44 GB, free: 6.344 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001006/1.177, allocations: 36 kB / 1.44 GB, free: 6.309 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.00168/1.178, allocations: 0.9717 MB / 1.441 GB, free: 5.312 MB / 1.17 GB Notification: Performance of sort global known variables: time 1.4e-07/1.178, allocations: 0 / 1.441 GB, free: 5.312 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.003265/1.182, allocations: 0.7891 MB / 1.442 GB, free: 4.523 MB / 1.17 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.0003044/1.182, allocations: 143.1 kB / 1.442 GB, free: 4.375 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.006105/1.188, allocations: 4.035 MB / 1.446 GB, free: 188 kB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/1.188, allocations: 0 / 1.446 GB, free: 188 kB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 0.004023/1.192, allocations: 2.733 MB / 1.449 GB, free: 13.29 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00392/1.196, allocations: 0.7347 MB / 1.45 GB, free: 12.58 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01471/1.211, allocations: 7.102 MB / 1.456 GB, free: 5.395 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00463/1.216, allocations: 3.109 MB / 1.46 GB, free: 2.254 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.001463/1.217, allocations: 462 kB / 1.46 GB, free: 1.801 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004053/1.217, allocations: 111.4 kB / 1.46 GB, free: 1.691 MB / 1.186 GB Notification: Performance of SimCode: time 1.052e-06/1.217, allocations: 0 / 1.46 GB, free: 1.691 MB / 1.186 GB Notification: Performance of Templates: time 0.06825/1.286, allocations: 36.8 MB / 1.496 GB, free: 13.31 MB / 1.232 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