Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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_RLC_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RLCLine_1.terminal_n.phase.1..i.1.|RLCLine_1.terminal_n.phase.1..i.2.|RLCLine_sc.terminal_n.phase.1..i.1.|RLCLine_sc.terminal_n.phase.1..i.2.|RLCLine_2a.terminal_n.phase.1..i.1.|RLCLine_2a.terminal_n.phase.1..i.2.|RLCLine_3a.terminal_n.phase.1..i.1.|RLCLine_3a.terminal_n.phase.1..i.2.|RLCLine_3b.terminal_n.phase.1..i.1.|RLCLine_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RLCLine_1.terminal_n.phase.1..i.1.|RLCLine_1.terminal_n.phase.1..i.2.|RLCLine_sc.terminal_n.phase.1..i.1.|RLCLine_sc.terminal_n.phase.1..i.2.|RLCLine_2a.terminal_n.phase.1..i.1.|RLCLine_2a.terminal_n.phase.1..i.2.|RLCLine_3a.terminal_n.phase.1..i.1.|RLCLine_3a.terminal_n.phase.1..i.2.|RLCLine_3b.terminal_n.phase.1..i.1.|RLCLine_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001848/0.001848, allocations: 100 kB / 15.78 MB, free: 5.98 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.001775/0.001775, allocations: 198.2 kB / 16.72 MB, free: 5.836 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.501/1.501, allocations: 225.6 MB / 243.1 MB, free: 3.715 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.95/2.95, allocations: 489.4 MB / 0.7669 GB, free: 3.824 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 63.91 kB / 1.115 GB, free: 6.867 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9364/0.9383, allocations: 172 MB / 1.283 GB, free: 5.383 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.05489/0.9932, allocations: 41.67 MB / 1.323 GB, free: 8.852 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.03023/1.023, allocations: 15.22 MB / 1.338 GB, free: 12.75 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005901/1.029, allocations: 187.1 kB / 1.338 GB, free: 12.7 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.01298/1.042, allocations: 4.53 MB / 1.343 GB, free: 9.188 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.009305/1.052, allocations: 2.925 MB / 1.346 GB, free: 6.77 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.009427/1.061, allocations: 3.219 MB / 1.349 GB, free: 4.109 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.01674/1.078, allocations: 11.39 MB / 1.36 GB, free: 13.59 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01821/1.096, allocations: 9.235 MB / 1.369 GB, free: 8.074 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01093/1.107, allocations: 4.915 MB / 1.374 GB, free: 3.145 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01123/1.118, allocations: 5.756 MB / 1.379 GB, free: 13.37 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 0.004031/1.122, allocations: 0.9492 MB / 1.38 GB, free: 12.42 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008079/1.13, allocations: 2.068 MB / 1.382 GB, free: 10.35 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.007814/1.138, allocations: 3.788 MB / 1.386 GB, free: 6.555 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.01201/1.15, allocations: 4.299 MB / 1.39 GB, free: 2.238 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0254/1.175, allocations: 14.31 MB / 1.404 GB, free: 3.887 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 1.119e-05/1.175, allocations: 4 kB / 1.404 GB, free: 3.883 MB / 1.092 GB Notification: Performance of FrontEnd: time 2.385e-06/1.175, allocations: 0 / 1.404 GB, free: 3.883 MB / 1.092 GB Notification: Performance of Transformations before backend: time 0.0005502/1.176, allocations: 0 / 1.404 GB, free: 3.883 MB / 1.092 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1668 * Number of variables: 1668 Notification: Performance of Generate backend data structure: time 0.02694/1.203, allocations: 7.798 MB / 1.412 GB, free: 11.99 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/1.203, allocations: 12.03 kB / 1.412 GB, free: 11.98 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01179/1.215, allocations: 1.55 MB / 1.413 GB, free: 10.43 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01092/1.226, allocations: 4.473 MB / 1.418 GB, free: 5.879 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005572/1.226, allocations: 452.5 kB / 1.418 GB, free: 5.434 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002986/1.229, allocations: 0.5979 MB / 1.419 GB, free: 4.836 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02738/1.257, allocations: 10.68 MB / 1.429 GB, free: 9.777 MB / 1.123 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000334/1.257, allocations: 31.72 kB / 1.429 GB, free: 9.746 MB / 1.123 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00208/1.259, allocations: 267.9 kB / 1.429 GB, free: 9.484 MB / 1.123 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003355/1.262, allocations: 0.7729 MB / 1.43 GB, free: 8.707 MB / 1.123 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02006/1.282, allocations: 8.557 MB / 1.439 GB, free: 132 kB / 1.123 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06849/1.351, allocations: 46.61 MB / 1.484 GB, free: 13.77 MB / 1.186 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006206/1.357, allocations: 3.983 MB / 1.488 GB, free: 9.777 MB / 1.186 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005509/1.363, allocations: 3.376 MB / 1.491 GB, free: 6.395 MB / 1.186 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003265/1.363, allocations: 42.78 kB / 1.491 GB, free: 6.352 MB / 1.186 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.036e-05/1.363, allocations: 69.34 kB / 1.491 GB, free: 6.273 MB / 1.186 GB Notification: Performance of pre-optimization done (n=353): time 5.37e-06/1.363, allocations: 4 kB / 1.491 GB, free: 6.27 MB / 1.186 GB Notification: Performance of matching and sorting (n=578): time 0.5485/1.912, allocations: 122.6 MB / 1.611 GB, free: 10.8 MB / 1.311 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001364/1.912, allocations: 111.9 kB / 1.611 GB, free: 10.68 MB / 1.311 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006257/1.918, allocations: 2.681 MB / 1.614 GB, free: 8 MB / 1.311 GB Notification: Performance of collectPreVariables (initialization): time 0.001684/1.92, allocations: 125.7 kB / 1.614 GB, free: 7.871 MB / 1.311 GB Notification: Performance of collectInitialEqns (initialization): time 0.00259/1.922, allocations: 2.746 MB / 1.617 GB, free: 5.105 MB / 1.311 GB Notification: Performance of collectInitialBindings (initialization): time 0.00379/1.926, allocations: 2.056 MB / 1.619 GB, free: 3.031 MB / 1.311 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003899/1.93, allocations: 0.929 MB / 1.62 GB, free: 2.094 MB / 1.311 GB Notification: Performance of setup shared object (initialization): time 0.0001256/1.93, allocations: 301.1 kB / 1.62 GB, free: 1.797 MB / 1.311 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007786/1.938, allocations: 4.079 MB / 1.624 GB, free: 13.71 MB / 1.326 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009112/1.947, allocations: 5.019 MB / 1.629 GB, free: 8.371 MB / 1.326 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01795/1.965, allocations: 9.852 MB / 1.638 GB, free: 14.14 MB / 1.342 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.124e-05/1.965, allocations: 8 kB / 1.638 GB, free: 14.13 MB / 1.342 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.04704/2.012, allocations: 16.74 MB / 1.655 GB, free: 13.26 MB / 1.357 GB Notification: Performance of prepare postOptimizeDAE: time 4.887e-05/2.012, allocations: 12 kB / 1.655 GB, free: 13.25 MB / 1.357 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-05/2.012, allocations: 28.16 kB / 1.655 GB, free: 13.22 MB / 1.357 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03516/2.047, allocations: 9.08 MB / 1.664 GB, free: 4.105 MB / 1.357 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002747/2.05, allocations: 0.5265 MB / 1.664 GB, free: 3.578 MB / 1.357 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1285/2.179, allocations: 77.03 MB / 1.739 GB, free: 4.961 MB / 1.436 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005352/2.184, allocations: 279.8 kB / 1.74 GB, free: 4.688 MB / 1.436 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001532/2.185, allocations: 192 kB / 1.74 GB, free: 4.5 MB / 1.436 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 (274): * Single equations (assignments): 263 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(5,17,84.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (14,72,59.2%), (14,72,59.2%), (6,40,77.8%), (8,70,73.4%), (8,70,70.3%), (6,40,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005564/2.191, allocations: 2.426 MB / 1.742 GB, free: 2.062 MB / 1.436 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001552/2.193, allocations: 0.4892 MB / 1.743 GB, free: 1.57 MB / 1.436 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04398/2.237, allocations: 16.54 MB / 1.759 GB, free: 0.8867 MB / 1.451 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.64e-05/2.237, allocations: 56 kB / 1.759 GB, free: 0.832 MB / 1.451 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002636/2.237, allocations: 75.94 kB / 1.759 GB, free: 0.7578 MB / 1.451 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001343/2.237, allocations: 27.89 kB / 1.759 GB, free: 0.7305 MB / 1.451 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06196/2.299, allocations: 25.38 MB / 1.784 GB, free: 7.031 MB / 1.482 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.164e-05/2.299, allocations: 8 kB / 1.784 GB, free: 7.023 MB / 1.482 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001962/2.301, allocations: 319.5 kB / 1.784 GB, free: 6.711 MB / 1.482 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03211/2.333, allocations: 8.267 MB / 1.792 GB, free: 14.41 MB / 1.498 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001181/2.334, allocations: 108 kB / 1.792 GB, free: 14.3 MB / 1.498 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.8939/3.228, allocations: 73.91 MB / 1.864 GB, free: 457.3 MB / 1.514 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.131e-05/3.228, allocations: 18.5 kB / 1.864 GB, free: 457.3 MB / 1.514 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04313/3.271, allocations: 21.32 MB / 1.885 GB, free: 448.5 MB / 1.514 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00335/3.275, allocations: 1.376 MB / 1.887 GB, free: 447.9 MB / 1.514 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001417/3.276, allocations: 109.3 kB / 1.887 GB, free: 447.8 MB / 1.514 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00407/3.28, allocations: 286.2 kB / 1.887 GB, free: 447.8 MB / 1.514 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002471/3.283, allocations: 0.5223 MB / 1.888 GB, free: 447.7 MB / 1.514 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006188/3.283, allocations: 146.4 kB / 1.888 GB, free: 447.6 MB / 1.514 GB Notification: Performance of sorting global known variables: time 0.00326/3.287, allocations: 1.779 MB / 1.889 GB, free: 447 MB / 1.514 GB Notification: Performance of sort global known variables: time 9e-08/3.287, allocations: 0 / 1.889 GB, free: 447 MB / 1.514 GB Notification: Performance of remove unused functions: time 0.009824/3.296, allocations: 2.463 MB / 1.892 GB, free: 446.7 MB / 1.514 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 8 (RLCLine_sc.phase1.Vc[1],RLCLine_sc.phase1.Vc[2],RLCLine_sc.phase2.Vc[1],RLCLine_sc.phase2.Vc[2],RLCLine_sc.phase3.Vc[1],RLCLine_sc.phase3.Vc[2],RLCLine_sc.neutral.Vc[1],RLCLine_sc.neutral.Vc[2]) * 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 (142): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(6,40,77.8%), (8,70,70.3%), (14,72,51.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (5,17,84.0%), (6,40,83.3%), (8,70,70.3%), (14,72,51.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001085/3.297, allocations: 240.5 kB / 1.892 GB, free: 446.6 MB / 1.514 GB Notification: Performance of simCode: created initialization part: time 0.02446/3.322, allocations: 13.73 MB / 1.905 GB, free: 440.2 MB / 1.514 GB Notification: Performance of simCode: created event and clocks part: time 1.215e-05/3.322, allocations: 3.969 kB / 1.905 GB, free: 440.2 MB / 1.514 GB Notification: Performance of simCode: created simulation system equations: time 0.01794/3.34, allocations: 9.022 MB / 1.914 GB, free: 435.7 MB / 1.514 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008356/3.348, allocations: 1.385 MB / 1.916 GB, free: 435.2 MB / 1.514 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02959/3.378, allocations: 15.78 MB / 1.931 GB, free: 421.6 MB / 1.514 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006183/3.384, allocations: 4.897 MB / 1.936 GB, free: 416.6 MB / 1.514 GB Notification: Performance of simCode: alias equations: time 0.002679/3.387, allocations: 0.7449 MB / 1.937 GB, free: 415.9 MB / 1.514 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006968/3.387, allocations: 199.4 kB / 1.937 GB, free: 415.7 MB / 1.514 GB Notification: Performance of SimCode: time 1.393e-06/3.387, allocations: 0 / 1.937 GB, free: 415.7 MB / 1.514 GB Notification: Performance of Templates: time 0.1888/3.576, allocations: 148.4 MB / 2.082 GB, free: 268.6 MB / 1.514 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches