Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.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_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.008058/0.008059, allocations: 170.3 kB / 16.26 MB, free: 6.613 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.429/1.429, allocations: 223.3 MB / 240.3 MB, free: 5.336 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.588/2.588, allocations: 390.9 MB / 0.6663 GB, free: 2.383 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004238/0.0004243, allocations: 12.19 kB / 0.816 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7559/0.7563, allocations: 142.4 MB / 0.9551 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.03791/0.7943, allocations: 33.98 MB / 0.9882 GB, free: 13.42 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.0183/0.8126, allocations: 9.832 MB / 0.9978 GB, free: 3.559 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003634/0.8163, allocations: 123.2 kB / 0.998 GB, free: 3.438 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.00307/0.8194, allocations: 0.7016 MB / 0.9986 GB, free: 2.73 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.006781/0.8262, allocations: 1.913 MB / 1.001 GB, free: 0.8086 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.005054/0.8313, allocations: 1.608 MB / 1.002 GB, free: 15.2 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.01571/0.847, allocations: 11.19 MB / 1.013 GB, free: 3.984 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02274/0.8698, allocations: 12.17 MB / 1.025 GB, free: 7.707 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006045/0.8759, allocations: 2.412 MB / 1.027 GB, free: 5.285 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00684/0.8828, allocations: 3.211 MB / 1.03 GB, free: 2.062 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.001813/0.8846, allocations: 280 kB / 1.031 GB, free: 1.789 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0045/0.8892, allocations: 1.267 MB / 1.032 GB, free: 0.5195 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.004407/0.8936, allocations: 2.104 MB / 1.034 GB, free: 14.41 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.006963/0.9006, allocations: 2.528 MB / 1.036 GB, free: 11.86 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.01669/0.9173, allocations: 9.855 MB / 1.046 GB, free: 1.977 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.9174, allocations: 0 / 1.046 GB, free: 1.977 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.535e-06/0.9174, allocations: 7.938 kB / 1.046 GB, free: 1.969 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0003734/0.9178, allocations: 4 kB / 1.046 GB, free: 1.965 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01271/0.9305, allocations: 4.364 MB / 1.05 GB, free: 13.53 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.9306, allocations: 11.97 kB / 1.05 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00595/0.9365, allocations: 0.9588 MB / 1.051 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006174/0.9427, allocations: 2.995 MB / 1.054 GB, free: 9.5 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00037/0.9431, allocations: 353.9 kB / 1.055 GB, free: 9.152 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001409/0.9446, allocations: 476.2 kB / 1.055 GB, free: 8.688 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01658/0.9611, allocations: 7.914 MB / 1.063 GB, free: 420 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001241/0.9613, allocations: 19.88 kB / 1.063 GB, free: 400 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006285/0.9619, allocations: 208 kB / 1.063 GB, free: 192 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005771/0.9625, allocations: 365.1 kB / 1.063 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01349/0.976, allocations: 5.933 MB / 1.069 GB, free: 9.879 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05426/1.03, allocations: 36.26 MB / 1.104 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004122/1.035, allocations: 2.142 MB / 1.107 GB, free: 232 kB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002446/1.037, allocations: 1.49 MB / 1.108 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001253/1.037, allocations: 17.31 kB / 1.108 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.494e-05/1.037, allocations: 55.81 kB / 1.108 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=157): time 3.807e-06/1.037, allocations: 0 / 1.108 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of matching and sorting (n=160): time 0.01711/1.054, allocations: 7.575 MB / 1.115 GB, free: 6.816 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.595e-05/1.054, allocations: 68.72 kB / 1.116 GB, free: 6.734 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003887/1.058, allocations: 1.86 MB / 1.117 GB, free: 4.848 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0003397/1.059, allocations: 57.7 kB / 1.117 GB, free: 4.785 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.002039/1.061, allocations: 2.13 MB / 1.12 GB, free: 2.629 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.001067/1.062, allocations: 0.5585 MB / 1.12 GB, free: 2.062 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005719/1.062, allocations: 170.1 kB / 1.12 GB, free: 1.891 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001866/1.063, allocations: 305.1 kB / 1.121 GB, free: 1.59 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002269/1.065, allocations: 1.058 MB / 1.122 GB, free: 0.5273 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002566/1.068, allocations: 1.76 MB / 1.123 GB, free: 14.45 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004965/1.073, allocations: 3.052 MB / 1.126 GB, free: 11.08 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-05/1.073, allocations: 8 kB / 1.126 GB, free: 11.07 MB / 0.8887 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.008092/1.081, allocations: 3.92 MB / 1.13 GB, free: 7.105 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 5.203e-05/1.081, allocations: 17.25 kB / 1.13 GB, free: 7.09 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.183e-05/1.081, allocations: 20.88 kB / 1.13 GB, free: 7.07 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002674/1.084, allocations: 0.9272 MB / 1.131 GB, free: 6.109 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001843/1.085, allocations: 431.2 kB / 1.131 GB, free: 5.688 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02353/1.109, allocations: 21.07 MB / 1.152 GB, free: 15.02 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002225/1.111, allocations: 127.8 kB / 1.152 GB, free: 14.89 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003436/1.112, allocations: 92 kB / 1.152 GB, free: 14.8 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (227): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,6,100.0%), (2,6,100.0%), (2,6,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%), (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 prepare postOptimizeDAE: time 0.003225/1.115, allocations: 1.642 MB / 1.154 GB, free: 13.15 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006556/1.115, allocations: 253.1 kB / 1.154 GB, free: 12.9 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006153/1.122, allocations: 3.275 MB / 1.157 GB, free: 9.57 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-05/1.122, allocations: 16 kB / 1.157 GB, free: 9.555 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.443e-05/1.122, allocations: 11.94 kB / 1.157 GB, free: 9.543 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.92e-05/1.122, allocations: 15.89 kB / 1.157 GB, free: 9.527 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01331/1.135, allocations: 7.545 MB / 1.165 GB, free: 1.824 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.284e-05/1.135, allocations: 4.562 kB / 1.165 GB, free: 1.82 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009613/1.136, allocations: 219.6 kB / 1.165 GB, free: 1.605 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002526/1.139, allocations: 0.896 MB / 1.166 GB, free: 0.6719 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001268/1.139, allocations: 32 kB / 1.166 GB, free: 0.6406 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02114/1.16, allocations: 21.04 MB / 1.186 GB, free: 9.992 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/1.16, allocations: 7.984 kB / 1.186 GB, free: 9.984 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006187/1.166, allocations: 3.379 MB / 1.19 GB, free: 6.492 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001208/1.167, allocations: 0.5369 MB / 1.19 GB, free: 5.934 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002876/1.168, allocations: 35.98 kB / 1.19 GB, free: 5.898 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/1.169, allocations: 91.89 kB / 1.19 GB, free: 5.809 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004131/1.169, allocations: 144.9 kB / 1.19 GB, free: 5.668 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/1.169, allocations: 48 kB / 1.19 GB, free: 5.621 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0018/1.171, allocations: 1.225 MB / 1.192 GB, free: 4.383 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.51e-07/1.171, allocations: 0 / 1.192 GB, free: 4.383 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.003186/1.174, allocations: 0.9023 MB / 1.193 GB, free: 3.48 MB / 0.9512 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 (109): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(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%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%), (2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003409/1.175, allocations: 159 kB / 1.193 GB, free: 3.312 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.00703/1.182, allocations: 4.417 MB / 1.197 GB, free: 14.75 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.52e-05/1.182, allocations: 8.312 kB / 1.197 GB, free: 14.74 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.004496/1.186, allocations: 2.999 MB / 1.2 GB, free: 11.58 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00539/1.192, allocations: 0.7648 MB / 1.201 GB, free: 10.82 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01876/1.21, allocations: 9.701 MB / 1.21 GB, free: 1.035 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004933/1.215, allocations: 3.209 MB / 1.213 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.002682/1.218, allocations: 0.5332 MB / 1.214 GB, free: 13.25 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005174/1.219, allocations: 147.4 kB / 1.214 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of SimCode: time 1.483e-06/1.219, allocations: 0 / 1.214 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of Templates: time 0.0807/1.299, allocations: 40.89 MB / 1.254 GB, free: 4.789 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches