Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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.ACLineMedium,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.ACLineMedium") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,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.ACLineMedium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001245/0.001245, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.508/1.508, allocations: 223.2 MB / 239.9 MB, free: 5.371 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.489/2.489, allocations: 390.3 MB / 0.6653 GB, free: 3.008 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003586/0.000359, allocations: 11.94 kB / 0.8145 GB, free: 14.3 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9149/0.9152, allocations: 142.3 MB / 0.9535 GB, free: 8.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.01275/0.928, allocations: 12.49 MB / 0.9657 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01556/0.9437, allocations: 9.441 MB / 0.9749 GB, free: 7.328 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002553/0.9463, allocations: 50.34 kB / 0.975 GB, free: 7.305 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001101/0.9474, allocations: 266.2 kB / 0.9752 GB, free: 7.07 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.007971/0.9554, allocations: 1.463 MB / 0.9767 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002487/0.9579, allocations: 0.5239 MB / 0.9772 GB, free: 5.5 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.004589/0.9625, allocations: 1.746 MB / 0.9789 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003486/0.966, allocations: 1.8 MB / 0.9806 GB, free: 3.273 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002731/0.9687, allocations: 1.193 MB / 0.9818 GB, free: 2.652 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001556/0.9703, allocations: 0.8557 MB / 0.9826 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001674/0.9705, allocations: 70.31 kB / 0.9827 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001171/0.9717, allocations: 387.6 kB / 0.9831 GB, free: 1.84 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0004324/0.9721, allocations: 462.6 kB / 0.9835 GB, free: 1.387 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0004179/0.9725, allocations: 356.7 kB / 0.9839 GB, free: 1.031 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.002005/0.9745, allocations: 2.078 MB / 0.9859 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.9745, allocations: 0 / 0.9859 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.294e-06/0.9746, allocations: 0 / 0.9859 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 2.839e-05/0.9746, allocations: 0 / 0.9859 GB, free: 14.95 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.003465/0.9781, allocations: 1.851 MB / 0.9877 GB, free: 13.04 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.9781, allocations: 8.031 kB / 0.9877 GB, free: 13.04 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01116/0.9893, allocations: 2.19 MB / 0.9898 GB, free: 10.84 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002946/0.9923, allocations: 1.163 MB / 0.991 GB, free: 9.621 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.895e-05/0.9924, allocations: 86.27 kB / 0.9911 GB, free: 9.535 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002384/0.9926, allocations: 120 kB / 0.9912 GB, free: 9.418 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005447/0.9981, allocations: 2.67 MB / 0.9938 GB, free: 6.598 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.868e-05/0.9981, allocations: 11.84 kB / 0.9938 GB, free: 6.586 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001635/0.9983, allocations: 55.97 kB / 0.9938 GB, free: 6.531 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006453/0.9989, allocations: 198.1 kB / 0.994 GB, free: 6.336 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007161/1.006, allocations: 2.838 MB / 0.9968 GB, free: 3.488 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01595/1.022, allocations: 10.56 MB / 1.007 GB, free: 8.344 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006766/1.029, allocations: 2.383 MB / 1.009 GB, free: 5.938 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001186/1.029, allocations: 12.98 kB / 1.009 GB, free: 5.926 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.845e-05/1.029, allocations: 43.56 kB / 1.009 GB, free: 5.875 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=89): time 2.595e-06/1.029, allocations: 0 / 1.009 GB, free: 5.875 MB / 0.7637 GB Notification: Performance of matching and sorting (n=153): time 0.06158/1.091, allocations: 16.5 MB / 1.026 GB, free: 5.223 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.798e-05/1.091, allocations: 68.72 kB / 1.026 GB, free: 5.145 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001711/1.093, allocations: 1.156 MB / 1.027 GB, free: 3.977 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0003411/1.093, allocations: 49.7 kB / 1.027 GB, free: 3.922 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005503/1.093, allocations: 0.7476 MB / 1.028 GB, free: 3.168 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.000604/1.094, allocations: 0.5158 MB / 1.028 GB, free: 2.645 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/1.094, allocations: 32 kB / 1.028 GB, free: 2.613 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002022/1.094, allocations: 365.9 kB / 1.028 GB, free: 2.25 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004253/1.099, allocations: 1.522 MB / 1.03 GB, free: 0.7266 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004119/1.103, allocations: 1.788 MB / 1.032 GB, free: 14.84 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003783/1.107, allocations: 1.65 MB / 1.033 GB, free: 13.19 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-05/1.107, allocations: 4 kB / 1.033 GB, free: 13.18 MB / 0.795 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01424/1.121, allocations: 5.296 MB / 1.038 GB, free: 7.848 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.356e-05/1.121, allocations: 11.94 kB / 1.038 GB, free: 7.836 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.688e-05/1.121, allocations: 8.844 kB / 1.039 GB, free: 7.828 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007167/1.128, allocations: 1.889 MB / 1.04 GB, free: 5.918 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002153/1.13, allocations: 435.2 kB / 1.041 GB, free: 5.492 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03199/1.162, allocations: 22.84 MB / 1.063 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002952/1.165, allocations: 315.6 kB / 1.063 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003654/1.166, allocations: 67.95 kB / 1.063 GB, free: 13.22 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 8,(2,100.0%) 8,(3,100.0%) 17,(3,100.0%) 17,(3,100.0%) 15,(3,100.0%) 15,(2,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001231/1.167, allocations: 461.5 kB / 1.064 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004936/1.168, allocations: 177.8 kB / 1.064 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01402/1.182, allocations: 5.347 MB / 1.069 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-05/1.182, allocations: 16 kB / 1.069 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.503e-05/1.182, allocations: 16 kB / 1.069 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-05/1.182, allocations: 11.97 kB / 1.069 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01783/1.2, allocations: 7.461 MB / 1.077 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.307e-05/1.2, allocations: 4 kB / 1.077 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00172/1.201, allocations: 359.7 kB / 1.077 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006162/1.208, allocations: 1.704 MB / 1.079 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001953/1.208, allocations: 39.97 kB / 1.079 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02909/1.237, allocations: 22.05 MB / 1.1 GB, free: 6.336 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.181e-06/1.237, allocations: 7.938 kB / 1.1 GB, free: 6.328 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0135/1.25, allocations: 5.07 MB / 1.105 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001355/1.252, allocations: 0.4909 MB / 1.106 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005366/1.252, allocations: 31.94 kB / 1.106 GB, free: 0.5508 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002493/1.255, allocations: 331.5 kB / 1.106 GB, free: 232 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005416/1.255, allocations: 145 kB / 1.106 GB, free: 84 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001844/1.256, allocations: 55.97 kB / 1.106 GB, free: 28 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001331/1.257, allocations: 0.7783 MB / 1.107 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/1.257, allocations: 4 kB / 1.107 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.002569/1.26, allocations: 0.6523 MB / 1.108 GB, free: 14.59 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 8,(3,100.0%) 15,(2,100.0%) 8,(3,100.0%) 17,(2,100.0%) 8,(3,100.0%) 15,(2,100.0%) 8,(3,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003661/1.26, allocations: 143.1 kB / 1.108 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.01342/1.273, allocations: 5.176 MB / 1.113 GB, free: 9.168 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/1.273, allocations: 0 / 1.113 GB, free: 9.168 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.007644/1.281, allocations: 3.378 MB / 1.116 GB, free: 5.68 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002658/1.284, allocations: 499 kB / 1.117 GB, free: 5.195 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01036/1.294, allocations: 4.872 MB / 1.121 GB, free: 288 kB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001847/1.296, allocations: 1.603 MB / 1.123 GB, free: 14.64 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001905/1.298, allocations: 382.4 kB / 1.123 GB, free: 14.26 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004648/1.298, allocations: 107.4 kB / 1.123 GB, free: 14.16 MB / 0.8887 GB Notification: Performance of SimCode: time 1.252e-06/1.298, allocations: 4 kB / 1.123 GB, free: 14.15 MB / 0.8887 GB Notification: Performance of Templates: time 0.067/1.365, allocations: 41.41 MB / 1.164 GB, free: 5.195 MB / 0.92 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches