Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.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_9_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_9_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.001084/0.001084, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.009865/0.009866, allocations: 169.5 kB / 16.26 MB, free: 6.652 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: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.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.54/2.54, allocations: 390.9 MB / 0.6663 GB, free: 2.371 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003492/0.0003494, allocations: 12 kB / 0.816 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7858/0.7862, allocations: 142.4 MB / 0.9551 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N): time 0.0231/0.8093, allocations: 19.5 MB / 0.9741 GB, free: 8.664 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01324/0.8226, allocations: 6.372 MB / 0.9803 GB, free: 3.621 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002709/0.8253, allocations: 71.53 kB / 0.9804 GB, free: 3.598 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001803/0.8272, allocations: 408 kB / 0.9808 GB, free: 3.25 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.004018/0.8312, allocations: 1.113 MB / 0.9819 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.003588/0.8348, allocations: 1.086 MB / 0.9829 GB, free: 1.469 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.008337/0.8432, allocations: 6.98 MB / 0.9897 GB, free: 11.73 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01263/0.8558, allocations: 7.259 MB / 0.9968 GB, free: 4.391 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00361/0.8595, allocations: 1.482 MB / 0.9983 GB, free: 2.902 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004448/0.8639, allocations: 2.032 MB / 1 GB, free: 0.8633 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.001097/0.8651, allocations: 176 kB / 1 GB, free: 0.6914 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003274/0.8684, allocations: 0.9164 MB / 1.001 GB, free: 15.77 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.003204/0.8716, allocations: 1.352 MB / 1.003 GB, free: 14.42 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.004601/0.8762, allocations: 1.576 MB / 1.004 GB, free: 12.83 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.007859/0.8841, allocations: 6.206 MB / 1.01 GB, free: 6.602 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.8841, allocations: 4 kB / 1.01 GB, free: 6.598 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.454e-06/0.8841, allocations: 4 kB / 1.01 GB, free: 6.594 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 0.0001541/0.8843, allocations: 0 / 1.01 GB, free: 6.594 MB / 0.7637 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.00604/0.8903, allocations: 2.82 MB / 1.013 GB, free: 3.711 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.8904, allocations: 8.031 kB / 1.013 GB, free: 3.703 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003584/0.894, allocations: 0.6449 MB / 1.014 GB, free: 3.055 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003267/0.8973, allocations: 1.936 MB / 1.016 GB, free: 1.059 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000165/0.8974, allocations: 222.3 kB / 1.016 GB, free: 0.8398 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004446/0.8979, allocations: 292.3 kB / 1.016 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007762/0.9057, allocations: 4.89 MB / 1.021 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.381e-05/0.9058, allocations: 7.938 kB / 1.021 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002965/0.9061, allocations: 132 kB / 1.021 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004298/0.9065, allocations: 229.7 kB / 1.021 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006095/0.9126, allocations: 3.754 MB / 1.025 GB, free: 7.336 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02133/0.9339, allocations: 21.62 MB / 1.046 GB, free: 15.72 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001791/0.9358, allocations: 1.302 MB / 1.047 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001474/0.9373, allocations: 1.042 MB / 1.048 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 6.44e-05/0.9373, allocations: 9 kB / 1.048 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.333e-05/0.9374, allocations: 47.56 kB / 1.048 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=107): time 3.727e-06/0.9374, allocations: 0 / 1.048 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of matching and sorting (n=138): time 0.02524/0.9627, allocations: 8.719 MB / 1.057 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.938e-05/0.9627, allocations: 64.72 kB / 1.057 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001556/0.9643, allocations: 1.13 MB / 1.058 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0001598/0.9645, allocations: 49.64 kB / 1.058 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007996/0.9653, allocations: 1.3 MB / 1.059 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004232/0.9657, allocations: 481.2 kB / 1.06 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001944/0.9659, allocations: 129.6 kB / 1.06 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.386e-05/0.966, allocations: 309.1 kB / 1.06 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001329/0.9673, allocations: 0.9135 MB / 1.061 GB, free: 100 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001659/0.969, allocations: 1.322 MB / 1.062 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003105/0.9721, allocations: 2.43 MB / 1.065 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.745e-06/0.9722, allocations: 4 kB / 1.065 GB, free: 12 MB / 0.8262 GB Notification: Performance of matching and sorting (n=203) (initialization): time 0.006359/0.9785, allocations: 3.467 MB / 1.068 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.684e-05/0.9786, allocations: 9.562 kB / 1.068 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.636e-05/0.9786, allocations: 15.98 kB / 1.068 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003244/0.9819, allocations: 1.188 MB / 1.069 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/0.9829, allocations: 255.6 kB / 1.07 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01668/0.9996, allocations: 12.76 MB / 1.082 GB, free: 9.898 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001362/1.001, allocations: 87.97 kB / 1.082 GB, free: 9.812 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001216/1.001, allocations: 68 kB / 1.082 GB, free: 9.746 MB / 0.8419 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.002213/1.003, allocations: 1.118 MB / 1.083 GB, free: 8.617 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003816/1.004, allocations: 158.1 kB / 1.083 GB, free: 8.461 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005999/1.01, allocations: 3.181 MB / 1.086 GB, free: 5.258 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.602e-05/1.01, allocations: 16 kB / 1.086 GB, free: 5.242 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-05/1.01, allocations: 12 kB / 1.086 GB, free: 5.23 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.608e-05/1.01, allocations: 7.922 kB / 1.087 GB, free: 5.223 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0104/1.02, allocations: 6.249 MB / 1.093 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-05/1.02, allocations: 4 kB / 1.093 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005828/1.021, allocations: 147.8 kB / 1.093 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002908/1.024, allocations: 1.071 MB / 1.094 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001047/1.024, allocations: 28 kB / 1.094 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0161/1.04, allocations: 12.45 MB / 1.106 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/1.04, allocations: 7.938 kB / 1.106 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005697/1.046, allocations: 3.166 MB / 1.109 GB, free: 13.47 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008013/1.047, allocations: 427.1 kB / 1.109 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001876/1.047, allocations: 28 kB / 1.11 GB, free: 13 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008467/1.048, allocations: 91.83 kB / 1.11 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003839/1.048, allocations: 116.7 kB / 1.11 GB, free: 12.8 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.354e-05/1.048, allocations: 40 kB / 1.11 GB, free: 12.76 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001021/1.049, allocations: 0.7671 MB / 1.111 GB, free: 11.99 MB / 0.8731 GB Notification: Performance of sort global known variables: time 4.2e-07/1.049, allocations: 4 kB / 1.111 GB, free: 11.99 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001984/1.051, allocations: 0.6562 MB / 1.111 GB, free: 11.33 MB / 0.8731 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.0002344/1.051, allocations: 143.1 kB / 1.111 GB, free: 11.18 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.004817/1.056, allocations: 3.127 MB / 1.114 GB, free: 8.016 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 6.042e-06/1.056, allocations: 0 / 1.114 GB, free: 8.016 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.003136/1.059, allocations: 1.983 MB / 1.116 GB, free: 6.004 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003368/1.063, allocations: 471.5 kB / 1.117 GB, free: 5.547 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009802/1.073, allocations: 6.753 MB / 1.123 GB, free: 14.71 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002331/1.075, allocations: 2.34 MB / 1.126 GB, free: 12.34 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001148/1.076, allocations: 350.1 kB / 1.126 GB, free: 12 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002204/1.076, allocations: 91.42 kB / 1.126 GB, free: 11.91 MB / 0.8887 GB Notification: Performance of SimCode: time 1.002e-06/1.076, allocations: 3.938 kB / 1.126 GB, free: 11.9 MB / 0.8887 GB Notification: Performance of Templates: time 0.05216/1.129, allocations: 30.94 MB / 1.156 GB, free: 13.38 MB / 0.92 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches