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.008939/0.008939, allocations: 98.39 kB / 15.73 MB, free: 5.535 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.001717/0.001717, allocations: 185 kB / 16.67 MB, free: 5.473 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.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 15.08 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.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 63.91 kB / 0.9508 GB, free: 7.668 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8936/0.895, allocations: 140.4 MB / 1.088 GB, free: 5.793 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.006667/0.9017, allocations: 5.545 MB / 1.093 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003941/0.9056, allocations: 2.646 MB / 1.096 GB, free: 220 kB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003729/0.906, allocations: 29.5 kB / 1.096 GB, free: 204 kB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.002006/0.9081, allocations: 0.6716 MB / 1.097 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.001137/0.9093, allocations: 425.8 kB / 1.097 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001218/0.9105, allocations: 409.3 kB / 1.097 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.001208/0.9117, allocations: 0.9583 MB / 1.098 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006921/0.9124, allocations: 473.6 kB / 1.099 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005812/0.913, allocations: 376.7 kB / 1.099 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005795/0.9136, allocations: 402.6 kB / 1.1 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 9.538e-05/0.9137, allocations: 47.09 kB / 1.1 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007345/0.9144, allocations: 360.8 kB / 1.1 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002802/0.9147, allocations: 250.8 kB / 1.1 GB, free: 14.17 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0003717/0.9151, allocations: 354.4 kB / 1.1 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001262/0.9164, allocations: 0.9758 MB / 1.101 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.9164, allocations: 0 / 1.101 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.263e-06/0.9164, allocations: 0 / 1.101 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.272e-05/0.9164, allocations: 0 / 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.001669/0.9181, allocations: 0.9868 MB / 1.102 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.9181, allocations: 9.438 kB / 1.102 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001471/0.9196, allocations: 189.9 kB / 1.103 GB, free: 12.87 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009139/0.9205, allocations: 0.5223 MB / 1.103 GB, free: 12.52 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.339e-05/0.9206, allocations: 38.11 kB / 1.103 GB, free: 12.5 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00016/0.9208, allocations: 60.97 kB / 1.103 GB, free: 12.48 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001191/0.922, allocations: 0.8269 MB / 1.104 GB, free: 12 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.552e-05/0.922, allocations: 11.3 kB / 1.104 GB, free: 11.99 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.066e-05/0.9221, allocations: 26.83 kB / 1.104 GB, free: 11.97 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001819/0.9223, allocations: 64.28 kB / 1.104 GB, free: 11.97 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009049/0.9232, allocations: 0.5728 MB / 1.105 GB, free: 11.77 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004325/0.9275, allocations: 4.574 MB / 1.109 GB, free: 7.867 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004834/0.928, allocations: 289.8 kB / 1.109 GB, free: 7.75 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003623/0.9284, allocations: 231.5 kB / 1.11 GB, free: 7.656 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 3.584e-05/0.9284, allocations: 7.266 kB / 1.11 GB, free: 7.652 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.423e-05/0.9285, allocations: 42.64 kB / 1.11 GB, free: 7.605 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=33): time 2.444e-06/0.9285, allocations: 0 / 1.11 GB, free: 7.605 MB / 0.8731 GB Notification: Performance of matching and sorting (n=40): time 0.005665/0.9341, allocations: 2.622 MB / 1.112 GB, free: 6.227 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.139e-05/0.9342, allocations: 56.28 kB / 1.112 GB, free: 6.164 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006085/0.9348, allocations: 464.8 kB / 1.113 GB, free: 5.938 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.858e-05/0.9349, allocations: 33.31 kB / 1.113 GB, free: 5.902 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002629/0.9351, allocations: 345.2 kB / 1.113 GB, free: 5.621 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001337/0.9353, allocations: 146.3 kB / 1.113 GB, free: 5.508 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002208/0.9355, allocations: 101.2 kB / 1.113 GB, free: 5.453 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001902/0.9357, allocations: 364.9 kB / 1.114 GB, free: 5.117 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004712/0.9362, allocations: 239.1 kB / 1.114 GB, free: 5.035 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005167/0.9367, allocations: 409 kB / 1.114 GB, free: 4.734 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008839/0.9376, allocations: 0.6777 MB / 1.115 GB, free: 4.297 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.9376, allocations: 1.031 kB / 1.115 GB, free: 4.297 MB / 0.8731 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001728/0.9393, allocations: 0.9164 MB / 1.116 GB, free: 3.914 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.9394, allocations: 6.891 kB / 1.116 GB, free: 3.914 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.9394, allocations: 6.469 kB / 1.116 GB, free: 3.914 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007981/0.9402, allocations: 231.7 kB / 1.116 GB, free: 3.84 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005261/0.9407, allocations: 121.1 kB / 1.116 GB, free: 3.824 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005068/0.9458, allocations: 5.333 MB / 1.121 GB, free: 15.16 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005672/0.9464, allocations: 30.66 kB / 1.121 GB, free: 15.15 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.088e-05/0.9465, allocations: 26.41 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.0003893/0.9469, allocations: 222.6 kB / 1.122 GB, free: 14.98 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001623/0.947, allocations: 59.41 kB / 1.122 GB, free: 14.95 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001648/0.9487, allocations: 0.7782 MB / 1.122 GB, free: 14.6 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.602e-06/0.9487, allocations: 8.031 kB / 1.123 GB, free: 14.6 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.9487, allocations: 3.312 kB / 1.123 GB, free: 14.6 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.9487, allocations: 1.969 kB / 1.123 GB, free: 14.6 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002724/0.9514, allocations: 1.499 MB / 1.124 GB, free: 13.81 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.9515, allocations: 3.531 kB / 1.124 GB, free: 13.81 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003774/0.9518, allocations: 70.73 kB / 1.124 GB, free: 13.8 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007177/0.9526, allocations: 203.3 kB / 1.124 GB, free: 13.74 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.232e-05/0.9526, allocations: 9.016 kB / 1.124 GB, free: 13.74 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004851/0.9575, allocations: 5.281 MB / 1.129 GB, free: 9.09 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.9575, allocations: 1.156 kB / 1.129 GB, free: 9.09 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001848/0.9594, allocations: 1.133 MB / 1.131 GB, free: 8.508 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003138/0.9597, allocations: 166.7 kB / 1.131 GB, free: 8.371 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001135/0.9598, allocations: 30.22 kB / 1.131 GB, free: 8.348 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003572/0.9602, allocations: 23.22 kB / 1.131 GB, free: 8.344 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.492e-05/0.9603, allocations: 35.67 kB / 1.131 GB, free: 8.336 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.961e-05/0.9603, allocations: 17.44 kB / 1.131 GB, free: 8.328 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0003959/0.9607, allocations: 315.4 kB / 1.131 GB, free: 8.18 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.1e-07/0.9607, allocations: 1.5 kB / 1.131 GB, free: 8.18 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0008084/0.9615, allocations: 165.4 kB / 1.131 GB, free: 8.164 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.0002426/0.9618, allocations: 115.1 kB / 1.131 GB, free: 8.062 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002239/0.964, allocations: 1.017 MB / 1.132 GB, free: 7.473 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 7.854e-06/0.9641, allocations: 0 / 1.132 GB, free: 7.473 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0012/0.9653, allocations: 0.6737 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.001087/0.9664, allocations: 189.4 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.00252/0.9689, allocations: 1.257 MB / 1.134 GB, free: 6.23 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006636/0.9696, allocations: 0.9526 MB / 1.135 GB, free: 5.5 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.000405/0.97, allocations: 112.6 kB / 1.135 GB, free: 5.477 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.9701, allocations: 37.44 kB / 1.135 GB, free: 5.469 MB / 0.8887 GB Notification: Performance of SimCode: time 4.71e-07/0.9701, allocations: 1.062 kB / 1.135 GB, free: 5.469 MB / 0.8887 GB Notification: Performance of Templates: time 0.01986/0.99, allocations: 8.979 MB / 1.144 GB, free: 4.598 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