Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.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.OnePhase.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.OnePhase.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.OnePhase.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.OnePhase.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.001065/0.001065, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001409/0.001409, allocations: 183.7 kB / 16.92 MB, free: 6.77 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: 223.3 MB / 241 MB, free: 5.359 MB / 190.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.386/2.386, allocations: 390.9 MB / 0.667 GB, free: 2.348 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003735/0.0003734, allocations: 8 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.773/0.7734, allocations: 142.4 MB / 0.9557 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.005024/0.7784, allocations: 5.08 MB / 0.9607 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003861/0.7823, allocations: 2.605 MB / 0.9632 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003967/0.7828, allocations: 17.69 kB / 0.9632 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002832/0.783, allocations: 99.45 kB / 0.9633 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0008749/0.7839, allocations: 391.3 kB / 0.9637 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008515/0.7848, allocations: 351.7 kB / 0.964 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001206/0.786, allocations: 1.252 MB / 0.9653 GB, free: 0.5312 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001178/0.7872, allocations: 0.784 MB / 0.966 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005528/0.7878, allocations: 306.1 kB / 0.9663 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005323/0.7883, allocations: 394.3 kB / 0.9667 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 6.102e-05/0.7884, allocations: 29.97 kB / 0.9667 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008741/0.7893, allocations: 434.1 kB / 0.9671 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002534/0.7895, allocations: 212.5 kB / 0.9673 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.000368/0.7899, allocations: 345.3 kB / 0.9677 GB, free: 15 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0008735/0.7908, allocations: 0.7379 MB / 0.9684 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.7908, allocations: 1 kB / 0.9684 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.613e-06/0.7908, allocations: 0 / 0.9684 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.047e-05/0.7908, allocations: 0 / 0.9684 GB, free: 14.5 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.001555/0.7924, allocations: 0.8443 MB / 0.9692 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.7924, allocations: 9.188 kB / 0.9692 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001458/0.7939, allocations: 193 kB / 0.9694 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007545/0.7947, allocations: 492.8 kB / 0.9699 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.322e-05/0.7947, allocations: 37 kB / 0.9699 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001617/0.7949, allocations: 58.86 kB / 0.97 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001243/0.7961, allocations: 0.8285 MB / 0.9708 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.604e-05/0.7962, allocations: 10.03 kB / 0.9708 GB, free: 12.65 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.318e-05/0.7962, allocations: 23 kB / 0.9708 GB, free: 12.64 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001938/0.7964, allocations: 66.73 kB / 0.9709 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009385/0.7974, allocations: 0.5719 MB / 0.9714 GB, free: 12.33 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004699/0.8021, allocations: 4.58 MB / 0.9759 GB, free: 8.062 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004987/0.8026, allocations: 300.2 kB / 0.9762 GB, free: 7.898 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003173/0.803, allocations: 226 kB / 0.9764 GB, free: 7.781 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/0.803, allocations: 3.906 kB / 0.9764 GB, free: 7.781 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.754e-05/0.803, allocations: 41.38 kB / 0.9765 GB, free: 7.734 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=33): time 2.104e-06/0.803, allocations: 0 / 0.9765 GB, free: 7.734 MB / 0.7325 GB Notification: Performance of matching and sorting (n=40): time 0.005911/0.809, allocations: 2.639 MB / 0.979 GB, free: 6.02 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.852e-05/0.809, allocations: 59.44 kB / 0.9791 GB, free: 5.953 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005609/0.8096, allocations: 457.7 kB / 0.9795 GB, free: 5.668 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.24e-05/0.8097, allocations: 32.3 kB / 0.9796 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002437/0.8099, allocations: 342.8 kB / 0.9799 GB, free: 5.324 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001182/0.81, allocations: 144.5 kB / 0.98 GB, free: 5.199 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.069e-05/0.8101, allocations: 50.38 kB / 0.9801 GB, free: 5.16 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001628/0.8103, allocations: 363.7 kB / 0.9804 GB, free: 4.809 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003609/0.8107, allocations: 239.8 kB / 0.9806 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004873/0.8111, allocations: 406.5 kB / 0.981 GB, free: 4.352 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009178/0.8121, allocations: 0.6784 MB / 0.9817 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.8121, allocations: 0 / 0.9817 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001736/0.8138, allocations: 0.9207 MB / 0.9826 GB, free: 2.895 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.675e-05/0.8139, allocations: 9.719 kB / 0.9826 GB, free: 2.887 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.8139, allocations: 4 kB / 0.9826 GB, free: 2.883 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000797/0.8147, allocations: 231 kB / 0.9828 GB, free: 2.648 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005172/0.8152, allocations: 115.8 kB / 0.9829 GB, free: 2.535 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004887/0.8201, allocations: 4.938 MB / 0.9878 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006021/0.8207, allocations: 31.97 kB / 0.9878 GB, free: 13.17 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.231e-05/0.8208, allocations: 24 kB / 0.9878 GB, free: 13.14 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.0003862/0.8212, allocations: 222.6 kB / 0.988 GB, free: 12.92 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.751e-05/0.8213, allocations: 55.34 kB / 0.9881 GB, free: 12.86 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001562/0.8229, allocations: 0.7811 MB / 0.9888 GB, free: 12.07 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.8229, allocations: 4 kB / 0.9888 GB, free: 12.06 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.8229, allocations: 192 / 0.9888 GB, free: 12.06 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.05e-05/0.8229, allocations: 7.984 kB / 0.9888 GB, free: 12.05 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002776/0.8257, allocations: 1.498 MB / 0.9903 GB, free: 10.47 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.8257, allocations: 224 / 0.9903 GB, free: 10.47 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003894/0.8261, allocations: 67.89 kB / 0.9904 GB, free: 10.4 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007073/0.8268, allocations: 210.3 kB / 0.9906 GB, free: 10.19 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.65e-05/0.8269, allocations: 12 kB / 0.9906 GB, free: 10.18 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005082/0.832, allocations: 4.877 MB / 0.9954 GB, free: 4.898 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.832, allocations: 4 kB / 0.9954 GB, free: 4.895 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00188/0.8339, allocations: 1.135 MB / 0.9965 GB, free: 3.711 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002669/0.8342, allocations: 172.4 kB / 0.9966 GB, free: 3.523 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.858e-05/0.8342, allocations: 12 kB / 0.9966 GB, free: 3.512 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003215/0.8346, allocations: 23.91 kB / 0.9967 GB, free: 3.488 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.093e-05/0.8347, allocations: 39.95 kB / 0.9967 GB, free: 3.449 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.889e-05/0.8347, allocations: 16 kB / 0.9967 GB, free: 3.434 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.000353/0.8351, allocations: 314.9 kB / 0.997 GB, free: 3.129 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.71e-07/0.8351, allocations: 3.938 kB / 0.997 GB, free: 3.125 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0007326/0.8358, allocations: 164 kB / 0.9972 GB, free: 2.965 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.0001592/0.836, allocations: 111.2 kB / 0.9973 GB, free: 2.844 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001596/0.8376, allocations: 1.008 MB / 0.9983 GB, free: 1.797 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.8376, allocations: 0 / 0.9983 GB, free: 1.797 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0009561/0.8386, allocations: 0.6837 MB / 0.9989 GB, free: 1.074 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001064/0.8396, allocations: 173.6 kB / 0.9991 GB, free: 0.9102 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002313/0.842, allocations: 1.602 MB / 1.001 GB, free: 15.25 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005387/0.8425, allocations: 0.9532 MB / 1.002 GB, free: 14.27 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001341/0.8427, allocations: 39.44 kB / 1.002 GB, free: 14.23 MB / 0.7637 GB Notification: Performance of SimCode: time 5.91e-07/0.8427, allocations: 0 / 1.002 GB, free: 14.23 MB / 0.7637 GB Notification: Performance of Templates: time 0.01944/0.8621, allocations: 14.68 MB / 1.016 GB, free: 15.59 MB / 0.7794 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches