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.009672/0.009672, allocations: 103.2 kB / 15.73 MB, free: 6.012 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.001625/0.001625, allocations: 192.7 kB / 16.67 MB, free: 5.938 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.485/1.485, allocations: 222.9 MB / 240.4 MB, free: 15.09 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.259/2.259, allocations: 390.2 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 71.88 kB / 0.9508 GB, free: 7.648 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.025/1.026, allocations: 140.4 MB / 1.088 GB, free: 5.773 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.006933/1.033, allocations: 5.531 MB / 1.093 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.004409/1.037, allocations: 2.647 MB / 1.096 GB, free: 212 kB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003917/1.038, allocations: 25.62 kB / 1.096 GB, free: 200 kB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001859/1.04, allocations: 0.6829 MB / 1.097 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001147/1.041, allocations: 409.8 kB / 1.097 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001176/1.042, allocations: 409.5 kB / 1.097 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.00134/1.043, allocations: 0.9546 MB / 1.098 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007606/1.044, allocations: 465.1 kB / 1.099 GB, free: 14.72 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005485/1.045, allocations: 375.8 kB / 1.099 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006192/1.045, allocations: 406.4 kB / 1.1 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 9.089e-05/1.046, allocations: 48.28 kB / 1.1 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007677/1.046, allocations: 363.2 kB / 1.1 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.000305/1.047, allocations: 247.8 kB / 1.1 GB, free: 14.17 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0004088/1.047, allocations: 354.2 kB / 1.1 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001461/1.048, allocations: 0.9715 MB / 1.101 GB, free: 13.63 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/1.049, allocations: 0 / 1.101 GB, free: 13.63 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.403e-06/1.049, allocations: 4 kB / 1.101 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 2.242e-05/1.049, allocations: 1.594 kB / 1.101 GB, free: 13.62 MB / 0.8731 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.001952/1.051, allocations: 0.9738 MB / 1.102 GB, free: 12.92 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/1.051, allocations: 13.28 kB / 1.102 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001666/1.052, allocations: 199.1 kB / 1.103 GB, free: 12.87 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001216/1.053, allocations: 0.518 MB / 1.103 GB, free: 12.52 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.4e-05/1.054, allocations: 45.2 kB / 1.103 GB, free: 12.5 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001817/1.054, allocations: 57.34 kB / 1.103 GB, free: 12.48 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001414/1.055, allocations: 0.8338 MB / 1.104 GB, free: 11.99 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.178e-05/1.055, allocations: 7.438 kB / 1.104 GB, free: 11.99 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.621e-05/1.055, allocations: 22.95 kB / 1.104 GB, free: 11.97 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00022/1.055, allocations: 68.16 kB / 1.104 GB, free: 11.96 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009462/1.056, allocations: 0.5697 MB / 1.105 GB, free: 11.77 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004865/1.061, allocations: 4.574 MB / 1.109 GB, free: 7.867 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005639/1.062, allocations: 299.2 kB / 1.109 GB, free: 7.742 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000363/1.062, allocations: 226.7 kB / 1.11 GB, free: 7.652 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 3.17e-05/1.062, allocations: 4.219 kB / 1.11 GB, free: 7.652 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/1.062, allocations: 33.05 kB / 1.11 GB, free: 7.613 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=33): time 2.314e-06/1.062, allocations: 1 kB / 1.11 GB, free: 7.613 MB / 0.8731 GB Notification: Performance of matching and sorting (n=40): time 0.006368/1.069, allocations: 2.63 MB / 1.112 GB, free: 6.227 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.474e-05/1.069, allocations: 55.53 kB / 1.112 GB, free: 6.164 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006443/1.069, allocations: 467.2 kB / 1.113 GB, free: 5.938 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.771e-05/1.07, allocations: 35.05 kB / 1.113 GB, free: 5.898 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002778/1.07, allocations: 337.9 kB / 1.113 GB, free: 5.625 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001531/1.07, allocations: 141.6 kB / 1.113 GB, free: 5.516 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002441/1.07, allocations: 109.6 kB / 1.113 GB, free: 5.453 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001855/1.07, allocations: 360.5 kB / 1.114 GB, free: 5.121 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004829/1.071, allocations: 238.5 kB / 1.114 GB, free: 5.039 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004999/1.071, allocations: 408.9 kB / 1.114 GB, free: 4.738 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009363/1.072, allocations: 0.6739 MB / 1.115 GB, free: 4.305 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/1.072, allocations: 1.375 kB / 1.115 GB, free: 4.305 MB / 0.8731 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00181/1.074, allocations: 0.9192 MB / 1.116 GB, free: 3.918 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.353e-05/1.074, allocations: 8.828 kB / 1.116 GB, free: 3.918 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.628e-05/1.074, allocations: 9.266 kB / 1.116 GB, free: 3.914 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008545/1.075, allocations: 231 kB / 1.116 GB, free: 3.84 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005286/1.076, allocations: 113.1 kB / 1.116 GB, free: 3.832 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00548/1.081, allocations: 5.341 MB / 1.121 GB, free: 15.16 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005983/1.082, allocations: 33.59 kB / 1.121 GB, free: 15.15 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.623e-05/1.082, allocations: 23.83 kB / 1.121 GB, free: 15.14 MB / 0.8887 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.0004031/1.082, allocations: 226 kB / 1.122 GB, free: 14.97 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/1.082, allocations: 59.75 kB / 1.122 GB, free: 14.94 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001715/1.084, allocations: 0.7778 MB / 1.122 GB, free: 14.6 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.281e-06/1.084, allocations: 4.562 kB / 1.122 GB, free: 14.6 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/1.084, allocations: 7.344 kB / 1.122 GB, free: 14.59 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.237e-05/1.084, allocations: 2.016 kB / 1.122 GB, free: 14.59 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002825/1.087, allocations: 1.499 MB / 1.124 GB, free: 13.81 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/1.087, allocations: 6.219 kB / 1.124 GB, free: 13.8 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004001/1.087, allocations: 68.14 kB / 1.124 GB, free: 13.8 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007448/1.088, allocations: 206.6 kB / 1.124 GB, free: 13.73 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.459e-05/1.088, allocations: 8.984 kB / 1.124 GB, free: 13.73 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005407/1.094, allocations: 5.264 MB / 1.129 GB, free: 9.098 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/1.094, allocations: 2.438 kB / 1.129 GB, free: 9.098 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002047/1.096, allocations: 1.136 MB / 1.13 GB, free: 8.512 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003544/1.096, allocations: 172.2 kB / 1.131 GB, free: 8.371 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001001/1.096, allocations: 21.73 kB / 1.131 GB, free: 8.355 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003487/1.097, allocations: 28.52 kB / 1.131 GB, free: 8.348 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/1.097, allocations: 34.02 kB / 1.131 GB, free: 8.34 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-05/1.097, allocations: 14.14 kB / 1.131 GB, free: 8.336 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0004424/1.097, allocations: 316 kB / 1.131 GB, free: 8.188 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.2e-07/1.097, allocations: 0 / 1.131 GB, free: 8.188 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0008483/1.098, allocations: 169.7 kB / 1.131 GB, free: 8.168 MB / 0.8887 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.0001777/1.098, allocations: 115.1 kB / 1.131 GB, free: 8.066 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001853/1.1, allocations: 1.018 MB / 1.132 GB, free: 7.477 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/1.1, allocations: 0 / 1.132 GB, free: 7.477 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001085/1.101, allocations: 0.6779 MB / 1.133 GB, free: 7.02 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000973/1.102, allocations: 186.7 kB / 1.133 GB, free: 6.953 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002372/1.105, allocations: 1.252 MB / 1.134 GB, free: 6.234 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006339/1.105, allocations: 0.9473 MB / 1.135 GB, free: 5.508 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0004118/1.106, allocations: 117.9 kB / 1.135 GB, free: 5.48 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/1.106, allocations: 37.12 kB / 1.135 GB, free: 5.473 MB / 0.8887 GB Notification: Performance of SimCode: time 5.41e-07/1.106, allocations: 0 / 1.135 GB, free: 5.473 MB / 0.8887 GB Notification: Performance of Templates: time 0.02155/1.127, allocations: 8.979 MB / 1.144 GB, free: 4.59 MB / 0.8887 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