Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.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_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001606/0.001606, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.002428/0.002428, allocations: 192.1 kB / 17.31 MB, free: 5.613 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.355/1.355, allocations: 222.9 MB / 241 MB, free: 15.16 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.238/2.238, allocations: 390.3 MB / 0.6655 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 61.66 kB / 0.814 GB, free: 32.86 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3109/0.3123, allocations: 140.4 MB / 0.9511 GB, free: 8.039 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.007226/0.3196, allocations: 5.544 MB / 0.9565 GB, free: 2.473 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.004237/0.3238, allocations: 2.654 MB / 0.9591 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003388/0.3242, allocations: 19.88 kB / 0.9592 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001786/0.326, allocations: 0.6768 MB / 0.9598 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.0008412/0.3268, allocations: 409.7 kB / 0.9602 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.000926/0.3278, allocations: 410.8 kB / 0.9606 GB, free: 14.31 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.001017/0.3288, allocations: 0.9591 MB / 0.9615 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006159/0.3294, allocations: 482.4 kB / 0.962 GB, free: 12.87 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004069/0.3299, allocations: 366.6 kB / 0.9623 GB, free: 12.51 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004953/0.3304, allocations: 398.4 kB / 0.9627 GB, free: 12.12 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 7.174e-05/0.3304, allocations: 48 kB / 0.9628 GB, free: 12.07 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000616/0.3311, allocations: 371.2 kB / 0.9631 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0002336/0.3313, allocations: 251.3 kB / 0.9634 GB, free: 11.46 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0003693/0.3317, allocations: 342.3 kB / 0.9637 GB, free: 11.13 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0009602/0.3327, allocations: 0.9772 MB / 0.9646 GB, free: 10.15 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3327, allocations: 0 / 0.9646 GB, free: 10.15 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.333e-06/0.3327, allocations: 0 / 0.9646 GB, free: 10.15 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.027e-05/0.3327, allocations: 3.938 kB / 0.9647 GB, free: 10.14 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001579/0.3343, allocations: 0.9738 MB / 0.9656 GB, free: 9.121 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/0.3343, allocations: 8.031 kB / 0.9656 GB, free: 9.113 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001318/0.3356, allocations: 191.8 kB / 0.9658 GB, free: 8.926 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009349/0.3366, allocations: 0.5296 MB / 0.9663 GB, free: 8.355 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.208e-05/0.3366, allocations: 37.36 kB / 0.9663 GB, free: 8.316 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001474/0.3368, allocations: 60.53 kB / 0.9664 GB, free: 8.258 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001058/0.3379, allocations: 0.8298 MB / 0.9672 GB, free: 7.348 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.405e-05/0.3379, allocations: 3.906 kB / 0.9672 GB, free: 7.344 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.591e-05/0.338, allocations: 27.98 kB / 0.9672 GB, free: 7.316 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001811/0.3382, allocations: 64.95 kB / 0.9673 GB, free: 7.254 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008751/0.339, allocations: 0.5735 MB / 0.9679 GB, free: 6.676 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004753/0.3438, allocations: 4.565 MB / 0.9723 GB, free: 1.758 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00045/0.3443, allocations: 291.3 kB / 0.9726 GB, free: 1.465 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002978/0.3446, allocations: 233.3 kB / 0.9728 GB, free: 1.234 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 3.623e-05/0.3446, allocations: 4.281 kB / 0.9728 GB, free: 1.23 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.784e-05/0.3447, allocations: 46.7 kB / 0.9729 GB, free: 1.176 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=33): time 2.023e-06/0.3447, allocations: 0 / 0.9729 GB, free: 1.176 MB / 0.7481 GB Notification: Performance of matching and sorting (n=40): time 0.005357/0.35, allocations: 2.62 MB / 0.9754 GB, free: 14.43 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.892e-05/0.3501, allocations: 63.34 kB / 0.9755 GB, free: 14.35 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004795/0.3506, allocations: 469.9 kB / 0.9759 GB, free: 13.88 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 3.447e-05/0.3506, allocations: 33.7 kB / 0.976 GB, free: 13.84 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002283/0.3509, allocations: 347.5 kB / 0.9763 GB, free: 13.5 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/0.351, allocations: 145.9 kB / 0.9764 GB, free: 13.36 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001571/0.3511, allocations: 102.2 kB / 0.9765 GB, free: 13.25 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001366/0.3513, allocations: 362.8 kB / 0.9769 GB, free: 12.89 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003354/0.3516, allocations: 237 kB / 0.9771 GB, free: 12.66 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004399/0.3521, allocations: 404.1 kB / 0.9775 GB, free: 12.18 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008231/0.3529, allocations: 0.6817 MB / 0.9782 GB, free: 11.43 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.3529, allocations: 4 kB / 0.9782 GB, free: 11.43 MB / 0.7637 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001625/0.3546, allocations: 0.9207 MB / 0.9791 GB, free: 10.49 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.3546, allocations: 8.656 kB / 0.9791 GB, free: 10.48 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.3546, allocations: 4 kB / 0.9791 GB, free: 10.48 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007859/0.3554, allocations: 226.4 kB / 0.9793 GB, free: 10.25 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004971/0.3559, allocations: 115.8 kB / 0.9794 GB, free: 10.13 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005163/0.3611, allocations: 5.336 MB / 0.9846 GB, free: 4.375 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004872/0.3616, allocations: 28.17 kB / 0.9846 GB, free: 4.348 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.722e-05/0.3616, allocations: 31.98 kB / 0.9847 GB, free: 4.316 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(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.0003749/0.362, allocations: 214.8 kB / 0.9849 GB, free: 4.098 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.3621, allocations: 63.28 kB / 0.9849 GB, free: 4.035 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001571/0.3637, allocations: 0.7776 MB / 0.9857 GB, free: 3.242 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.3637, allocations: 4 kB / 0.9857 GB, free: 3.238 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3637, allocations: 0 / 0.9857 GB, free: 3.238 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.3638, allocations: 11.98 kB / 0.9857 GB, free: 3.227 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002565/0.3663, allocations: 1.501 MB / 0.9872 GB, free: 1.637 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.307e-06/0.3663, allocations: 0 / 0.9872 GB, free: 1.637 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003779/0.3667, allocations: 71.89 kB / 0.9872 GB, free: 1.566 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006805/0.3674, allocations: 206.6 kB / 0.9874 GB, free: 1.355 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.319e-05/0.3675, allocations: 8 kB / 0.9875 GB, free: 1.348 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004971/0.3724, allocations: 5.273 MB / 0.9926 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/0.3725, allocations: 3.984 kB / 0.9926 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001728/0.3742, allocations: 1.135 MB / 0.9937 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002864/0.3745, allocations: 172.4 kB / 0.9939 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.738e-05/0.3746, allocations: 15.94 kB / 0.9939 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003206/0.3749, allocations: 23.97 kB / 0.9939 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.313e-05/0.375, allocations: 36.02 kB / 0.994 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.706e-05/0.375, allocations: 16 kB / 0.994 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003414/0.3754, allocations: 314.9 kB / 0.9943 GB, free: 9.883 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.71e-07/0.3754, allocations: 0 / 0.9943 GB, free: 9.883 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0006791/0.3761, allocations: 168 kB / 0.9944 GB, free: 9.719 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[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 (30): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001701/0.3762, allocations: 115.2 kB / 0.9945 GB, free: 9.598 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001615/0.3779, allocations: 1.008 MB / 0.9955 GB, free: 8.551 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.3779, allocations: 4 kB / 0.9955 GB, free: 8.547 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.001013/0.3789, allocations: 0.6876 MB / 0.9962 GB, free: 7.82 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008259/0.3797, allocations: 184.3 kB / 0.9964 GB, free: 7.645 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001878/0.3816, allocations: 1.247 MB / 0.9976 GB, free: 6.348 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005048/0.3821, allocations: 0.9533 MB / 0.9985 GB, free: 5.367 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0003071/0.3825, allocations: 117 kB / 0.9986 GB, free: 5.25 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.748e-05/0.3826, allocations: 35.44 kB / 0.9987 GB, free: 5.215 MB / 0.7794 GB Notification: Performance of SimCode: time 3.1e-07/0.3826, allocations: 0 / 0.9987 GB, free: 5.215 MB / 0.7794 GB Notification: Performance of Templates: time 0.01461/0.3972, allocations: 8.861 MB / 1.007 GB, free: 12.47 MB / 0.795 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches