Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001157/0.001157, allocations: 92.31 kB / 16.02 MB, free: 80 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.001584/0.001584, allocations: 179.1 kB / 16.92 MB, free: 6.652 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.624/1.624, allocations: 223.3 MB / 241 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.7/2.7, allocations: 462.6 MB / 0.737 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000362/0.0003621, allocations: 12.62 kB / 0.9034 GB, free: 36.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.2899, allocations: 159.6 MB / 1.059 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid): time 0.01352/0.3035, allocations: 11.3 MB / 1.07 GB, free: 9.609 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00897/0.3125, allocations: 5.439 MB / 1.076 GB, free: 4.156 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001082/0.3136, allocations: 31.88 kB / 1.076 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001156/0.3148, allocations: 314 kB / 1.076 GB, free: 3.816 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001914/0.3167, allocations: 0.6068 MB / 1.077 GB, free: 3.207 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001804/0.3186, allocations: 0.6161 MB / 1.077 GB, free: 2.59 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.003669/0.3222, allocations: 3.596 MB / 1.081 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006119/0.3284, allocations: 4.106 MB / 1.085 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0015/0.3299, allocations: 0.7628 MB / 1.085 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00178/0.3317, allocations: 1.036 MB / 1.086 GB, free: 9 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0003668/0.3321, allocations: 92 kB / 1.087 GB, free: 8.91 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001167/0.3333, allocations: 467.2 kB / 1.087 GB, free: 8.453 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0009739/0.3343, allocations: 0.7209 MB / 1.088 GB, free: 7.73 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001401/0.3357, allocations: 0.8103 MB / 1.089 GB, free: 6.91 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.003016/0.3387, allocations: 2.977 MB / 1.091 GB, free: 3.926 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3387, allocations: 3.938 kB / 1.091 GB, free: 3.922 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.645e-06/0.3387, allocations: 0 / 1.091 GB, free: 3.922 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.747e-05/0.3388, allocations: 0 / 1.091 GB, free: 3.922 MB / 0.8419 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.004094/0.3429, allocations: 1.605 MB / 1.093 GB, free: 2.262 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.343, allocations: 15.97 kB / 1.093 GB, free: 2.246 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003074/0.3461, allocations: 0.4906 MB / 1.093 GB, free: 1.754 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002322/0.3484, allocations: 1.097 MB / 1.095 GB, free: 0.6133 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001152/0.3485, allocations: 115.5 kB / 1.095 GB, free: 0.5 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005673/0.3491, allocations: 160.1 kB / 1.095 GB, free: 352 kB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006037/0.3552, allocations: 2.762 MB / 1.098 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.995e-05/0.3553, allocations: 4 kB / 1.098 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002989/0.3556, allocations: 60 kB / 1.098 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003387/0.3559, allocations: 143 kB / 1.098 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004457/0.3604, allocations: 2.323 MB / 1.1 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01398/0.3744, allocations: 10.49 MB / 1.11 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001408/0.3758, allocations: 0.6156 MB / 1.111 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007151/0.3766, allocations: 388.6 kB / 1.111 GB, free: 14.6 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001378/0.3767, allocations: 97.03 kB / 1.111 GB, free: 14.48 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.319e-05/0.3768, allocations: 46.44 kB / 1.111 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=36): time 3.066e-06/0.3768, allocations: 0 / 1.111 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of matching and sorting (n=52): time 0.02403/0.4009, allocations: 6.043 MB / 1.117 GB, free: 8.328 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.24e-05/0.4009, allocations: 59.84 kB / 1.117 GB, free: 8.254 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001354/0.4023, allocations: 0.8827 MB / 1.118 GB, free: 7.359 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.000122/0.4024, allocations: 37.7 kB / 1.118 GB, free: 7.316 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.000547/0.403, allocations: 0.7577 MB / 1.119 GB, free: 6.547 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002439/0.4033, allocations: 189.4 kB / 1.119 GB, free: 6.359 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001848/0.4035, allocations: 77.67 kB / 1.119 GB, free: 6.277 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001876/0.4037, allocations: 382.8 kB / 1.12 GB, free: 5.895 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001282/0.405, allocations: 0.6616 MB / 1.12 GB, free: 5.234 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00146/0.4064, allocations: 1.018 MB / 1.121 GB, free: 4.055 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002646/0.4091, allocations: 1.689 MB / 1.123 GB, free: 2.207 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.571e-05/0.4091, allocations: 4 kB / 1.123 GB, free: 2.203 MB / 0.8731 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.009791/0.4189, allocations: 3.202 MB / 1.126 GB, free: 14.98 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003538/0.4193, allocations: 431.1 kB / 1.126 GB, free: 14.39 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.145e-05/0.4194, allocations: 15.94 kB / 1.126 GB, free: 14.38 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008161/0.4275, allocations: 1.743 MB / 1.128 GB, free: 12.62 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001084/0.4287, allocations: 235.6 kB / 1.128 GB, free: 12.39 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01442/0.4431, allocations: 9.932 MB / 1.138 GB, free: 1.938 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001472/0.4446, allocations: 171.7 kB / 1.138 GB, free: 1.77 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001808/0.4448, allocations: 51.98 kB / 1.138 GB, free: 1.719 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.007e-05/0.4448, allocations: 4 kB / 1.138 GB, free: 1.715 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007902/0.4527, allocations: 2.629 MB / 1.141 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.581e-05/0.4528, allocations: 12.38 kB / 1.141 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005295/0.4581, allocations: 1.156 MB / 1.142 GB, free: 13.9 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001218/0.4594, allocations: 255.5 kB / 1.142 GB, free: 13.65 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007585/0.467, allocations: 5.43 MB / 1.147 GB, free: 7.953 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001373/0.4684, allocations: 143.7 kB / 1.148 GB, free: 7.812 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001777/0.4686, allocations: 47.98 kB / 1.148 GB, free: 7.766 MB / 0.9044 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 (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): 2 systems {(2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,2), (2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.001404/0.47, allocations: 0.8324 MB / 1.148 GB, free: 6.922 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000232/0.4703, allocations: 94.86 kB / 1.149 GB, free: 6.828 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008437/0.4787, allocations: 2.645 MB / 1.151 GB, free: 4.16 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/0.4788, allocations: 4 kB / 1.151 GB, free: 4.156 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.617e-06/0.4788, allocations: 0 / 1.151 GB, free: 4.156 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.576e-05/0.4788, allocations: 7.984 kB / 1.151 GB, free: 4.148 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01137/0.4902, allocations: 4.523 MB / 1.156 GB, free: 15.5 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.327e-05/0.4902, allocations: 4 kB / 1.156 GB, free: 15.5 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004419/0.4907, allocations: 91.86 kB / 1.156 GB, free: 15.41 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007001/0.4977, allocations: 1.603 MB / 1.157 GB, free: 13.79 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.501e-05/0.4978, allocations: 8 kB / 1.157 GB, free: 13.78 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01202/0.5099, allocations: 9.473 MB / 1.167 GB, free: 3.77 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.5099, allocations: 7.969 kB / 1.167 GB, free: 3.762 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007823/0.5177, allocations: 2.57 MB / 1.169 GB, free: 1.137 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006201/0.5184, allocations: 284 kB / 1.169 GB, free: 0.8398 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002325/0.5186, allocations: 12 kB / 1.169 GB, free: 0.8281 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001001/0.5196, allocations: 127.7 kB / 1.169 GB, free: 0.7031 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002516/0.5199, allocations: 47.94 kB / 1.169 GB, free: 0.6562 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.582e-05/0.52, allocations: 16 kB / 1.169 GB, free: 0.6406 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.001077/0.5211, allocations: 0.6512 MB / 1.17 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.513e-06/0.5211, allocations: 0 / 1.17 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.002337/0.5234, allocations: 0.5898 MB / 1.171 GB, free: 15.4 MB / 0.9356 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 (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): 2 systems {(2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,2), (2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002454/0.5237, allocations: 115.4 kB / 1.171 GB, free: 15.28 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.005752/0.5294, allocations: 3.164 MB / 1.174 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.5295, allocations: 0 / 1.174 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.001892/0.5314, allocations: 1.176 MB / 1.175 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001544/0.5329, allocations: 231.2 kB / 1.175 GB, free: 10.6 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006016/0.539, allocations: 3.892 MB / 1.179 GB, free: 6.645 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001624/0.5406, allocations: 1.63 MB / 1.181 GB, free: 4.984 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003047/0.541, allocations: 59.42 kB / 1.181 GB, free: 4.926 MB / 0.9356 GB Notification: Performance of SimCode: time 5.81e-07/0.541, allocations: 0 / 1.181 GB, free: 4.926 MB / 0.9356 GB Notification: Performance of Templates: time 0.06177/0.6028, allocations: 57.69 MB / 1.237 GB, free: 11.25 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches