Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.ACLineMatrix_RLC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rline_1.terminal_n.phase.1..i.1.|Rline_1.terminal_n.phase.1..i.2.|Rline_2.terminal_n.phase.1..i.1.|Rline_2.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rline_1.terminal_n.phase.1..i.1.|Rline_1.terminal_n.phase.1..i.2.|Rline_2.terminal_n.phase.1..i.1.|Rline_2.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00164/0.00164, allocations: 108.5 kB / 16.41 MB, free: 6.453 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.001961/0.001961, allocations: 191.8 kB / 17.34 MB, free: 5.738 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.471/1.471, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.781/2.781, allocations: 474.5 MB / 0.7477 GB, free: 14.05 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 63.89 kB / 1.073 GB, free: 7.184 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8318/0.8337, allocations: 160.3 MB / 1.229 GB, free: 10.94 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC): time 0.01343/0.8472, allocations: 10.03 MB / 1.239 GB, free: 0.8672 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.005822/0.853, allocations: 3.045 MB / 1.242 GB, free: 13.81 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007616/0.8538, allocations: 31.88 kB / 1.242 GB, free: 13.78 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.002022/0.8559, allocations: 0.6958 MB / 1.243 GB, free: 13.08 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001595/0.8575, allocations: 0.7274 MB / 1.243 GB, free: 12.35 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001484/0.859, allocations: 0.6425 MB / 1.244 GB, free: 11.71 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.003255/0.8622, allocations: 2.742 MB / 1.247 GB, free: 8.961 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003144/0.8654, allocations: 2.53 MB / 1.249 GB, free: 6.395 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001782/0.8672, allocations: 1.153 MB / 1.25 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002008/0.8692, allocations: 1.375 MB / 1.252 GB, free: 3.859 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0003476/0.8696, allocations: 216 kB / 1.252 GB, free: 3.648 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00111/0.8707, allocations: 495.3 kB / 1.252 GB, free: 3.164 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.001051/0.8718, allocations: 0.9785 MB / 1.253 GB, free: 2.184 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.001199/0.873, allocations: 1.011 MB / 1.254 GB, free: 1.168 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.003721/0.8767, allocations: 3.423 MB / 1.258 GB, free: 13.74 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.8767, allocations: 0 / 1.258 GB, free: 13.74 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.803e-06/0.8767, allocations: 0 / 1.258 GB, free: 13.74 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.163e-05/0.8768, allocations: 0 / 1.258 GB, free: 13.74 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: 419 * Number of variables: 419 Notification: Performance of Generate backend data structure: time 0.003824/0.8806, allocations: 1.984 MB / 1.259 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.8807, allocations: 16.02 kB / 1.26 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006012/0.8867, allocations: 0.8931 MB / 1.26 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002209/0.8889, allocations: 1.169 MB / 1.262 GB, free: 9.574 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.123e-05/0.889, allocations: 111.3 kB / 1.262 GB, free: 9.465 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002933/0.8893, allocations: 144.3 kB / 1.262 GB, free: 9.324 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004931/0.8942, allocations: 3.017 MB / 1.265 GB, free: 6.207 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.615e-05/0.8943, allocations: 7.875 kB / 1.265 GB, free: 6.199 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002185/0.8945, allocations: 67.97 kB / 1.265 GB, free: 6.133 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002336/0.8948, allocations: 171 kB / 1.265 GB, free: 5.965 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004475/0.8992, allocations: 2.612 MB / 1.267 GB, free: 3.348 MB / 0.9825 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01777/0.917, allocations: 13.5 MB / 1.281 GB, free: 4.746 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002129/0.9192, allocations: 1.295 MB / 1.282 GB, free: 3.438 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001513/0.9207, allocations: 1.051 MB / 1.283 GB, free: 2.383 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 7.502e-05/0.9208, allocations: 16.66 kB / 1.283 GB, free: 2.363 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.013e-05/0.9208, allocations: 35.22 kB / 1.283 GB, free: 2.32 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=82): time 2.866e-06/0.9208, allocations: 4 kB / 1.283 GB, free: 2.316 MB / 0.9981 GB Notification: Performance of matching and sorting (n=139): time 0.07875/0.9996, allocations: 19.4 MB / 1.302 GB, free: 14.78 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.43e-05/0.9997, allocations: 64.72 kB / 1.302 GB, free: 14.7 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00154/1.001, allocations: 0.9223 MB / 1.303 GB, free: 13.77 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0002737/1.002, allocations: 49.7 kB / 1.303 GB, free: 13.71 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006563/1.002, allocations: 0.754 MB / 1.304 GB, free: 12.95 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005583/1.003, allocations: 0.4957 MB / 1.304 GB, free: 12.45 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006145/1.003, allocations: 291.5 kB / 1.304 GB, free: 12.16 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001867/1.004, allocations: 353.9 kB / 1.305 GB, free: 11.8 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002179/1.006, allocations: 1.335 MB / 1.306 GB, free: 10.47 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002417/1.008, allocations: 1.659 MB / 1.308 GB, free: 8.695 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00466/1.013, allocations: 3.092 MB / 1.311 GB, free: 5.484 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/1.013, allocations: 4 kB / 1.311 GB, free: 5.48 MB / 1.029 GB Notification: Performance of matching and sorting (n=191) (initialization): time 0.01297/1.026, allocations: 5.642 MB / 1.316 GB, free: 15.81 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.956e-05/1.026, allocations: 8 kB / 1.316 GB, free: 15.8 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.977e-05/1.026, allocations: 15.88 kB / 1.316 GB, free: 15.79 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009461/1.035, allocations: 2.722 MB / 1.319 GB, free: 13.05 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008482/1.036, allocations: 187.7 kB / 1.319 GB, free: 12.87 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04124/1.078, allocations: 25.73 MB / 1.344 GB, free: 2.574 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001532/1.079, allocations: 100.5 kB / 1.344 GB, free: 2.477 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001579/1.079, allocations: 56 kB / 1.344 GB, free: 2.422 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (99): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(6,12,100.0%), (6,12,100.0%), (6,24,100.0%), (6,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001259/1.081, allocations: 0.7385 MB / 1.345 GB, free: 1.676 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002676/1.081, allocations: 131.2 kB / 1.345 GB, free: 1.547 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01244/1.093, allocations: 5.388 MB / 1.351 GB, free: 12.12 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.978e-05/1.093, allocations: 16 kB / 1.351 GB, free: 12.1 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.656e-05/1.093, allocations: 20 kB / 1.351 GB, free: 12.08 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.106e-05/1.093, allocations: 7.969 kB / 1.351 GB, free: 12.07 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0171/1.111, allocations: 8.693 MB / 1.359 GB, free: 3.262 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-05/1.111, allocations: 7.984 kB / 1.359 GB, free: 3.254 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004658/1.111, allocations: 115.9 kB / 1.359 GB, free: 3.141 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008702/1.12, allocations: 2.589 MB / 1.362 GB, free: 0.5391 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001513/1.12, allocations: 28 kB / 1.362 GB, free: 0.5117 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03799/1.158, allocations: 24.18 MB / 1.385 GB, free: 7.762 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.644e-06/1.158, allocations: 7.938 kB / 1.385 GB, free: 7.754 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01173/1.17, allocations: 5.257 MB / 1.39 GB, free: 2.418 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001028/1.171, allocations: 488.2 kB / 1.391 GB, free: 1.922 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002284/1.171, allocations: 28 kB / 1.391 GB, free: 1.895 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009348/1.172, allocations: 79.89 kB / 1.391 GB, free: 1.816 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005486/1.173, allocations: 121 kB / 1.391 GB, free: 1.695 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001118/1.173, allocations: 36 kB / 1.391 GB, free: 1.66 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.0009295/1.174, allocations: 0.6473 MB / 1.392 GB, free: 1.016 MB / 1.107 GB Notification: Performance of sort global known variables: time 1.6e-07/1.174, allocations: 0 / 1.392 GB, free: 1.016 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.002686/1.176, allocations: 0.7227 MB / 1.393 GB, free: 300 kB / 1.107 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (62): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(6,12,100.0%), (6,24,100.0%), (6,6,100.0%), (10,14,84.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003313/1.177, allocations: 135.1 kB / 1.393 GB, free: 156 kB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.007661/1.184, allocations: 4.227 MB / 1.397 GB, free: 11.87 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/1.184, allocations: 0 / 1.397 GB, free: 11.87 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.005555/1.19, allocations: 2.717 MB / 1.399 GB, free: 9.105 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001649/1.192, allocations: 221.4 kB / 1.4 GB, free: 8.898 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00777/1.199, allocations: 4.022 MB / 1.404 GB, free: 4.809 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001845/1.201, allocations: 1.704 MB / 1.405 GB, free: 3.07 MB / 1.123 GB Notification: Performance of simCode: alias equations: time 0.0008539/1.202, allocations: 321.5 kB / 1.406 GB, free: 2.754 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001996/1.202, allocations: 59.44 kB / 1.406 GB, free: 2.695 MB / 1.123 GB Notification: Performance of SimCode: time 5.91e-07/1.202, allocations: 0 / 1.406 GB, free: 2.695 MB / 1.123 GB Notification: Performance of Templates: time 0.06677/1.269, allocations: 40.42 MB / 1.445 GB, free: 10.41 MB / 1.17 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches