Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.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_N,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_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,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_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007505/0.007505, allocations: 101.4 kB / 15.73 MB, free: 6.008 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.0018/0.0018, allocations: 188.3 kB / 16.67 MB, free: 5.93 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.36/1.36, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.549/2.549, allocations: 461.9 MB / 0.7348 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 63.91 kB / 1.054 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8508/0.8521, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N): time 0.02284/0.875, allocations: 20.26 MB / 1.228 GB, free: 9.309 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01117/0.8862, allocations: 6.445 MB / 1.234 GB, free: 2.848 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002276/0.8885, allocations: 87.56 kB / 1.234 GB, free: 2.762 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.00601/0.8947, allocations: 2.238 MB / 1.236 GB, free: 0.5195 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.00428/0.899, allocations: 1.182 MB / 1.237 GB, free: 15.33 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.004034/0.903, allocations: 1.282 MB / 1.238 GB, free: 14.05 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.008205/0.9113, allocations: 4.85 MB / 1.243 GB, free: 9.188 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01041/0.9218, allocations: 5.602 MB / 1.249 GB, free: 3.516 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004248/0.9261, allocations: 2.111 MB / 1.251 GB, free: 1.398 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004643/0.9307, allocations: 2.344 MB / 1.253 GB, free: 15.05 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.001564/0.9323, allocations: 432 kB / 1.253 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003366/0.9357, allocations: 0.9987 MB / 1.254 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.003245/0.939, allocations: 1.665 MB / 1.256 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.004414/0.9434, allocations: 1.914 MB / 1.258 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.009664/0.9531, allocations: 6.519 MB / 1.264 GB, free: 3.5 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.9532, allocations: 4 kB / 1.264 GB, free: 3.496 MB / 0.9825 GB Notification: Performance of FrontEnd: time 4.358e-06/0.9532, allocations: 0 / 1.264 GB, free: 3.496 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0002636/0.9534, allocations: 3.938 kB / 1.264 GB, free: 3.492 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.0108/0.9642, allocations: 3.46 MB / 1.268 GB, free: 15.97 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.9643, allocations: 8.031 kB / 1.268 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004442/0.9688, allocations: 0.6371 MB / 1.268 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004801/0.9736, allocations: 2.037 MB / 1.27 GB, free: 13.22 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002258/0.9739, allocations: 222.3 kB / 1.271 GB, free: 13 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001095/0.975, allocations: 296.2 kB / 1.271 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01099/0.986, allocations: 4.894 MB / 1.276 GB, free: 7.621 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001286/0.9861, allocations: 11.88 kB / 1.276 GB, free: 7.609 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007141/0.9869, allocations: 128 kB / 1.276 GB, free: 7.484 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004488/0.9873, allocations: 225.7 kB / 1.276 GB, free: 7.262 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007383/0.9947, allocations: 3.75 MB / 1.28 GB, free: 3.5 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02632/1.021, allocations: 21.4 MB / 1.3 GB, free: 12.11 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001944/1.023, allocations: 1.304 MB / 1.302 GB, free: 10.79 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001461/1.025, allocations: 1.062 MB / 1.303 GB, free: 9.73 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 8.168e-05/1.025, allocations: 12.94 kB / 1.303 GB, free: 9.719 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.833e-05/1.025, allocations: 51.5 kB / 1.303 GB, free: 9.66 MB / 1.029 GB Notification: Performance of pre-optimization done (n=107): time 3.296e-06/1.025, allocations: 0 / 1.303 GB, free: 9.66 MB / 1.029 GB Notification: Performance of matching and sorting (n=138): time 0.02392/1.049, allocations: 8.66 MB / 1.311 GB, free: 0.9375 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.179e-05/1.049, allocations: 68.72 kB / 1.311 GB, free: 0.8594 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001977/1.051, allocations: 1.13 MB / 1.312 GB, free: 15.72 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0001237/1.051, allocations: 49.7 kB / 1.313 GB, free: 15.67 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008706/1.052, allocations: 1.3 MB / 1.314 GB, free: 14.35 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004696/1.052, allocations: 477.2 kB / 1.314 GB, free: 13.88 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000519/1.053, allocations: 295.2 kB / 1.315 GB, free: 13.59 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001083/1.053, allocations: 309.1 kB / 1.315 GB, free: 13.28 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001305/1.054, allocations: 0.9096 MB / 1.316 GB, free: 12.37 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001552/1.056, allocations: 1.326 MB / 1.317 GB, free: 10.88 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003035/1.059, allocations: 2.426 MB / 1.319 GB, free: 8.281 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.214e-05/1.059, allocations: 7.984 kB / 1.319 GB, free: 8.273 MB / 1.045 GB Notification: Performance of matching and sorting (n=203) (initialization): time 0.006094/1.065, allocations: 3.463 MB / 1.323 GB, free: 4.789 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 3.278e-05/1.065, allocations: 15.94 kB / 1.323 GB, free: 4.773 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.085e-05/1.065, allocations: 12 kB / 1.323 GB, free: 4.762 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003285/1.068, allocations: 1.186 MB / 1.324 GB, free: 3.57 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009612/1.069, allocations: 255.6 kB / 1.324 GB, free: 3.32 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01746/1.087, allocations: 13.85 MB / 1.338 GB, free: 5.047 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00137/1.088, allocations: 91.97 kB / 1.338 GB, free: 4.957 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002045/1.088, allocations: 63.98 kB / 1.338 GB, free: 4.895 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (132): * Single equations (assignments): 129 * 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 {(5,17,84.0%), (5,17,92.0%), (5,25,88.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001887/1.09, allocations: 1.114 MB / 1.339 GB, free: 3.77 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000406/1.091, allocations: 158.1 kB / 1.339 GB, free: 3.613 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005648/1.096, allocations: 3.165 MB / 1.342 GB, free: 432 kB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.712e-05/1.096, allocations: 16 kB / 1.342 GB, free: 416 kB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-05/1.096, allocations: 15.94 kB / 1.342 GB, free: 400 kB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/1.096, allocations: 11.97 kB / 1.342 GB, free: 388 kB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01063/1.107, allocations: 6.241 MB / 1.348 GB, free: 10 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-05/1.107, allocations: 8 kB / 1.348 GB, free: 9.992 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000585/1.108, allocations: 143.8 kB / 1.348 GB, free: 9.852 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002966/1.111, allocations: 1.075 MB / 1.35 GB, free: 8.77 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001158/1.111, allocations: 27.98 kB / 1.35 GB, free: 8.742 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01672/1.128, allocations: 13.53 MB / 1.363 GB, free: 10.79 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.263e-06/1.128, allocations: 8 kB / 1.363 GB, free: 10.79 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005311/1.133, allocations: 3.154 MB / 1.366 GB, free: 7.543 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008143/1.134, allocations: 434.9 kB / 1.366 GB, free: 7.098 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002886/1.134, allocations: 31.94 kB / 1.366 GB, free: 7.066 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008211/1.135, allocations: 83.89 kB / 1.366 GB, free: 6.984 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003347/1.135, allocations: 120.7 kB / 1.367 GB, free: 6.867 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.862e-05/1.135, allocations: 40 kB / 1.367 GB, free: 6.828 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.001069/1.136, allocations: 0.7709 MB / 1.367 GB, free: 6.055 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.6e-07/1.136, allocations: 0 / 1.367 GB, free: 6.055 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.002094/1.139, allocations: 0.6562 MB / 1.368 GB, free: 5.398 MB / 1.092 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 simulation (70): * Single equations (assignments): 67 * 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 {(5,17,84.0%), (5,25,88.0%), (5,17,92.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002475/1.139, allocations: 139.1 kB / 1.368 GB, free: 5.254 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.004794/1.144, allocations: 3.138 MB / 1.371 GB, free: 2.074 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 6.082e-06/1.144, allocations: 0 / 1.371 GB, free: 2.074 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.002943/1.147, allocations: 1.951 MB / 1.373 GB, free: 88 kB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002136/1.149, allocations: 0.5005 MB / 1.374 GB, free: 15.6 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009559/1.158, allocations: 5.372 MB / 1.379 GB, free: 10.15 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002699/1.161, allocations: 2.336 MB / 1.381 GB, free: 7.781 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.001022/1.162, allocations: 350.1 kB / 1.381 GB, free: 7.434 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002592/1.162, allocations: 87.44 kB / 1.381 GB, free: 7.348 MB / 1.107 GB Notification: Performance of SimCode: time 2.144e-06/1.162, allocations: 0 / 1.381 GB, free: 7.348 MB / 1.107 GB Notification: Performance of Templates: time 0.05162/1.214, allocations: 33.19 MB / 1.414 GB, free: 6.598 MB / 1.139 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches