Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_3.load1.v.1.|load_sc_3.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_3.load1.v.1.|load_sc_3.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.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.005657/0.005657, allocations: 102 kB / 15.73 MB, free: 6.051 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.001234/0.001234, allocations: 195 kB / 16.68 MB, free: 5.969 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.696/2.696, allocations: 461.9 MB / 0.7348 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 60.12 kB / 1.054 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3345/0.3357, allocations: 157.4 MB / 1.208 GB, free: 9.652 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.0308/0.3666, allocations: 26.66 MB / 1.234 GB, free: 14.89 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01357/0.3802, allocations: 8.063 MB / 1.242 GB, free: 6.809 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00232/0.3825, allocations: 115.4 kB / 1.242 GB, free: 6.695 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.006679/0.3893, allocations: 2.759 MB / 1.244 GB, free: 3.926 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.004128/0.3934, allocations: 1.589 MB / 1.246 GB, free: 2.328 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003968/0.3974, allocations: 1.678 MB / 1.248 GB, free: 0.6523 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.6609/1.058, allocations: 6.136 MB / 1.254 GB, free: 10.86 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008726/1.067, allocations: 7.321 MB / 1.261 GB, free: 9.52 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0055/1.073, allocations: 2.611 MB / 1.263 GB, free: 9.348 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006048/1.079, allocations: 2.838 MB / 1.266 GB, free: 9.004 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.001413/1.08, allocations: 0.5088 MB / 1.267 GB, free: 9.004 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004231/1.084, allocations: 1.278 MB / 1.268 GB, free: 9.004 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.003044/1.087, allocations: 2.057 MB / 1.27 GB, free: 8.855 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.003876/1.091, allocations: 2.38 MB / 1.272 GB, free: 8.27 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.01303/1.104, allocations: 8.051 MB / 1.28 GB, free: 7.555 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.655e-06/1.104, allocations: 3.312 kB / 1.28 GB, free: 7.555 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.974e-06/1.104, allocations: 0 / 1.28 GB, free: 7.555 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0003067/1.105, allocations: 5.75 kB / 1.28 GB, free: 7.551 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.01522/1.12, allocations: 4.23 MB / 1.284 GB, free: 5.898 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/1.12, allocations: 14.41 kB / 1.284 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005215/1.125, allocations: 0.7956 MB / 1.285 GB, free: 5.68 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007406/1.133, allocations: 2.576 MB / 1.288 GB, free: 5.094 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002716/1.133, allocations: 277 kB / 1.288 GB, free: 5.082 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001793/1.135, allocations: 373.7 kB / 1.288 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0147/1.149, allocations: 5.99 MB / 1.294 GB, free: 3.391 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001266/1.15, allocations: 16.44 kB / 1.294 GB, free: 3.391 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005562/1.15, allocations: 157.7 kB / 1.294 GB, free: 3.281 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007013/1.151, allocations: 285.1 kB / 1.294 GB, free: 3.25 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01112/1.162, allocations: 4.519 MB / 1.299 GB, free: 1.742 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0354/1.198, allocations: 27.49 MB / 1.326 GB, free: 11.48 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001704/1.199, allocations: 1.13 MB / 1.327 GB, free: 11.05 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001347/1.201, allocations: 1.018 MB / 1.328 GB, free: 10.64 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 8.049e-05/1.201, allocations: 11.56 kB / 1.328 GB, free: 10.64 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.777e-05/1.201, allocations: 45.19 kB / 1.328 GB, free: 10.59 MB / 1.029 GB Notification: Performance of pre-optimization done (n=110): time 3.096e-06/1.201, allocations: 0 / 1.328 GB, free: 10.59 MB / 1.029 GB Notification: Performance of matching and sorting (n=131): time 0.02302/1.224, allocations: 9.665 MB / 1.337 GB, free: 4.953 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.637e-05/1.224, allocations: 65.19 kB / 1.337 GB, free: 4.891 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002145/1.226, allocations: 1.507 MB / 1.339 GB, free: 4.078 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0001598/1.226, allocations: 46.23 kB / 1.339 GB, free: 4.031 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.001083/1.227, allocations: 1.665 MB / 1.34 GB, free: 2.57 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004395/1.228, allocations: 471 kB / 1.341 GB, free: 2.172 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005222/1.228, allocations: 325.6 kB / 1.341 GB, free: 1.992 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 9.527e-05/1.228, allocations: 305.1 kB / 1.342 GB, free: 1.691 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001257/1.23, allocations: 0.9165 MB / 1.342 GB, free: 1.207 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001617/1.231, allocations: 1.464 MB / 1.344 GB, free: 20 kB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003494/1.235, allocations: 2.547 MB / 1.346 GB, free: 14.29 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-05/1.235, allocations: 9.703 kB / 1.346 GB, free: 14.29 MB / 1.045 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.006393/1.241, allocations: 3.28 MB / 1.35 GB, free: 12.62 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 3.047e-05/1.241, allocations: 22.44 kB / 1.35 GB, free: 12.61 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.133e-05/1.241, allocations: 16.09 kB / 1.35 GB, free: 12.61 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00227/1.244, allocations: 0.7413 MB / 1.35 GB, free: 12.2 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001584/1.245, allocations: 382.7 kB / 1.351 GB, free: 12.13 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01622/1.261, allocations: 17.04 MB / 1.367 GB, free: 11.43 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002003/1.263, allocations: 95.91 kB / 1.367 GB, free: 11.34 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002116/1.264, allocations: 76 kB / 1.367 GB, free: 11.27 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (193): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (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.002723/1.266, allocations: 1.313 MB / 1.369 GB, free: 9.941 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005567/1.267, allocations: 197.7 kB / 1.369 GB, free: 9.746 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005319/1.272, allocations: 2.788 MB / 1.372 GB, free: 6.918 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.518e-05/1.272, allocations: 16 kB / 1.372 GB, free: 6.902 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.558e-05/1.272, allocations: 12.12 kB / 1.372 GB, free: 6.891 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.482e-05/1.272, allocations: 7.969 kB / 1.372 GB, free: 6.883 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0119/1.284, allocations: 6.223 MB / 1.378 GB, free: 0.5234 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/1.284, allocations: 8 kB / 1.378 GB, free: 0.5156 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001216/1.286, allocations: 231.6 kB / 1.378 GB, free: 296 kB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00203/1.288, allocations: 0.6701 MB / 1.379 GB, free: 15.59 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001136/1.288, allocations: 31.98 kB / 1.379 GB, free: 15.56 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01591/1.304, allocations: 16.79 MB / 1.395 GB, free: 13.52 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/1.304, allocations: 8 kB / 1.395 GB, free: 13.52 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006566/1.31, allocations: 4.012 MB / 1.399 GB, free: 9.395 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001433/1.312, allocations: 450.6 kB / 1.399 GB, free: 8.934 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002769/1.312, allocations: 32.12 kB / 1.399 GB, free: 8.902 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009515/1.313, allocations: 87.83 kB / 1.4 GB, free: 8.816 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003273/1.313, allocations: 116.7 kB / 1.4 GB, free: 8.699 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.387e-05/1.313, allocations: 40 kB / 1.4 GB, free: 8.66 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.001418/1.315, allocations: 0.9903 MB / 1.401 GB, free: 7.68 MB / 1.092 GB Notification: Performance of sort global known variables: time 2.555e-06/1.315, allocations: 0 / 1.401 GB, free: 7.68 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.003072/1.318, allocations: 0.6874 MB / 1.401 GB, free: 6.992 MB / 1.092 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (RL_3.phase1.i_p[1],RL_3.phase1.i_p[2],RL_3.phase2.i_p[1],RL_3.phase2.i_p[2],RL_3.phase3.i_p[1],RL_3.phase3.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 (101): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,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.0003337/1.318, allocations: 157.3 kB / 1.401 GB, free: 6.828 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.00603/1.324, allocations: 3.526 MB / 1.405 GB, free: 3.188 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/1.324, allocations: 7.938 kB / 1.405 GB, free: 3.18 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.003537/1.328, allocations: 2.288 MB / 1.407 GB, free: 0.7773 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003307/1.331, allocations: 0.6615 MB / 1.408 GB, free: 144 kB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01177/1.343, allocations: 6.459 MB / 1.414 GB, free: 9.617 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002822/1.346, allocations: 2.664 MB / 1.417 GB, free: 6.922 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.001579/1.347, allocations: 489.4 kB / 1.417 GB, free: 6.441 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003362/1.348, allocations: 115.4 kB / 1.417 GB, free: 6.328 MB / 1.107 GB Notification: Performance of SimCode: time 7.61e-07/1.348, allocations: 0 / 1.417 GB, free: 6.328 MB / 1.107 GB Notification: Performance of Templates: time 0.06268/1.41, allocations: 34.69 MB / 1.451 GB, free: 4.25 MB / 1.139 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches