Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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.ThreePhasesBalanced.Lines.Examples.ACLineMedium,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001521/0.001521, allocations: 108.7 kB / 15.99 MB, free: 6.359 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.001565/0.001565, allocations: 191.2 kB / 16.91 MB, free: 6.195 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.426/1.426, allocations: 222.9 MB / 240.6 MB, free: 15.38 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.213/2.213, allocations: 390.2 MB / 0.665 GB, free: 0.8672 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001326, allocations: 67.59 kB / 0.8127 GB, free: 33.16 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.2599, allocations: 140.4 MB / 0.9498 GB, free: 9.203 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.01808/0.278, allocations: 14.7 MB / 0.9641 GB, free: 10.45 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01477/0.2928, allocations: 10.24 MB / 0.9741 GB, free: 172 kB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001679/0.2945, allocations: 55.62 kB / 0.9742 GB, free: 116 kB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.004567/0.2992, allocations: 1.584 MB / 0.9757 GB, free: 14.53 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.005441/0.3046, allocations: 1.625 MB / 0.9773 GB, free: 12.9 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.002069/0.3067, allocations: 0.6902 MB / 0.978 GB, free: 12.21 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.003999/0.3107, allocations: 2.754 MB / 0.9807 GB, free: 9.445 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002598/0.3133, allocations: 1.586 MB / 0.9822 GB, free: 7.828 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00232/0.3157, allocations: 1.519 MB / 0.9837 GB, free: 6.305 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002034/0.3177, allocations: 1.206 MB / 0.9849 GB, free: 5.094 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0004726/0.3182, allocations: 160 kB / 0.9851 GB, free: 4.938 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001773/0.32, allocations: 0.7838 MB / 0.9858 GB, free: 4.152 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0008048/0.3208, allocations: 0.6076 MB / 0.9864 GB, free: 3.543 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.001558/0.3224, allocations: 0.96 MB / 0.9873 GB, free: 2.578 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.002727/0.3251, allocations: 2.206 MB / 0.9895 GB, free: 376 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3251, allocations: 0 / 0.9895 GB, free: 376 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.763e-06/0.3252, allocations: 0 / 0.9895 GB, free: 376 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 8.969e-05/0.3253, allocations: 0 / 0.9895 GB, free: 376 kB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.004885/0.3301, allocations: 2.178 MB / 0.9916 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.3302, allocations: 8.031 kB / 0.9916 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01171/0.3419, allocations: 2.108 MB / 0.9937 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003285/0.3452, allocations: 1.213 MB / 0.9949 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.3454, allocations: 86.69 kB / 0.995 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005699/0.3459, allocations: 128 kB / 0.9951 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006984/0.3529, allocations: 2.662 MB / 0.9977 GB, free: 7.719 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.611e-05/0.353, allocations: 11.94 kB / 0.9977 GB, free: 7.707 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002887/0.3533, allocations: 55.97 kB / 0.9978 GB, free: 7.652 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006915/0.354, allocations: 198.1 kB / 0.9979 GB, free: 7.457 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00801/0.362, allocations: 2.787 MB / 1.001 GB, free: 4.66 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01768/0.3798, allocations: 10.5 MB / 1.011 GB, free: 9.57 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006617/0.3864, allocations: 2.336 MB / 1.013 GB, free: 7.211 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003265/0.3897, allocations: 1.276 MB / 1.014 GB, free: 5.934 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001098/0.3899, allocations: 12.98 kB / 1.014 GB, free: 5.918 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.909e-05/0.3899, allocations: 47.5 kB / 1.015 GB, free: 5.863 MB / 0.795 GB Notification: Performance of pre-optimization done (n=89): time 3.456e-06/0.3899, allocations: 0 / 1.015 GB, free: 5.863 MB / 0.795 GB Notification: Performance of matching and sorting (n=153): time 0.05945/0.4494, allocations: 16.47 MB / 1.031 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.617e-05/0.4495, allocations: 68.72 kB / 1.031 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001774/0.4513, allocations: 1.184 MB / 1.032 GB, free: 3.957 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0002453/0.4515, allocations: 45.7 kB / 1.032 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005938/0.4521, allocations: 0.7436 MB / 1.033 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006161/0.4528, allocations: 0.5121 MB / 1.033 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006514/0.4534, allocations: 287.4 kB / 1.033 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.00012/0.4535, allocations: 309 kB / 1.034 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003558/0.4571, allocations: 1.507 MB / 1.035 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003758/0.4609, allocations: 1.788 MB / 1.037 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007316/0.4682, allocations: 3.365 MB / 1.04 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.01e-05/0.4683, allocations: 4 kB / 1.04 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01356/0.4818, allocations: 5.277 MB / 1.045 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.214e-05/0.4819, allocations: 12.03 kB / 1.045 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.915e-05/0.4819, allocations: 8 kB / 1.045 GB, free: 5.848 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007085/0.489, allocations: 1.885 MB / 1.047 GB, free: 3.938 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002017/0.491, allocations: 419.3 kB / 1.048 GB, free: 3.527 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03032/0.5214, allocations: 24.16 MB / 1.071 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002659/0.5241, allocations: 303.5 kB / 1.071 GB, free: 9.953 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003106/0.5244, allocations: 67.95 kB / 1.072 GB, free: 9.887 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (2,8,100.0%), (3,17,100.0%), (3,17,100.0%), (2,16,100.0%), (2,16,100.0%), (2,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001028/0.5254, allocations: 469.5 kB / 1.072 GB, free: 9.418 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004837/0.5259, allocations: 177.9 kB / 1.072 GB, free: 9.242 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01399/0.5399, allocations: 5.324 MB / 1.077 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.77e-05/0.54, allocations: 16 kB / 1.077 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.667e-05/0.54, allocations: 16 kB / 1.077 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.257e-05/0.5401, allocations: 7.969 kB / 1.077 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4884/1.028, allocations: 7.425 MB / 1.085 GB, free: 124.4 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.321e-05/1.029, allocations: 2.938 kB / 1.085 GB, free: 124.4 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001743/1.03, allocations: 350.5 kB / 1.085 GB, free: 124.4 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006325/1.037, allocations: 1.726 MB / 1.087 GB, free: 124.3 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002214/1.037, allocations: 44.36 kB / 1.087 GB, free: 124.3 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02707/1.064, allocations: 23.31 MB / 1.109 GB, free: 108.4 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/1.064, allocations: 2.5 kB / 1.109 GB, free: 108.4 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01268/1.077, allocations: 4.889 MB / 1.114 GB, free: 106.8 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001028/1.078, allocations: 498 kB / 1.115 GB, free: 106.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004912/1.078, allocations: 31.72 kB / 1.115 GB, free: 106.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002377/1.081, allocations: 317.6 kB / 1.115 GB, free: 106.5 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007008/1.081, allocations: 158.6 kB / 1.115 GB, free: 106.5 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001767/1.082, allocations: 50.42 kB / 1.115 GB, free: 106.4 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001274/1.083, allocations: 0.7897 MB / 1.116 GB, free: 106.1 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.2e-07/1.083, allocations: 0 / 1.116 GB, free: 106.1 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.002518/1.085, allocations: 0.6559 MB / 1.117 GB, free: 106.1 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003482/1.086, allocations: 152.9 kB / 1.117 GB, free: 105.9 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.01136/1.097, allocations: 5.434 MB / 1.122 GB, free: 103.7 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/1.097, allocations: 1.406 kB / 1.122 GB, free: 103.7 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.006822/1.104, allocations: 3.353 MB / 1.125 GB, free: 102 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003004/1.107, allocations: 0.5543 MB / 1.126 GB, free: 101.8 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01011/1.117, allocations: 5.126 MB / 1.131 GB, free: 99.24 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001584/1.119, allocations: 1.567 MB / 1.132 GB, free: 98.41 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007251/1.119, allocations: 131.3 kB / 1.133 GB, free: 98.39 MB / 0.8575 GB Notification: Performance of SimCode: time 8.81e-07/1.119, allocations: 0 / 1.133 GB, free: 98.39 MB / 0.8575 GB Notification: Performance of Templates: time 0.07224/1.192, allocations: 85.71 MB / 1.216 GB, free: 22.62 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches