Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00728/0.00728, allocations: 96.72 kB / 15.73 MB, free: 6 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.001271/0.001271, allocations: 185.4 kB / 16.67 MB, free: 5.93 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.586/1.586, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 3.018/3.018, allocations: 437 MB / 0.7105 GB, free: 4.934 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 59.91 kB / 1.019 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.407/0.4085, allocations: 151.6 MB / 1.167 GB, free: 6.797 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.005695/0.4143, allocations: 2.882 MB / 1.169 GB, free: 3.895 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.003501/0.4178, allocations: 1.812 MB / 1.171 GB, free: 2.07 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002647/0.4181, allocations: 4 kB / 1.171 GB, free: 2.066 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001011/0.4192, allocations: 238.9 kB / 1.171 GB, free: 1.832 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0006833/0.4199, allocations: 203.1 kB / 1.172 GB, free: 1.633 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007035/0.4206, allocations: 227.4 kB / 1.172 GB, free: 1.41 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0005404/0.4212, allocations: 315 kB / 1.172 GB, free: 1.102 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004305/0.4216, allocations: 178.3 kB / 1.172 GB, free: 0.9219 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002921/0.4219, allocations: 123.5 kB / 1.172 GB, free: 0.8008 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000383/0.4223, allocations: 147.5 kB / 1.173 GB, free: 0.6562 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 6.111e-05/0.4224, allocations: 20 kB / 1.173 GB, free: 0.6367 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006139/0.423, allocations: 283.4 kB / 1.173 GB, free: 368 kB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001324/0.4231, allocations: 87.78 kB / 1.173 GB, free: 280 kB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001542/0.4233, allocations: 115.4 kB / 1.173 GB, free: 164 kB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0008165/0.4241, allocations: 442.5 kB / 1.173 GB, free: 15.72 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.4241, allocations: 0 / 1.173 GB, free: 15.72 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.813e-06/0.4241, allocations: 4 kB / 1.173 GB, free: 15.72 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.258e-05/0.4242, allocations: 0 / 1.173 GB, free: 15.72 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001287/0.4255, allocations: 0.5491 MB / 1.174 GB, free: 15.12 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.4255, allocations: 8.031 kB / 1.174 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001019/0.4265, allocations: 120.6 kB / 1.174 GB, free: 14.99 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004314/0.427, allocations: 267.8 kB / 1.174 GB, free: 14.7 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.363e-05/0.427, allocations: 20.75 kB / 1.174 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.948e-05/0.4271, allocations: 20.36 kB / 1.174 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007323/0.4278, allocations: 386.5 kB / 1.175 GB, free: 14.25 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.774e-05/0.4279, allocations: 0 / 1.175 GB, free: 14.25 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.624e-05/0.4279, allocations: 11.98 kB / 1.175 GB, free: 14.24 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-05/0.428, allocations: 24.31 kB / 1.175 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007275/0.4287, allocations: 340.6 kB / 1.175 GB, free: 13.88 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00215/0.4309, allocations: 1.74 MB / 1.177 GB, free: 12 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007442/0.4316, allocations: 325.1 kB / 1.177 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002871/0.4319, allocations: 149.6 kB / 1.177 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001637/0.4321, allocations: 97.03 kB / 1.177 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/0.4321, allocations: 38.55 kB / 1.177 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=20): time 1.754e-06/0.4321, allocations: 0 / 1.177 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of matching and sorting (n=21): time 0.001499/0.4337, allocations: 0.5963 MB / 1.178 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.158e-05/0.4337, allocations: 85.05 kB / 1.178 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002973/0.434, allocations: 215.7 kB / 1.178 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.105e-05/0.4341, allocations: 29.7 kB / 1.178 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.4342, allocations: 168.1 kB / 1.178 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.712e-05/0.4343, allocations: 79.31 kB / 1.179 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001352/0.4344, allocations: 65.97 kB / 1.179 GB, free: 10.06 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001583/0.4346, allocations: 326.8 kB / 1.179 GB, free: 9.73 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003168/0.4349, allocations: 137.9 kB / 1.179 GB, free: 9.594 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003541/0.4353, allocations: 219.3 kB / 1.179 GB, free: 9.344 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000653/0.4359, allocations: 380.3 kB / 1.18 GB, free: 8.938 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.436, allocations: 0 / 1.18 GB, free: 8.938 MB / 0.9356 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009441/0.4369, allocations: 438 kB / 1.18 GB, free: 8.5 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.4369, allocations: 5.719 kB / 1.18 GB, free: 8.496 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.437, allocations: 7.984 kB / 1.18 GB, free: 8.488 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003136/0.4373, allocations: 36.83 kB / 1.18 GB, free: 8.449 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003531/0.4376, allocations: 75.88 kB / 1.18 GB, free: 8.375 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001676/0.4393, allocations: 1.611 MB / 1.182 GB, free: 6.617 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003249/0.4397, allocations: 43.91 kB / 1.182 GB, free: 6.574 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.23e-05/0.4397, allocations: 15.94 kB / 1.182 GB, free: 6.559 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004103/0.4401, allocations: 240 kB / 1.182 GB, free: 6.32 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003451/0.4405, allocations: 211.1 kB / 1.182 GB, free: 6.074 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006216/0.4411, allocations: 357.3 kB / 1.183 GB, free: 5.688 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.445e-06/0.4411, allocations: 0 / 1.183 GB, free: 5.688 MB / 0.9356 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0009455/0.4421, allocations: 425.9 kB / 1.183 GB, free: 5.262 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.4421, allocations: 8 kB / 1.183 GB, free: 5.254 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.4421, allocations: 4 kB / 1.183 GB, free: 5.25 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001646/0.4423, allocations: 44.8 kB / 1.183 GB, free: 5.203 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003085/0.4426, allocations: 68.14 kB / 1.183 GB, free: 5.137 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001501/0.4441, allocations: 1.615 MB / 1.185 GB, free: 3.375 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003041/0.4444, allocations: 31.86 kB / 1.185 GB, free: 3.344 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.915e-05/0.4445, allocations: 16 kB / 1.185 GB, free: 3.328 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001685/0.4447, allocations: 194.5 kB / 1.185 GB, free: 3.133 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.754e-05/0.4447, allocations: 27.8 kB / 1.185 GB, free: 3.105 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007532/0.4455, allocations: 358.3 kB / 1.185 GB, free: 2.746 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.4455, allocations: 0 / 1.185 GB, free: 2.746 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.4455, allocations: 4 kB / 1.185 GB, free: 2.742 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.4455, allocations: 3.984 kB / 1.185 GB, free: 2.738 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00157/0.4471, allocations: 0.9561 MB / 1.186 GB, free: 1.703 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.658e-06/0.4471, allocations: 0 / 1.186 GB, free: 1.703 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002356/0.4474, allocations: 64.11 kB / 1.186 GB, free: 1.641 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001346/0.4475, allocations: 40.83 kB / 1.186 GB, free: 1.598 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.559e-05/0.4476, allocations: 8 kB / 1.186 GB, free: 1.59 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001399/0.449, allocations: 1.512 MB / 1.188 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.449, allocations: 0 / 1.188 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007692/0.4498, allocations: 0.5316 MB / 1.188 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001412/0.4499, allocations: 124.9 kB / 1.188 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.13e-05/0.45, allocations: 15.92 kB / 1.188 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002652/0.4502, allocations: 27.97 kB / 1.188 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.504e-05/0.4503, allocations: 19.92 kB / 1.188 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.88e-05/0.4504, allocations: 8 kB / 1.188 GB, free: 15.15 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0002217/0.4506, allocations: 166.8 kB / 1.189 GB, free: 14.99 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.91e-07/0.4506, allocations: 0 / 1.189 GB, free: 14.99 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0006639/0.4513, allocations: 115.9 kB / 1.189 GB, free: 14.88 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002185/0.4515, allocations: 115.1 kB / 1.189 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001713/0.4532, allocations: 0.751 MB / 1.19 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.4532, allocations: 0 / 1.19 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.000454/0.4537, allocations: 282.8 kB / 1.19 GB, free: 13.69 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005285/0.4542, allocations: 31.48 kB / 1.19 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001263/0.4555, allocations: 0.5589 MB / 1.19 GB, free: 13.06 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005193/0.456, allocations: 0.7678 MB / 1.191 GB, free: 12.26 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0003005/0.4564, allocations: 101.9 kB / 1.191 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.075e-05/0.4565, allocations: 23.44 kB / 1.191 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of SimCode: time 5.81e-07/0.4565, allocations: 0 / 1.191 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of Templates: time 0.009039/0.4655, allocations: 3.461 MB / 1.195 GB, free: 8.68 MB / 0.9512 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches