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.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.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.001076/0.001076, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.009002/0.009002, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.482/1.482, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.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.488/2.488, allocations: 390.9 MB / 0.6663 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003989/0.000399, allocations: 8 kB / 0.816 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7825/0.783, allocations: 142.4 MB / 0.9551 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.005277/0.7883, allocations: 5.151 MB / 0.9601 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003754/0.7921, allocations: 2.617 MB / 0.9626 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004006/0.7925, allocations: 21.72 kB / 0.9627 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002964/0.7928, allocations: 95.3 kB / 0.9628 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0008514/0.7937, allocations: 387.1 kB / 0.9631 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008211/0.7945, allocations: 371.5 kB / 0.9635 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.00111/0.7956, allocations: 1.257 MB / 0.9647 GB, free: 336 kB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001233/0.7969, allocations: 0.7853 MB / 0.9655 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005106/0.7974, allocations: 314 kB / 0.9658 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004997/0.7979, allocations: 387.2 kB / 0.9661 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 6.214e-05/0.798, allocations: 25.69 kB / 0.9662 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000781/0.7988, allocations: 434.3 kB / 0.9666 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002477/0.799, allocations: 224.8 kB / 0.9668 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0003567/0.7994, allocations: 338 kB / 0.9671 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001215/0.8006, allocations: 0.9621 MB / 0.9681 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.8006, allocations: 1.125 kB / 0.9681 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.974e-06/0.8007, allocations: 0 / 0.9681 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.295e-05/0.8007, allocations: 0 / 0.9681 GB, free: 14.15 MB / 0.7325 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.001656/0.8023, allocations: 0.8525 MB / 0.9689 GB, free: 13.44 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.8024, allocations: 9.812 kB / 0.9689 GB, free: 13.44 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001519/0.8039, allocations: 197.8 kB / 0.9691 GB, free: 13.35 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008449/0.8048, allocations: 0.4911 MB / 0.9696 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.228e-05/0.8048, allocations: 45.5 kB / 0.9696 GB, free: 12.91 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001761/0.805, allocations: 50.97 kB / 0.9697 GB, free: 12.89 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/0.8064, allocations: 0.8271 MB / 0.9705 GB, free: 12.29 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.96e-05/0.8064, allocations: 7 kB / 0.9705 GB, free: 12.29 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.563e-05/0.8065, allocations: 23.39 kB / 0.9705 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002024/0.8067, allocations: 66.02 kB / 0.9706 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009246/0.8076, allocations: 0.5712 MB / 0.9711 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004582/0.8122, allocations: 4.586 MB / 0.9756 GB, free: 7.691 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005265/0.8128, allocations: 295.1 kB / 0.9759 GB, free: 7.531 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003311/0.8131, allocations: 231.1 kB / 0.9761 GB, free: 7.41 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.82e-05/0.8131, allocations: 3.906 kB / 0.9761 GB, free: 7.41 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.83e-05/0.8132, allocations: 32.19 kB / 0.9761 GB, free: 7.371 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=33): time 2.174e-06/0.8132, allocations: 1.25 kB / 0.9761 GB, free: 7.371 MB / 0.7325 GB Notification: Performance of matching and sorting (n=40): time 0.005904/0.8191, allocations: 2.643 MB / 0.9787 GB, free: 5.652 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.477e-05/0.8191, allocations: 55.47 kB / 0.9788 GB, free: 5.59 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005495/0.8197, allocations: 469.9 kB / 0.9792 GB, free: 5.297 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.277e-05/0.8198, allocations: 38.77 kB / 0.9793 GB, free: 5.254 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002206/0.82, allocations: 336.7 kB / 0.9796 GB, free: 4.953 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001216/0.8201, allocations: 148.8 kB / 0.9797 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.611e-05/0.8202, allocations: 49.86 kB / 0.9798 GB, free: 4.785 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001386/0.8203, allocations: 362.7 kB / 0.9801 GB, free: 4.434 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003784/0.8207, allocations: 243.8 kB / 0.9803 GB, free: 4.312 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004837/0.8212, allocations: 411.1 kB / 0.9807 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008954/0.8221, allocations: 0.6765 MB / 0.9814 GB, free: 3.48 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.8221, allocations: 2.625 kB / 0.9814 GB, free: 3.48 MB / 0.7325 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001747/0.8239, allocations: 0.9236 MB / 0.9823 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.8239, allocations: 4 kB / 0.9823 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.8239, allocations: 12.03 kB / 0.9823 GB, free: 2.531 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008256/0.8248, allocations: 226.3 kB / 0.9825 GB, free: 2.301 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005134/0.8253, allocations: 115.8 kB / 0.9826 GB, free: 2.188 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005068/0.8304, allocations: 4.938 MB / 0.9875 GB, free: 12.85 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006314/0.831, allocations: 31.97 kB / 0.9875 GB, free: 12.82 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.596e-05/0.8311, allocations: 24 kB / 0.9875 GB, free: 12.8 MB / 0.7481 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.0003978/0.8315, allocations: 233.7 kB / 0.9877 GB, free: 12.56 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.8316, allocations: 55.34 kB / 0.9878 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001573/0.8332, allocations: 0.7697 MB / 0.9885 GB, free: 11.72 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.8332, allocations: 4 kB / 0.9885 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.8332, allocations: 4 kB / 0.9886 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.8332, allocations: 0 / 0.9886 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002598/0.8358, allocations: 1.498 MB / 0.99 GB, free: 10.12 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/0.8359, allocations: 4 kB / 0.99 GB, free: 10.12 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003943/0.8363, allocations: 67.88 kB / 0.9901 GB, free: 10.05 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007201/0.837, allocations: 202.6 kB / 0.9903 GB, free: 9.848 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.452e-05/0.837, allocations: 12 kB / 0.9903 GB, free: 9.836 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00504/0.8421, allocations: 4.881 MB / 0.9951 GB, free: 4.555 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.8421, allocations: 0 / 0.9951 GB, free: 4.555 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001912/0.844, allocations: 1.147 MB / 0.9962 GB, free: 3.359 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003154/0.8444, allocations: 168.4 kB / 0.9963 GB, free: 3.176 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001309/0.8445, allocations: 12 kB / 0.9963 GB, free: 3.164 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003805/0.8449, allocations: 23.97 kB / 0.9964 GB, free: 3.141 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.845, allocations: 43.89 kB / 0.9964 GB, free: 3.098 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.516e-05/0.8451, allocations: 16 kB / 0.9964 GB, free: 3.082 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0004065/0.8455, allocations: 310.9 kB / 0.9967 GB, free: 2.781 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1e-07/0.8455, allocations: 0 / 0.9967 GB, free: 2.781 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0008692/0.8463, allocations: 168 kB / 0.9969 GB, free: 2.617 MB / 0.7481 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.0002166/0.8466, allocations: 119.2 kB / 0.997 GB, free: 2.488 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001972/0.8485, allocations: 1.012 MB / 0.998 GB, free: 1.438 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.209e-06/0.8486, allocations: 0 / 0.998 GB, free: 1.438 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.001075/0.8496, allocations: 0.6799 MB / 0.9986 GB, free: 0.7188 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001147/0.8508, allocations: 169.7 kB / 0.9988 GB, free: 0.5547 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002374/0.8532, allocations: 1.572 MB / 1 GB, free: 14.93 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005774/0.8538, allocations: 0.9494 MB / 1.001 GB, free: 13.96 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0003962/0.8542, allocations: 109 kB / 1.001 GB, free: 13.85 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.8543, allocations: 39.38 kB / 1.001 GB, free: 13.81 MB / 0.7637 GB Notification: Performance of SimCode: time 6.21e-07/0.8543, allocations: 0 / 1.001 GB, free: 13.81 MB / 0.7637 GB Notification: Performance of Templates: time 0.01617/0.8705, allocations: 8.415 MB / 1.01 GB, free: 5.508 MB / 0.7637 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 -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/jenkins/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