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.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.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.001446/0.001446, allocations: 104.4 kB / 15.99 MB, free: 6.359 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.001502/0.001502, allocations: 199.3 kB / 16.91 MB, free: 6.191 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.395/1.395, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.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.268/2.268, allocations: 390.3 MB / 0.665 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 68.19 kB / 0.8127 GB, free: 33.17 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2887/0.2901, allocations: 140.4 MB / 0.9498 GB, free: 9.23 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007797/0.298, allocations: 5.491 MB / 0.9551 GB, free: 3.719 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.004725/0.3027, allocations: 2.607 MB / 0.9577 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006322/0.3034, allocations: 19.88 kB / 0.9577 GB, free: 1.082 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.00197/0.3054, allocations: 0.6384 MB / 0.9583 GB, free: 452 kB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001218/0.3066, allocations: 374.2 kB / 0.9587 GB, free: 76 kB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001043/0.3077, allocations: 351.3 kB / 0.959 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.001053/0.3087, allocations: 0.9668 MB / 0.96 GB, free: 14.76 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007434/0.3095, allocations: 0.5104 MB / 0.9605 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000471/0.31, allocations: 382.5 kB / 0.9608 GB, free: 13.87 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000488/0.3105, allocations: 418.4 kB / 0.9612 GB, free: 13.46 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 6.839e-05/0.3105, allocations: 48 kB / 0.9613 GB, free: 13.41 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000632/0.3112, allocations: 359.3 kB / 0.9616 GB, free: 13.06 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0002284/0.3114, allocations: 251.3 kB / 0.9619 GB, free: 12.82 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0003002/0.3117, allocations: 346.2 kB / 0.9622 GB, free: 12.48 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0007784/0.3125, allocations: 0.7482 MB / 0.9629 GB, free: 11.73 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.3125, allocations: 4 kB / 0.9629 GB, free: 11.72 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.483e-06/0.3125, allocations: 0 / 0.9629 GB, free: 11.72 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.015e-05/0.3126, allocations: 4 kB / 0.9629 GB, free: 11.72 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.00159/0.3142, allocations: 0.9699 MB / 0.9639 GB, free: 10.7 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.3142, allocations: 8.031 kB / 0.9639 GB, free: 10.69 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001357/0.3156, allocations: 195.9 kB / 0.9641 GB, free: 10.5 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007062/0.3163, allocations: 486.4 kB / 0.9645 GB, free: 9.984 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.71e-05/0.3163, allocations: 41.3 kB / 0.9646 GB, free: 9.941 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001756/0.3165, allocations: 56.53 kB / 0.9646 GB, free: 9.887 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/0.3177, allocations: 0.8275 MB / 0.9654 GB, free: 8.98 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.831e-05/0.3178, allocations: 15.78 kB / 0.9654 GB, free: 8.965 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.486e-05/0.3178, allocations: 27.98 kB / 0.9655 GB, free: 8.938 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001889/0.318, allocations: 60.95 kB / 0.9655 GB, free: 8.879 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008673/0.3189, allocations: 0.5658 MB / 0.9661 GB, free: 8.312 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004651/0.3236, allocations: 4.577 MB / 0.9706 GB, free: 3.383 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004906/0.3241, allocations: 303 kB / 0.9708 GB, free: 3.082 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003059/0.3244, allocations: 229.3 kB / 0.9711 GB, free: 2.855 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 3.441e-05/0.3245, allocations: 4.281 kB / 0.9711 GB, free: 2.852 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/0.3245, allocations: 38.84 kB / 0.9711 GB, free: 2.805 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=33): time 2.154e-06/0.3245, allocations: 0 / 0.9711 GB, free: 2.805 MB / 0.7481 GB Notification: Performance of matching and sorting (n=40): time 0.005891/0.3304, allocations: 2.627 MB / 0.9737 GB, free: 52 kB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.112e-05/0.3305, allocations: 59.41 kB / 0.9737 GB, free: 15.98 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005489/0.331, allocations: 453.9 kB / 0.9742 GB, free: 15.53 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 4.241e-05/0.3311, allocations: 33.7 kB / 0.9742 GB, free: 15.49 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002445/0.3314, allocations: 347.6 kB / 0.9745 GB, free: 15.14 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001221/0.3315, allocations: 141.9 kB / 0.9747 GB, free: 15 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001731/0.3317, allocations: 110.1 kB / 0.9748 GB, free: 14.89 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001649/0.3318, allocations: 358.8 kB / 0.9751 GB, free: 14.53 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000419/0.3323, allocations: 241 kB / 0.9753 GB, free: 14.29 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004852/0.3328, allocations: 414.4 kB / 0.9757 GB, free: 13.81 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008947/0.3337, allocations: 0.674 MB / 0.9764 GB, free: 13.06 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.3337, allocations: 0 / 0.9764 GB, free: 13.06 MB / 0.7637 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001746/0.3354, allocations: 0.9212 MB / 0.9773 GB, free: 12.12 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/0.3355, allocations: 8 kB / 0.9773 GB, free: 12.12 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.3355, allocations: 7.984 kB / 0.9773 GB, free: 12.11 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007992/0.3363, allocations: 230.8 kB / 0.9775 GB, free: 11.88 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005808/0.3369, allocations: 119.8 kB / 0.9776 GB, free: 11.76 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005222/0.3421, allocations: 5.335 MB / 0.9828 GB, free: 6.004 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004934/0.3426, allocations: 31.97 kB / 0.9829 GB, free: 5.973 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-05/0.3427, allocations: 24 kB / 0.9829 GB, free: 5.949 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.0003281/0.343, allocations: 223.4 kB / 0.9831 GB, free: 5.723 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001384/0.3432, allocations: 59.28 kB / 0.9832 GB, free: 5.664 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00158/0.3448, allocations: 0.7733 MB / 0.9839 GB, free: 4.875 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.431e-06/0.3448, allocations: 4 kB / 0.9839 GB, free: 4.871 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.3448, allocations: 4 kB / 0.9839 GB, free: 4.867 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.3448, allocations: 3.984 kB / 0.9839 GB, free: 4.863 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002645/0.3475, allocations: 1.502 MB / 0.9854 GB, free: 3.273 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.3475, allocations: 0 / 0.9854 GB, free: 3.273 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003926/0.3479, allocations: 72.06 kB / 0.9855 GB, free: 3.203 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007193/0.3486, allocations: 206.6 kB / 0.9857 GB, free: 2.992 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.953e-05/0.3487, allocations: 12 kB / 0.9857 GB, free: 2.98 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00514/0.3538, allocations: 5.281 MB / 0.9908 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3538, allocations: 0 / 0.9908 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001845/0.3557, allocations: 1.139 MB / 0.9919 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002824/0.356, allocations: 168.4 kB / 0.9921 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001126/0.3561, allocations: 15.88 kB / 0.9921 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000367/0.3565, allocations: 23.97 kB / 0.9921 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.3566, allocations: 39.89 kB / 0.9922 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.965e-05/0.3566, allocations: 12.06 kB / 0.9922 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000386/0.357, allocations: 314.9 kB / 0.9925 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.9e-07/0.357, allocations: 0 / 0.9925 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0007673/0.3578, allocations: 168 kB / 0.9927 GB, free: 11.35 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.0001807/0.358, allocations: 111.2 kB / 0.9928 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001818/0.3598, allocations: 1.067 MB / 0.9938 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.3598, allocations: 0 / 0.9938 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.001004/0.3609, allocations: 0.6799 MB / 0.9945 GB, free: 9.406 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009816/0.3618, allocations: 185.4 kB / 0.9946 GB, free: 9.23 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002404/0.3643, allocations: 1.561 MB / 0.9962 GB, free: 7.613 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005677/0.3648, allocations: 0.9494 MB / 0.9971 GB, free: 6.637 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001392/0.365, allocations: 39.44 kB / 0.9971 GB, free: 6.598 MB / 0.7794 GB Notification: Performance of SimCode: time 4.3e-07/0.365, allocations: 0 / 0.9971 GB, free: 6.598 MB / 0.7794 GB Notification: Performance of Templates: time 0.01919/0.3842, allocations: 14.76 MB / 1.012 GB, free: 7.879 MB / 0.795 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