Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.00102/0.00102, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001181/0.001181, allocations: 172.7 kB / 15.95 MB, free: 208 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.497/1.497, allocations: 223.3 MB / 240 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.826/2.826, allocations: 437.7 MB / 0.7117 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000386/0.0003861, allocations: 12 kB / 0.8722 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7957/0.7961, allocations: 153.8 MB / 1.022 GB, free: 32 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid): time 0.01526/0.8114, allocations: 10.72 MB / 1.033 GB, free: 5.277 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.01229/0.8237, allocations: 4.997 MB / 1.038 GB, free: 276 kB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001554/0.8253, allocations: 27.88 kB / 1.038 GB, free: 248 kB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001217/0.8266, allocations: 298.2 kB / 1.038 GB, free: 15.95 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001681/0.8283, allocations: 0.5053 MB / 1.039 GB, free: 15.44 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.002043/0.8303, allocations: 470.8 kB / 1.039 GB, free: 14.98 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.00395/0.8343, allocations: 2.79 MB / 1.042 GB, free: 12.18 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007252/0.8416, allocations: 3.63 MB / 1.045 GB, free: 8.5 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002026/0.8436, allocations: 0.724 MB / 1.046 GB, free: 7.773 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002315/0.8459, allocations: 0.9968 MB / 1.047 GB, free: 6.773 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0002758/0.8462, allocations: 96 kB / 1.047 GB, free: 6.68 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001265/0.8475, allocations: 311.6 kB / 1.047 GB, free: 6.375 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.001024/0.8486, allocations: 0.717 MB / 1.048 GB, free: 5.656 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0005259/0.8491, allocations: 345 kB / 1.048 GB, free: 5.312 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.003854/0.853, allocations: 3.029 MB / 1.051 GB, free: 2.277 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.853, allocations: 3.938 kB / 1.051 GB, free: 2.273 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.553e-06/0.853, allocations: 0 / 1.051 GB, free: 2.273 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.217e-05/0.8531, allocations: 0 / 1.051 GB, free: 2.273 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: 406 * Number of variables: 406 Notification: Performance of Generate backend data structure: time 0.004495/0.8576, allocations: 1.653 MB / 1.053 GB, free: 0.5664 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.8576, allocations: 8.562 kB / 1.053 GB, free: 0.5586 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003489/0.8611, allocations: 481.5 kB / 1.053 GB, free: 88 kB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002863/0.864, allocations: 1.131 MB / 1.055 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001174/0.8641, allocations: 119.1 kB / 1.055 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004036/0.8646, allocations: 152 kB / 1.055 GB, free: 14.65 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004906/0.8695, allocations: 2.731 MB / 1.057 GB, free: 11.85 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.514e-05/0.8695, allocations: 7.938 kB / 1.057 GB, free: 11.84 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001649/0.8697, allocations: 67.98 kB / 1.058 GB, free: 11.78 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00031/0.87, allocations: 170.9 kB / 1.058 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00347/0.8735, allocations: 2.288 MB / 1.06 GB, free: 9.316 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01231/0.8858, allocations: 10.54 MB / 1.07 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001012/0.8869, allocations: 0.5765 MB / 1.071 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006501/0.8875, allocations: 388.6 kB / 1.071 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001215/0.8877, allocations: 88.97 kB / 1.071 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.679e-05/0.8877, allocations: 38.56 kB / 1.071 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=36): time 1.924e-06/0.8877, allocations: 3.938 kB / 1.071 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of matching and sorting (n=52): time 0.02004/0.9078, allocations: 6.271 MB / 1.077 GB, free: 6.43 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000139/0.9079, allocations: 85.53 kB / 1.077 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001623/0.9096, allocations: 0.8944 MB / 1.078 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 7.224e-05/0.9097, allocations: 41.7 kB / 1.078 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006361/0.9103, allocations: 0.7538 MB / 1.079 GB, free: 4.613 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002025/0.9105, allocations: 189.4 kB / 1.079 GB, free: 4.426 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.199e-05/0.9106, allocations: 19.94 kB / 1.079 GB, free: 4.406 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002992/0.9109, allocations: 386.8 kB / 1.08 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001105/0.912, allocations: 0.6382 MB / 1.08 GB, free: 3.379 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001347/0.9134, allocations: 1.011 MB / 1.081 GB, free: 2.195 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001333/0.9147, allocations: 0.814 MB / 1.082 GB, free: 1.383 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.405e-06/0.9147, allocations: 0 / 1.082 GB, free: 1.383 MB / 0.8262 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.008751/0.9235, allocations: 3.206 MB / 1.085 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003995/0.9239, allocations: 431.1 kB / 1.086 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.009e-05/0.924, allocations: 20.02 kB / 1.086 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007391/0.9314, allocations: 1.864 MB / 1.087 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009013/0.9323, allocations: 219.6 kB / 1.088 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01804/0.9503, allocations: 10.24 MB / 1.098 GB, free: 0.6992 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00207/0.9525, allocations: 175.6 kB / 1.098 GB, free: 0.5273 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000291/0.9528, allocations: 47.98 kB / 1.098 GB, free: 492 kB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.9528, allocations: 4 kB / 1.098 GB, free: 488 kB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01102/0.9638, allocations: 2.614 MB / 1.1 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.793e-05/0.9639, allocations: 12 kB / 1.1 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007531/0.9715, allocations: 1.207 MB / 1.102 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/0.9728, allocations: 259.5 kB / 1.102 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01126/0.9841, allocations: 5.535 MB / 1.107 GB, free: 6.566 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001765/0.9859, allocations: 151.8 kB / 1.107 GB, free: 6.418 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002563/0.9862, allocations: 47.98 kB / 1.107 GB, free: 6.371 MB / 0.8575 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.002422/0.9886, allocations: 0.8284 MB / 1.108 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003942/0.989, allocations: 83.02 kB / 1.108 GB, free: 5.449 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01138/1, allocations: 2.688 MB / 1.111 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.046e-05/1, allocations: 8 kB / 1.111 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/1, allocations: 0 / 1.111 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.457e-05/1.001, allocations: 7.984 kB / 1.111 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01659/1.017, allocations: 4.635 MB / 1.116 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.33e-05/1.017, allocations: 3.938 kB / 1.116 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006203/1.018, allocations: 104.1 kB / 1.116 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01009/1.028, allocations: 1.696 MB / 1.117 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002149/1.028, allocations: 19.95 kB / 1.117 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02012/1.048, allocations: 9.754 MB / 1.127 GB, free: 1.832 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.095e-06/1.048, allocations: 11.95 kB / 1.127 GB, free: 1.82 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01155/1.06, allocations: 2.644 MB / 1.129 GB, free: 15.12 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009429/1.061, allocations: 280.1 kB / 1.13 GB, free: 14.83 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003608/1.061, allocations: 15.98 kB / 1.13 GB, free: 14.81 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001418/1.063, allocations: 131.8 kB / 1.13 GB, free: 14.68 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003266/1.063, allocations: 51.88 kB / 1.13 GB, free: 14.63 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.055e-05/1.063, allocations: 16 kB / 1.13 GB, free: 14.62 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001753/1.065, allocations: 0.6394 MB / 1.131 GB, free: 13.98 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.91e-07/1.065, allocations: 4 kB / 1.131 GB, free: 13.98 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.004182/1.069, allocations: 0.5977 MB / 1.131 GB, free: 13.38 MB / 0.8887 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.000399/1.07, allocations: 139.2 kB / 1.131 GB, free: 13.24 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.00808/1.078, allocations: 3.235 MB / 1.134 GB, free: 9.922 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 1.109e-05/1.078, allocations: 4 kB / 1.134 GB, free: 9.918 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.002919/1.081, allocations: 1.268 MB / 1.136 GB, free: 8.598 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001892/1.083, allocations: 214.8 kB / 1.136 GB, free: 8.387 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009111/1.092, allocations: 3.55 MB / 1.139 GB, free: 4.781 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002663/1.094, allocations: 1.622 MB / 1.141 GB, free: 3.129 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.002074/1.096, allocations: 490.6 kB / 1.141 GB, free: 2.645 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002876/1.097, allocations: 67.42 kB / 1.141 GB, free: 2.578 MB / 0.8887 GB Notification: Performance of SimCode: time 1.112e-06/1.097, allocations: 0 / 1.141 GB, free: 2.578 MB / 0.8887 GB Notification: Performance of Templates: time 0.06188/1.159, allocations: 23.43 MB / 1.164 GB, free: 11.28 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches