Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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_R,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.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,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.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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.001017/0.001017, allocations: 99.58 kB / 16.02 MB, free: 76 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.001314/0.001314, allocations: 181.9 kB / 16.92 MB, free: 6.918 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.379/1.379, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.424/2.424, allocations: 390.9 MB / 0.667 GB, free: 2.41 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003841/0.0003842, allocations: 8 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7345/0.7349, allocations: 142.4 MB / 0.9557 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.005801/0.7407, allocations: 6.376 MB / 0.9619 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.004143/0.7449, allocations: 3.044 MB / 0.9649 GB, free: 448 kB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004698/0.7454, allocations: 24.91 kB / 0.9649 GB, free: 436 kB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003323/0.7457, allocations: 139.3 kB / 0.9651 GB, free: 312 kB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0009636/0.7467, allocations: 473.7 kB / 0.9655 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009789/0.7477, allocations: 407.4 kB / 0.9659 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001782/0.7495, allocations: 1.585 MB / 0.9675 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001946/0.7514, allocations: 1.013 MB / 0.9684 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007421/0.7522, allocations: 402.5 kB / 0.9688 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006805/0.7529, allocations: 497.5 kB / 0.9693 GB, free: 13.61 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 8.729e-05/0.753, allocations: 35.53 kB / 0.9693 GB, free: 13.61 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008976/0.7539, allocations: 445 kB / 0.9698 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002954/0.7542, allocations: 269 kB / 0.97 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0004942/0.7547, allocations: 429.1 kB / 0.9704 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001011/0.7557, allocations: 0.9207 MB / 0.9713 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.7557, allocations: 1.125 kB / 0.9713 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.443e-06/0.7557, allocations: 0 / 0.9713 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.235e-05/0.7558, allocations: 0 / 0.9713 GB, free: 12.3 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001833/0.7576, allocations: 1.007 MB / 0.9723 GB, free: 11.5 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.7577, allocations: 9.844 kB / 0.9723 GB, free: 11.5 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001687/0.7594, allocations: 246.8 kB / 0.9726 GB, free: 11.38 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008814/0.7602, allocations: 0.5501 MB / 0.9731 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.101e-05/0.7603, allocations: 51.69 kB / 0.9731 GB, free: 10.9 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/0.7604, allocations: 65.83 kB / 0.9732 GB, free: 10.88 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001647/0.7621, allocations: 1.084 MB / 0.9743 GB, free: 10.09 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.773e-05/0.7621, allocations: 6.406 kB / 0.9743 GB, free: 10.09 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.903e-05/0.7622, allocations: 33.17 kB / 0.9743 GB, free: 10.06 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001694/0.7624, allocations: 85.06 kB / 0.9744 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001246/0.7636, allocations: 0.7566 MB / 0.9751 GB, free: 9.66 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005898/0.7696, allocations: 5.903 MB / 0.9809 GB, free: 4.176 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001096/0.7707, allocations: 0.5638 MB / 0.9814 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005287/0.7712, allocations: 329.1 kB / 0.9818 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.873e-05/0.7713, allocations: 13.53 kB / 0.9818 GB, free: 3.695 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.6e-05/0.7713, allocations: 41.38 kB / 0.9818 GB, free: 3.648 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=47): time 2.675e-06/0.7713, allocations: 0 / 0.9818 GB, free: 3.648 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48): time 0.004296/0.7756, allocations: 1.992 MB / 0.9838 GB, free: 1.891 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.479e-05/0.7757, allocations: 55.84 kB / 0.9838 GB, free: 1.82 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006947/0.7764, allocations: 0.5625 MB / 0.9844 GB, free: 1.246 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.395e-05/0.7765, allocations: 37.7 kB / 0.9844 GB, free: 1.203 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000285/0.7768, allocations: 418.9 kB / 0.9848 GB, free: 0.7891 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/0.7769, allocations: 173.6 kB / 0.985 GB, free: 0.6172 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.194e-05/0.777, allocations: 61.69 kB / 0.985 GB, free: 0.5508 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.7772, allocations: 382.6 kB / 0.9854 GB, free: 172 kB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004225/0.7776, allocations: 273.9 kB / 0.9856 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005432/0.7781, allocations: 489 kB / 0.9861 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001034/0.7792, allocations: 0.8093 MB / 0.9869 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.7792, allocations: 7.938 kB / 0.9869 GB, free: 14.42 MB / 0.7481 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001917/0.7811, allocations: 1.09 MB / 0.988 GB, free: 13.31 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/0.7812, allocations: 8 kB / 0.988 GB, free: 13.3 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.7812, allocations: 8.844 kB / 0.988 GB, free: 13.29 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008452/0.782, allocations: 283.1 kB / 0.9883 GB, free: 13 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004953/0.7825, allocations: 127.8 kB / 0.9884 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007327/0.7899, allocations: 6.602 MB / 0.9948 GB, free: 5.742 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007386/0.7906, allocations: 35.97 kB / 0.9949 GB, free: 5.707 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.357e-05/0.7907, allocations: 32 kB / 0.9949 GB, free: 5.676 MB / 0.7481 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 (67): * Single equations (assignments): 63 * 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 {(2,6,100.0%), (2,4,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.0004285/0.7911, allocations: 249.5 kB / 0.9951 GB, free: 5.422 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001256/0.7913, allocations: 79.2 kB / 0.9952 GB, free: 5.344 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001647/0.7929, allocations: 0.8885 MB / 0.9961 GB, free: 4.43 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.7929, allocations: 4 kB / 0.9961 GB, free: 4.426 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.793, allocations: 7.984 kB / 0.9961 GB, free: 4.418 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.793, allocations: 4 kB / 0.9961 GB, free: 4.414 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002714/0.7957, allocations: 1.721 MB / 0.9978 GB, free: 2.605 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.245e-06/0.7957, allocations: 7.938 kB / 0.9978 GB, free: 2.598 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002752/0.796, allocations: 59.89 kB / 0.9978 GB, free: 2.539 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007686/0.7968, allocations: 267.3 kB / 0.9981 GB, free: 2.266 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.741e-05/0.7968, allocations: 16.06 kB / 0.9981 GB, free: 2.25 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006247/0.8031, allocations: 6.591 MB / 1.005 GB, free: 11.12 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.8031, allocations: 0 / 1.005 GB, free: 11.12 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001689/0.8048, allocations: 0.9951 MB / 1.006 GB, free: 10.08 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003535/0.8052, allocations: 196.1 kB / 1.006 GB, free: 9.867 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.165e-05/0.8053, allocations: 11.94 kB / 1.006 GB, free: 9.855 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004003/0.8057, allocations: 27.97 kB / 1.006 GB, free: 9.828 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.8058, allocations: 39.94 kB / 1.006 GB, free: 9.789 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.547e-05/0.8059, allocations: 20 kB / 1.006 GB, free: 9.77 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0004639/0.8063, allocations: 387.1 kB / 1.006 GB, free: 9.398 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8063, allocations: 0 / 1.006 GB, free: 9.398 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0008592/0.8072, allocations: 224 kB / 1.006 GB, free: 9.18 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (31): * Single equations (assignments): 27 * 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 {(2,2,100.0%), (2,4,100.0%), (2,2,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.0001618/0.8074, allocations: 120.7 kB / 1.006 GB, free: 9.055 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002006/0.8094, allocations: 1.264 MB / 1.008 GB, free: 7.742 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.8094, allocations: 4 kB / 1.008 GB, free: 7.738 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001242/0.8107, allocations: 0.8974 MB / 1.009 GB, free: 6.789 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001275/0.8119, allocations: 206.6 kB / 1.009 GB, free: 6.59 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002456/0.8144, allocations: 1.733 MB / 1.01 GB, free: 4.801 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006425/0.8151, allocations: 1.012 MB / 1.011 GB, free: 3.758 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001815/0.8153, allocations: 43.44 kB / 1.012 GB, free: 3.719 MB / 0.7637 GB Notification: Performance of SimCode: time 6.11e-07/0.8153, allocations: 0 / 1.012 GB, free: 3.719 MB / 0.7637 GB Notification: Performance of Templates: time 0.0247/0.84, allocations: 20.76 MB / 1.032 GB, free: 15 MB / 0.795 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches