Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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 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.ThreePhasesBalanced.Lines.Examples.ACLine_R,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.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,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.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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.001653/0.001653, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.00257/0.002571, allocations: 191 kB / 17.29 MB, free: 5.516 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.463/1.463, allocations: 222.9 MB / 241 MB, free: 14.99 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.308/2.308, allocations: 390.3 MB / 0.6655 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001584, allocations: 62.12 kB / 0.814 GB, free: 32.61 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3019/0.3035, allocations: 140.4 MB / 0.9511 GB, free: 8.027 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.009174/0.3128, allocations: 6.798 MB / 0.9578 GB, free: 1.203 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.005454/0.3183, allocations: 3.067 MB / 0.9608 GB, free: 14.12 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006788/0.319, allocations: 23.88 kB / 0.9608 GB, free: 14.1 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.002749/0.3217, allocations: 0.9568 MB / 0.9617 GB, free: 13.14 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.001618/0.3234, allocations: 0.5011 MB / 0.9622 GB, free: 12.64 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.001355/0.3247, allocations: 439 kB / 0.9626 GB, free: 12.21 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.001588/0.3263, allocations: 1.236 MB / 0.9638 GB, free: 10.97 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009285/0.3273, allocations: 0.6622 MB / 0.9645 GB, free: 10.3 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006273/0.3279, allocations: 482.2 kB / 0.9649 GB, free: 9.828 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000662/0.3286, allocations: 0.5214 MB / 0.9655 GB, free: 9.305 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 9.506e-05/0.3287, allocations: 68 kB / 0.9655 GB, free: 9.238 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007865/0.3295, allocations: 375.3 kB / 0.9659 GB, free: 8.871 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.000292/0.3298, allocations: 311.1 kB / 0.9662 GB, free: 8.566 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0004271/0.3302, allocations: 449.7 kB / 0.9666 GB, free: 8.125 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001219/0.3315, allocations: 1.219 MB / 0.9678 GB, free: 6.902 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.3315, allocations: 4 kB / 0.9678 GB, free: 6.898 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3315, allocations: 0 / 0.9678 GB, free: 6.898 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.879e-05/0.3315, allocations: 0 / 0.9678 GB, free: 6.898 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001841/0.3334, allocations: 1.169 MB / 0.9689 GB, free: 5.68 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.3334, allocations: 8.031 kB / 0.9689 GB, free: 5.672 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001465/0.3349, allocations: 235.6 kB / 0.9692 GB, free: 5.441 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/0.3359, allocations: 0.6037 MB / 0.9698 GB, free: 4.797 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.195e-05/0.3359, allocations: 49.67 kB / 0.9698 GB, free: 4.746 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.336, allocations: 64.36 kB / 0.9699 GB, free: 4.684 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001458/0.3375, allocations: 1.085 MB / 0.9709 GB, free: 3.488 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.974e-05/0.3375, allocations: 11.84 kB / 0.9709 GB, free: 3.477 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.115e-05/0.3376, allocations: 31.98 kB / 0.971 GB, free: 3.445 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001487/0.3378, allocations: 85.25 kB / 0.971 GB, free: 3.363 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/0.3389, allocations: 0.7581 MB / 0.9718 GB, free: 2.605 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00556/0.3445, allocations: 5.87 MB / 0.9775 GB, free: 12.3 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001012/0.3455, allocations: 0.5598 MB / 0.9781 GB, free: 11.73 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004362/0.346, allocations: 333.1 kB / 0.9784 GB, free: 11.41 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 3.582e-05/0.346, allocations: 4.438 kB / 0.9784 GB, free: 11.41 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/0.346, allocations: 39 kB / 0.9784 GB, free: 11.36 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=47): time 2.314e-06/0.3461, allocations: 0 / 0.9784 GB, free: 11.36 MB / 0.7637 GB Notification: Performance of matching and sorting (n=48): time 0.003808/0.3499, allocations: 1.986 MB / 0.9804 GB, free: 9.277 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.718e-05/0.3499, allocations: 55.84 kB / 0.9804 GB, free: 9.211 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006704/0.3506, allocations: 0.5625 MB / 0.981 GB, free: 8.637 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 4.516e-05/0.3507, allocations: 37.7 kB / 0.981 GB, free: 8.594 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002965/0.351, allocations: 422.9 kB / 0.9814 GB, free: 8.172 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.00014/0.3511, allocations: 173.5 kB / 0.9816 GB, free: 8 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001991/0.3513, allocations: 126.5 kB / 0.9817 GB, free: 7.871 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.000171/0.3515, allocations: 378.7 kB / 0.9821 GB, free: 7.492 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004007/0.3519, allocations: 273.8 kB / 0.9823 GB, free: 7.223 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005434/0.3525, allocations: 493 kB / 0.9828 GB, free: 6.645 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001023/0.3535, allocations: 0.8132 MB / 0.9836 GB, free: 5.738 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/0.3535, allocations: 0 / 0.9836 GB, free: 5.738 MB / 0.7637 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001777/0.3553, allocations: 1.083 MB / 0.9846 GB, free: 4.637 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.339e-05/0.3553, allocations: 16.11 kB / 0.9847 GB, free: 4.621 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.3553, allocations: 11.98 kB / 0.9847 GB, free: 4.609 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008316/0.3562, allocations: 279.1 kB / 0.9849 GB, free: 4.324 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004581/0.3566, allocations: 127.8 kB / 0.9851 GB, free: 4.199 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006486/0.3631, allocations: 7.126 MB / 0.992 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005886/0.3638, allocations: 35.97 kB / 0.992 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.205e-05/0.3638, allocations: 31.98 kB / 0.9921 GB, free: 12.45 MB / 0.7794 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 (67): * Single equations (assignments): 63 * 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 {(2,6,100.0%), (2,4,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.0003573/0.3642, allocations: 259.4 kB / 0.9923 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001119/0.3643, allocations: 71.16 kB / 0.9924 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001538/0.3658, allocations: 0.8925 MB / 0.9933 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.3659, allocations: 4 kB / 0.9933 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.3659, allocations: 4 kB / 0.9933 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.269e-06/0.3659, allocations: 0 / 0.9933 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002626/0.3685, allocations: 1.729 MB / 0.995 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.3685, allocations: 4.031 kB / 0.995 GB, free: 9.359 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002594/0.3688, allocations: 59.89 kB / 0.995 GB, free: 9.301 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007317/0.3695, allocations: 275.1 kB / 0.9953 GB, free: 9.02 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.503e-05/0.3696, allocations: 11.98 kB / 0.9953 GB, free: 9.008 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00641/0.376, allocations: 7.13 MB / 1.002 GB, free: 1.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.376, allocations: 0 / 1.002 GB, free: 1.32 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001558/0.3776, allocations: 0.9835 MB / 1.003 GB, free: 296 kB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003322/0.3779, allocations: 200.1 kB / 1.003 GB, free: 76 kB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.676e-05/0.378, allocations: 8 kB / 1.003 GB, free: 68 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000355/0.3784, allocations: 31.91 kB / 1.003 GB, free: 36 kB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/0.3785, allocations: 55.83 kB / 1.004 GB, free: 15.98 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.546e-05/0.3786, allocations: 12 kB / 1.004 GB, free: 15.97 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004373/0.379, allocations: 387.1 kB / 1.004 GB, free: 15.59 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.379, allocations: 0 / 1.004 GB, free: 15.59 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0007853/0.3798, allocations: 224 kB / 1.004 GB, free: 15.38 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (31): * Single equations (assignments): 27 * 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 {(2,2,100.0%), (2,4,100.0%), (2,2,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.000164/0.38, allocations: 123.2 kB / 1.004 GB, free: 15.25 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001923/0.3819, allocations: 1.264 MB / 1.005 GB, free: 13.93 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.3819, allocations: 128 / 1.005 GB, free: 13.93 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.001203/0.3831, allocations: 0.8897 MB / 1.006 GB, free: 12.99 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001089/0.3842, allocations: 227 kB / 1.007 GB, free: 12.77 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002882/0.3871, allocations: 1.333 MB / 1.008 GB, free: 11.39 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009406/0.3881, allocations: 1.013 MB / 1.009 GB, free: 10.34 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0004914/0.3886, allocations: 122 kB / 1.009 GB, free: 10.22 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001411/0.3888, allocations: 47.42 kB / 1.009 GB, free: 10.18 MB / 0.795 GB Notification: Performance of SimCode: time 3.847e-06/0.3888, allocations: 0 / 1.009 GB, free: 10.18 MB / 0.795 GB Notification: Performance of Templates: time 0.01949/0.4083, allocations: 11.18 MB / 1.02 GB, free: 15.12 MB / 0.8106 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches