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.001514/0.00152, allocations: 104.3 kB / 16.36 MB, free: 5.824 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.001384/0.001384, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.457/1.457, 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.382/2.382, allocations: 390.3 MB / 0.6655 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002213/0.002213, allocations: 64.77 kB / 0.814 GB, free: 32.62 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2952, allocations: 140.4 MB / 0.9511 GB, free: 8.031 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.01012/0.3053, allocations: 5.544 MB / 0.9565 GB, free: 2.465 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.005357/0.3108, allocations: 2.646 MB / 0.9591 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004813/0.3113, allocations: 27.81 kB / 0.9591 GB, free: 15.78 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001987/0.3133, allocations: 0.6763 MB / 0.9598 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.001193/0.3145, allocations: 413.7 kB / 0.9602 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.001217/0.3157, allocations: 407 kB / 0.9606 GB, free: 14.3 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.001456/0.3172, allocations: 0.963 MB / 0.9615 GB, free: 13.33 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008563/0.3181, allocations: 470.5 kB / 0.962 GB, free: 12.87 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006906/0.3188, allocations: 370.6 kB / 0.9623 GB, free: 12.51 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005808/0.3194, allocations: 410.4 kB / 0.9627 GB, free: 12.11 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 7.488e-05/0.3194, allocations: 48 kB / 0.9628 GB, free: 12.06 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008021/0.3202, allocations: 359.3 kB / 0.9631 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0002481/0.3205, allocations: 243.4 kB / 0.9633 GB, free: 11.47 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.000365/0.3209, allocations: 354.1 kB / 0.9637 GB, free: 11.12 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001164/0.3221, allocations: 0.9695 MB / 0.9646 GB, free: 10.15 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3221, allocations: 0 / 0.9646 GB, free: 10.15 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.635e-06/0.3221, allocations: 0 / 0.9646 GB, free: 10.15 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.651e-05/0.3221, allocations: 0 / 0.9646 GB, free: 10.15 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.001635/0.3237, allocations: 0.9776 MB / 0.9656 GB, free: 9.121 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.3238, allocations: 12.03 kB / 0.9656 GB, free: 9.109 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001405/0.3252, allocations: 191.8 kB / 0.9658 GB, free: 8.922 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009682/0.3262, allocations: 0.5296 MB / 0.9663 GB, free: 8.352 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.549e-05/0.3262, allocations: 37.38 kB / 0.9663 GB, free: 8.312 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001522/0.3264, allocations: 56.53 kB / 0.9664 GB, free: 8.258 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00118/0.3276, allocations: 0.8314 MB / 0.9672 GB, free: 7.348 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.081e-05/0.3276, allocations: 11.84 kB / 0.9672 GB, free: 7.336 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.868e-05/0.3277, allocations: 23.98 kB / 0.9672 GB, free: 7.312 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001897/0.3279, allocations: 64.95 kB / 0.9673 GB, free: 7.25 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008845/0.3288, allocations: 0.5775 MB / 0.9679 GB, free: 6.668 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005058/0.3339, allocations: 4.565 MB / 0.9723 GB, free: 1.75 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004833/0.3344, allocations: 291.3 kB / 0.9726 GB, free: 1.457 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003111/0.3347, allocations: 233.3 kB / 0.9728 GB, free: 1.227 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 3.683e-05/0.3347, allocations: 4.281 kB / 0.9728 GB, free: 1.223 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.53e-05/0.3348, allocations: 34.84 kB / 0.9729 GB, free: 1.18 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=33): time 2.504e-06/0.3348, allocations: 0 / 0.9729 GB, free: 1.18 MB / 0.7481 GB Notification: Performance of matching and sorting (n=40): time 0.00559/0.3404, allocations: 2.631 MB / 0.9754 GB, free: 14.42 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.701e-05/0.3405, allocations: 59.41 kB / 0.9755 GB, free: 14.35 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005217/0.341, allocations: 473.8 kB / 0.9759 GB, free: 13.88 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 4.077e-05/0.341, allocations: 37.7 kB / 0.976 GB, free: 13.84 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002645/0.3413, allocations: 339.6 kB / 0.9763 GB, free: 13.5 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.3414, allocations: 145.9 kB / 0.9764 GB, free: 13.35 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001713/0.3416, allocations: 106.2 kB / 0.9765 GB, free: 13.24 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001566/0.3418, allocations: 358.8 kB / 0.9769 GB, free: 12.88 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003464/0.3421, allocations: 241 kB / 0.9771 GB, free: 12.65 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004799/0.3426, allocations: 410.4 kB / 0.9775 GB, free: 12.17 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008659/0.3435, allocations: 0.6779 MB / 0.9782 GB, free: 11.42 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.3435, allocations: 0 / 0.9782 GB, free: 11.42 MB / 0.7637 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001666/0.3452, allocations: 0.9213 MB / 0.9791 GB, free: 10.48 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/0.3452, allocations: 14.12 kB / 0.9791 GB, free: 10.47 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.3452, allocations: 4 kB / 0.9791 GB, free: 10.46 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007904/0.346, allocations: 230.3 kB / 0.9793 GB, free: 10.23 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005084/0.3465, allocations: 119.8 kB / 0.9794 GB, free: 10.11 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005207/0.3517, allocations: 5.324 MB / 0.9846 GB, free: 4.367 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005011/0.3523, allocations: 31.97 kB / 0.9846 GB, free: 4.336 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.2e-05/0.3523, allocations: 24 kB / 0.9847 GB, free: 4.312 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.0003348/0.3527, allocations: 217.7 kB / 0.9849 GB, free: 4.09 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.121e-05/0.3528, allocations: 63.34 kB / 0.9849 GB, free: 4.027 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001485/0.3543, allocations: 0.7659 MB / 0.9857 GB, free: 3.246 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.3543, allocations: 4 kB / 0.9857 GB, free: 3.242 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.3543, allocations: 8 kB / 0.9857 GB, free: 3.234 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.3543, allocations: 3.984 kB / 0.9857 GB, free: 3.23 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002539/0.3568, allocations: 1.501 MB / 0.9872 GB, free: 1.641 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.3569, allocations: 4.188 kB / 0.9872 GB, free: 1.637 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003696/0.3572, allocations: 67.89 kB / 0.9872 GB, free: 1.57 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000675/0.3579, allocations: 214.6 kB / 0.9874 GB, free: 1.352 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.421e-05/0.358, allocations: 11.98 kB / 0.9874 GB, free: 1.34 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004942/0.3629, allocations: 5.269 MB / 0.9926 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.173e-06/0.363, allocations: 8.031 kB / 0.9926 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001762/0.3647, allocations: 1.135 MB / 0.9937 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002926/0.365, allocations: 168.4 kB / 0.9939 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.511e-05/0.3651, allocations: 11.94 kB / 0.9939 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003292/0.3655, allocations: 32.03 kB / 0.9939 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.581e-05/0.3656, allocations: 35.89 kB / 0.9939 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.039e-05/0.3656, allocations: 12 kB / 0.994 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000351/0.366, allocations: 314.9 kB / 0.9943 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.7e-07/0.366, allocations: 0 / 0.9943 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0007193/0.3667, allocations: 168 kB / 0.9944 GB, free: 9.715 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.0001861/0.3669, allocations: 115.2 kB / 0.9945 GB, free: 9.594 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001702/0.3686, allocations: 1.008 MB / 0.9955 GB, free: 8.547 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.3686, allocations: 4.062 kB / 0.9955 GB, free: 8.543 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0009672/0.3696, allocations: 0.6914 MB / 0.9962 GB, free: 7.812 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000854/0.3704, allocations: 186.2 kB / 0.9964 GB, free: 7.637 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002049/0.3725, allocations: 1.247 MB / 0.9976 GB, free: 6.34 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005797/0.3731, allocations: 0.9494 MB / 0.9985 GB, free: 5.363 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0003727/0.3735, allocations: 117 kB / 0.9986 GB, free: 5.246 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001089/0.3736, allocations: 35.44 kB / 0.9987 GB, free: 5.211 MB / 0.7794 GB Notification: Performance of SimCode: time 1.163e-06/0.3736, allocations: 0 / 0.9987 GB, free: 5.211 MB / 0.7794 GB Notification: Performance of Templates: time 0.01727/0.3909, allocations: 8.848 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 cvode -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