Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.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.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|E.vPhase.1..S.1.|E.vPhase.1..S.2.|E.vPhase.2..S.1.|E.vPhase.2..S.2.|E.vPhase.3..S.1.|E.vPhase.3..S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 100.3 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.001512/0.001512, 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.401/1.401, allocations: 223.2 MB / 239.9 MB, free: 5.445 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.474/2.474, allocations: 390.2 MB / 0.6653 GB, free: 2.996 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003814/0.0003815, allocations: 8 kB / 0.8145 GB, free: 14.29 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.801/0.8014, allocations: 142.3 MB / 0.9535 GB, free: 8.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid): time 0.01212/0.8136, allocations: 10.38 MB / 0.9637 GB, free: 308 kB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.01253/0.8262, allocations: 4.942 MB / 0.9685 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002565/0.8289, allocations: 29.84 kB / 0.9685 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001901/0.8308, allocations: 330.4 kB / 0.9688 GB, free: 12.17 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.003047/0.8339, allocations: 0.5217 MB / 0.9693 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002653/0.8366, allocations: 0.5621 MB / 0.9699 GB, free: 11.31 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.003025/0.8396, allocations: 1.151 MB / 0.971 GB, free: 10.56 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007602/0.8472, allocations: 3.615 MB / 0.9745 GB, free: 8.68 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001864/0.8491, allocations: 0.609 MB / 0.9751 GB, free: 8.336 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002108/0.8512, allocations: 0.6696 MB / 0.9758 GB, free: 7.93 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.000703/0.852, allocations: 94.91 kB / 0.9759 GB, free: 7.93 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001812/0.8538, allocations: 298.1 kB / 0.9762 GB, free: 7.852 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0017/0.8555, allocations: 0.671 MB / 0.9768 GB, free: 7.477 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.001436/0.857, allocations: 344.1 kB / 0.9771 GB, free: 7.266 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.005245/0.8622, allocations: 3.021 MB / 0.9801 GB, free: 4.863 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.8622, allocations: 0 / 0.9801 GB, free: 4.863 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.976e-06/0.8623, allocations: 0 / 0.9801 GB, free: 4.863 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.000148/0.8624, allocations: 4 kB / 0.9801 GB, free: 4.859 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: 406 * Number of variables: 406 Notification: Performance of Generate backend data structure: time 0.006685/0.8691, allocations: 1.636 MB / 0.9817 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 7.01e-05/0.8692, allocations: 8.031 kB / 0.9817 GB, free: 3.156 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00365/0.8729, allocations: 0.4976 MB / 0.9822 GB, free: 2.656 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003841/0.8767, allocations: 1.127 MB / 0.9833 GB, free: 1.484 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/0.8769, allocations: 123 kB / 0.9834 GB, free: 1.363 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008994/0.8778, allocations: 148 kB / 0.9836 GB, free: 1.219 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008509/0.8863, allocations: 2.73 MB / 0.9862 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.304e-05/0.8865, allocations: 11.92 kB / 0.9862 GB, free: 14.41 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005789/0.8871, allocations: 63.98 kB / 0.9863 GB, free: 14.35 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004477/0.8875, allocations: 174.9 kB / 0.9865 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005686/0.8932, allocations: 2.28 MB / 0.9887 GB, free: 11.89 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01744/0.9107, allocations: 10.54 MB / 0.999 GB, free: 472 kB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001126/0.9119, allocations: 0.5841 MB / 0.9996 GB, free: 15.87 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001408/0.9121, allocations: 89.09 kB / 0.9996 GB, free: 15.76 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.956e-05/0.9121, allocations: 38.56 kB / 0.9997 GB, free: 15.71 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=36): time 2.224e-06/0.9121, allocations: 0 / 0.9997 GB, free: 15.71 MB / 0.7637 GB Notification: Performance of matching and sorting (n=52): time 0.02136/0.9335, allocations: 6.285 MB / 1.006 GB, free: 9.367 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.031e-05/0.9336, allocations: 85.55 kB / 1.006 GB, free: 9.266 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001698/0.9353, allocations: 0.9022 MB / 1.007 GB, free: 8.355 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001452/0.9355, allocations: 33.7 kB / 1.007 GB, free: 8.316 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006601/0.9361, allocations: 0.7499 MB / 1.008 GB, free: 7.555 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.000271/0.9364, allocations: 181.5 kB / 1.008 GB, free: 7.375 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.749e-05/0.9365, allocations: 16 kB / 1.008 GB, free: 7.359 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0002565/0.9368, allocations: 390.8 kB / 1.008 GB, free: 6.969 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001218/0.938, allocations: 0.6499 MB / 1.009 GB, free: 6.316 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001477/0.9395, allocations: 1.011 MB / 1.01 GB, free: 5.137 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00138/0.9409, allocations: 0.8141 MB / 1.011 GB, free: 4.324 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-05/0.9409, allocations: 4 kB / 1.011 GB, free: 4.32 MB / 0.7637 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.009454/0.9504, allocations: 3.221 MB / 1.014 GB, free: 1.078 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 0.002315/0.9527, allocations: 4.535 MB / 1.018 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-05/0.9528, allocations: 12 kB / 1.018 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008262/0.9611, allocations: 1.86 MB / 1.02 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001051/0.9622, allocations: 219.7 kB / 1.02 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01664/0.9788, allocations: 10.53 MB / 1.03 GB, free: 15.03 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001631/0.9805, allocations: 179.7 kB / 1.031 GB, free: 14.86 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002531/0.9808, allocations: 44 kB / 1.031 GB, free: 14.81 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.9808, allocations: 0 / 1.031 GB, free: 14.81 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007577/0.9884, allocations: 2.629 MB / 1.033 GB, free: 12.17 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.115e-05/0.9885, allocations: 12 kB / 1.033 GB, free: 12.16 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005092/0.9936, allocations: 1.203 MB / 1.034 GB, free: 10.95 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001124/0.9948, allocations: 255.5 kB / 1.035 GB, free: 10.7 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008198/1.003, allocations: 5.699 MB / 1.04 GB, free: 4.734 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001546/1.005, allocations: 151.8 kB / 1.04 GB, free: 4.586 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002587/1.005, allocations: 44 kB / 1.04 GB, free: 4.543 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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): 95 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 2 {2 2,2 2} Notification: Performance of prepare postOptimizeDAE: time 0.001871/1.007, allocations: 0.8439 MB / 1.041 GB, free: 3.688 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002922/1.007, allocations: 75.06 kB / 1.041 GB, free: 3.613 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008209/1.015, allocations: 2.696 MB / 1.044 GB, free: 0.8906 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.298e-05/1.015, allocations: 4 kB / 1.044 GB, free: 0.8867 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/1.015, allocations: 8 kB / 1.044 GB, free: 0.8789 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.428e-05/1.015, allocations: 3.984 kB / 1.044 GB, free: 0.875 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01247/1.028, allocations: 4.528 MB / 1.048 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-05/1.028, allocations: 7.984 kB / 1.048 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005092/1.028, allocations: 104.1 kB / 1.048 GB, free: 12.14 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007067/1.036, allocations: 1.708 MB / 1.05 GB, free: 10.42 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001505/1.036, allocations: 8 kB / 1.05 GB, free: 10.41 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01617/1.052, allocations: 10.06 MB / 1.06 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.767e-06/1.052, allocations: 4.031 kB / 1.06 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008488/1.06, allocations: 2.743 MB / 1.063 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001015/1.062, allocations: 280.1 kB / 1.063 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003701/1.062, allocations: 19.94 kB / 1.063 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/1.063, allocations: 135.8 kB / 1.063 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002912/1.063, allocations: 43.88 kB / 1.063 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.027e-05/1.063, allocations: 16 kB / 1.063 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001256/1.065, allocations: 0.6356 MB / 1.064 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.7e-07/1.065, allocations: 0 / 1.064 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.003346/1.068, allocations: 0.5977 MB / 1.064 GB, free: 11.23 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (42): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 2 {2 2,2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003364/1.068, allocations: 131.1 kB / 1.064 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.006027/1.074, allocations: 3.251 MB / 1.068 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 9.367e-06/1.074, allocations: 4 kB / 1.068 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.002199/1.077, allocations: 1.295 MB / 1.069 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001391/1.078, allocations: 212.4 kB / 1.069 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006831/1.085, allocations: 3.55 MB / 1.073 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002157/1.087, allocations: 1.645 MB / 1.074 GB, free: 0.918 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.001539/1.089, allocations: 494.3 kB / 1.075 GB, free: 440 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002341/1.089, allocations: 59.42 kB / 1.075 GB, free: 380 kB / 0.8262 GB Notification: Performance of SimCode: time 1.503e-06/1.089, allocations: 0 / 1.075 GB, free: 380 kB / 0.8262 GB Notification: Performance of Templates: time 0.04479/1.134, allocations: 23.45 MB / 1.098 GB, free: 9.055 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches