Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.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.ThreePhasesBalanced.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001552/0.001551, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001767/0.001767, allocations: 194.1 kB / 16.53 MB, free: 6.391 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.52/1.52, allocations: 222.9 MB / 240.2 MB, free: 4.387 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.505/2.505, allocations: 390.2 MB / 0.6647 GB, free: 236 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002191/0.002191, allocations: 59.91 kB / 0.8125 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7959/0.7981, allocations: 140.3 MB / 0.9496 GB, free: 9.234 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01552/0.8137, allocations: 14.05 MB / 0.9633 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01721/0.8309, allocations: 9.407 MB / 0.9725 GB, free: 6.941 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002268/0.8332, allocations: 58.91 kB / 0.9725 GB, free: 6.918 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.004679/0.838, allocations: 1.668 MB / 0.9742 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.006973/0.845, allocations: 1.543 MB / 0.9757 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002782/0.8478, allocations: 0.7512 MB / 0.9764 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.004655/0.8524, allocations: 2.51 MB / 0.9789 GB, free: 2.371 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002812/0.8553, allocations: 1.423 MB / 0.9803 GB, free: 1.559 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002349/0.8576, allocations: 1.038 MB / 0.9813 GB, free: 0.9961 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002436/0.8601, allocations: 1.148 MB / 0.9824 GB, free: 112 kB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0005948/0.8607, allocations: 164 kB / 0.9825 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002369/0.8631, allocations: 0.7877 MB / 0.9833 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0009881/0.8641, allocations: 0.6154 MB / 0.9839 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.002036/0.8661, allocations: 0.9445 MB / 0.9848 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.004274/0.8704, allocations: 2.73 MB / 0.9875 GB, free: 10.86 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.8704, allocations: 0 / 0.9875 GB, free: 10.86 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.813e-06/0.8705, allocations: 0 / 0.9875 GB, free: 10.86 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 0.0001037/0.8706, allocations: 0 / 0.9875 GB, free: 10.86 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.004869/0.8754, allocations: 2.143 MB / 0.9896 GB, free: 8.656 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.8755, allocations: 12.03 kB / 0.9896 GB, free: 8.645 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01157/0.8871, allocations: 2.077 MB / 0.9916 GB, free: 6.562 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003656/0.8908, allocations: 1.193 MB / 0.9928 GB, free: 5.312 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.365e-05/0.8909, allocations: 102.7 kB / 0.9929 GB, free: 5.211 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003164/0.8912, allocations: 120.1 kB / 0.993 GB, free: 5.094 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006184/0.8974, allocations: 2.674 MB / 0.9956 GB, free: 2.27 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.176e-05/0.8975, allocations: 7.844 kB / 0.9956 GB, free: 2.262 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000168/0.8977, allocations: 55.98 kB / 0.9957 GB, free: 2.207 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006961/0.8984, allocations: 182.1 kB / 0.9959 GB, free: 2.027 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00779/0.9062, allocations: 2.795 MB / 0.9986 GB, free: 15.22 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01554/0.9217, allocations: 10.52 MB / 1.009 GB, free: 4.121 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007093/0.9289, allocations: 2.529 MB / 1.011 GB, free: 1.527 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003058/0.932, allocations: 1.28 MB / 1.013 GB, free: 244 kB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 6.14e-05/0.932, allocations: 13 kB / 1.013 GB, free: 232 kB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.083e-05/0.9321, allocations: 47.5 kB / 1.013 GB, free: 176 kB / 0.7637 GB Notification: Performance of pre-optimization done (n=89): time 2.535e-06/0.9321, allocations: 3.938 kB / 1.013 GB, free: 172 kB / 0.7637 GB Notification: Performance of matching and sorting (n=131): time 0.04726/0.9793, allocations: 13.34 MB / 1.026 GB, free: 2.613 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.421e-05/0.9795, allocations: 64.72 kB / 1.026 GB, free: 2.535 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001656/0.9811, allocations: 1.113 MB / 1.027 GB, free: 1.406 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0002022/0.9813, allocations: 53.7 kB / 1.027 GB, free: 1.348 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005245/0.9819, allocations: 0.7155 MB / 1.028 GB, free: 0.625 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004838/0.9824, allocations: 449.5 kB / 1.028 GB, free: 184 kB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005128/0.9829, allocations: 263.5 kB / 1.028 GB, free: 15.91 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001569/0.983, allocations: 361.9 kB / 1.029 GB, free: 15.55 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003362/0.9864, allocations: 1.342 MB / 1.03 GB, free: 14.21 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003518/0.9899, allocations: 1.604 MB / 1.031 GB, free: 12.51 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006958/0.9969, allocations: 2.994 MB / 1.034 GB, free: 9.422 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/0.997, allocations: 4 kB / 1.034 GB, free: 9.418 MB / 0.795 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01218/1.009, allocations: 4.438 MB / 1.039 GB, free: 4.926 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.107e-05/1.009, allocations: 9.25 kB / 1.039 GB, free: 4.918 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.169e-05/1.009, allocations: 12 kB / 1.039 GB, free: 4.906 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005251/1.015, allocations: 1.439 MB / 1.04 GB, free: 3.426 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002106/1.017, allocations: 439.2 kB / 1.041 GB, free: 2.996 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02953/1.046, allocations: 26.7 MB / 1.067 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002994/1.049, allocations: 299.5 kB / 1.067 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001929/1.049, allocations: 72.08 kB / 1.067 GB, free: 6.105 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(2,4,100.0%), (1,1,100.0%), (2,4,100.0%), (3,9,100.0%), (1,1,100.0%), (1,1,100.0%), (3,9,100.0%), (3,9,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001079/1.051, allocations: 431.2 kB / 1.067 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003747/1.051, allocations: 162.1 kB / 1.068 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01157/1.062, allocations: 4.461 MB / 1.072 GB, free: 0.9961 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.896e-05/1.063, allocations: 12 kB / 1.072 GB, free: 0.9844 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.682e-05/1.063, allocations: 12 kB / 1.072 GB, free: 0.9727 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.56e-05/1.063, allocations: 8.156 kB / 1.072 GB, free: 0.9648 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01535/1.078, allocations: 6.789 MB / 1.079 GB, free: 10 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-05/1.078, allocations: 7.938 kB / 1.079 GB, free: 9.996 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001762/1.08, allocations: 383.7 kB / 1.079 GB, free: 9.621 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004622/1.084, allocations: 1.31 MB / 1.08 GB, free: 8.27 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001405/1.085, allocations: 35.97 kB / 1.08 GB, free: 8.234 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02664/1.111, allocations: 25.51 MB / 1.105 GB, free: 12.9 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.277e-06/1.111, allocations: 11.95 kB / 1.105 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01153/1.123, allocations: 4.204 MB / 1.109 GB, free: 8.594 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001105/1.124, allocations: 451 kB / 1.11 GB, free: 8.133 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005124/1.124, allocations: 28 kB / 1.11 GB, free: 8.105 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002456/1.127, allocations: 307.7 kB / 1.11 GB, free: 7.805 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005851/1.128, allocations: 132.6 kB / 1.11 GB, free: 7.672 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001521/1.128, allocations: 51.97 kB / 1.11 GB, free: 7.621 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001224/1.129, allocations: 0.7487 MB / 1.111 GB, free: 6.871 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.9e-07/1.129, allocations: 4 kB / 1.111 GB, free: 6.867 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.002463/1.131, allocations: 0.5703 MB / 1.112 GB, free: 6.297 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (67): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (1,1,100.0%), (3,7,100.0%), (2,4,100.0%), (3,9,100.0%), (2,4,100.0%), (3,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003549/1.132, allocations: 141.1 kB / 1.112 GB, free: 6.152 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0122/1.144, allocations: 5.513 MB / 1.117 GB, free: 480 kB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.018e-05/1.144, allocations: 8.125 kB / 1.117 GB, free: 472 kB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.007296/1.151, allocations: 3.491 MB / 1.12 GB, free: 12.8 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002935/1.154, allocations: 0.544 MB / 1.121 GB, free: 12.27 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008915/1.163, allocations: 4.027 MB / 1.125 GB, free: 8.188 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001529/1.165, allocations: 1.47 MB / 1.126 GB, free: 6.688 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001834/1.167, allocations: 429.6 kB / 1.127 GB, free: 6.262 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003851/1.167, allocations: 111.4 kB / 1.127 GB, free: 6.152 MB / 0.8887 GB Notification: Performance of SimCode: time 7.21e-07/1.167, allocations: 0 / 1.127 GB, free: 6.152 MB / 0.8887 GB Notification: Performance of Templates: time 0.06578/1.233, allocations: 38.97 MB / 1.165 GB, free: 15.62 MB / 0.9356 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches