Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent",fileNamePrefix="Buildings_latest_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_latest_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.001064/0.001064, allocations: 106.8 kB / 16.35 MB, free: 5.824 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.00105/0.00105, allocations: 193.1 kB / 17.29 MB, free: 5.48 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.391/1.391, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.596/2.596, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 56.56 kB / 0.8773 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.407/0.4084, allocations: 153 MB / 1.027 GB, free: 2.031 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.008357/0.4168, allocations: 2.9 MB / 1.03 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.005074/0.4219, allocations: 1.655 MB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002989/0.4222, allocations: 8 kB / 1.031 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001515/0.4238, allocations: 231 kB / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000861/0.4246, allocations: 187.1 kB / 1.032 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001075/0.4257, allocations: 223.4 kB / 1.032 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0007286/0.4265, allocations: 319 kB / 1.032 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005877/0.4271, allocations: 174.4 kB / 1.032 GB, free: 12.33 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003808/0.4275, allocations: 119.6 kB / 1.032 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005195/0.428, allocations: 147.5 kB / 1.033 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.577e-05/0.4281, allocations: 20 kB / 1.033 GB, free: 12.05 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007694/0.4289, allocations: 263.4 kB / 1.033 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001773/0.4291, allocations: 83.73 kB / 1.033 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002643/0.4294, allocations: 115.5 kB / 1.033 GB, free: 11.6 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0009682/0.4303, allocations: 406.8 kB / 1.033 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 1.019e-05/0.4304, allocations: 7.938 kB / 1.033 GB, free: 11.19 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.803e-06/0.4304, allocations: 4 kB / 1.033 GB, free: 11.19 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.105e-05/0.4304, allocations: 0 / 1.033 GB, free: 11.19 MB / 0.8106 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.001701/0.4321, allocations: 0.5341 MB / 1.034 GB, free: 10.6 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.624e-05/0.4322, allocations: 12.02 kB / 1.034 GB, free: 10.59 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00144/0.4337, allocations: 92.55 kB / 1.034 GB, free: 10.5 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006067/0.4343, allocations: 255.9 kB / 1.034 GB, free: 10.21 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.371e-05/0.4344, allocations: 16.75 kB / 1.034 GB, free: 10.2 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.567e-05/0.4345, allocations: 24.34 kB / 1.034 GB, free: 10.17 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001053/0.4355, allocations: 386.5 kB / 1.035 GB, free: 9.758 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.332e-05/0.4356, allocations: 3.938 kB / 1.035 GB, free: 9.754 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.576e-05/0.4356, allocations: 8 kB / 1.035 GB, free: 9.746 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.701e-05/0.4357, allocations: 24.31 kB / 1.035 GB, free: 9.719 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001102/0.4368, allocations: 320.6 kB / 1.035 GB, free: 9.406 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003286/0.4402, allocations: 1.724 MB / 1.037 GB, free: 7.547 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001278/0.4414, allocations: 333 kB / 1.037 GB, free: 7.203 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000492/0.442, allocations: 149.6 kB / 1.037 GB, free: 7.051 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002249/0.4422, allocations: 85.09 kB / 1.037 GB, free: 6.949 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.399e-05/0.4423, allocations: 38.56 kB / 1.037 GB, free: 6.902 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=20): time 2.936e-06/0.4423, allocations: 0 / 1.037 GB, free: 6.902 MB / 0.8106 GB Notification: Performance of matching and sorting (n=21): time 0.002326/0.4446, allocations: 0.5997 MB / 1.038 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.43e-05/0.4447, allocations: 77.11 kB / 1.038 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003354/0.445, allocations: 199.8 kB / 1.038 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.285e-05/0.4451, allocations: 33.7 kB / 1.038 GB, free: 5.938 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.4453, allocations: 155.9 kB / 1.038 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.4454, allocations: 82.88 kB / 1.038 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001704/0.4456, allocations: 49.98 kB / 1.038 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001837/0.4458, allocations: 338.8 kB / 1.039 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004335/0.4462, allocations: 129.9 kB / 1.039 GB, free: 5.176 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005314/0.4468, allocations: 227.7 kB / 1.039 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001048/0.4478, allocations: 367.8 kB / 1.039 GB, free: 4.523 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.764e-06/0.4479, allocations: 4 kB / 1.039 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001422/0.4493, allocations: 425.8 kB / 1.04 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.525e-05/0.4493, allocations: 8 kB / 1.04 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.4494, allocations: 4 kB / 1.04 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003516/0.4497, allocations: 41.17 kB / 1.04 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005256/0.4503, allocations: 71.88 kB / 1.04 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00246/0.4528, allocations: 1.607 MB / 1.042 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004073/0.4532, allocations: 35.84 kB / 1.042 GB, free: 2.18 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.907e-05/0.4532, allocations: 12 kB / 1.042 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005734/0.4538, allocations: 238.6 kB / 1.042 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004849/0.4543, allocations: 203.4 kB / 1.042 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009547/0.4553, allocations: 348.8 kB / 1.042 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.058e-06/0.4553, allocations: 0 / 1.042 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.001376/0.4567, allocations: 416.1 kB / 1.043 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.4568, allocations: 4 kB / 1.043 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.4568, allocations: 4 kB / 1.043 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002574/0.457, allocations: 44.81 kB / 1.043 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004874/0.4575, allocations: 63.89 kB / 1.043 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002296/0.4599, allocations: 1.615 MB / 1.044 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003697/0.4602, allocations: 31.88 kB / 1.044 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.843e-05/0.4603, allocations: 15.94 kB / 1.044 GB, free: 14.98 MB / 0.8262 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.0002442/0.4606, allocations: 192.2 kB / 1.045 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001386/0.4607, allocations: 27.75 kB / 1.045 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00124/0.462, allocations: 352.1 kB / 1.045 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/0.462, allocations: 4 kB / 1.045 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.462, allocations: 3.984 kB / 1.045 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.462, allocations: 0 / 1.045 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002701/0.4648, allocations: 0.9626 MB / 1.046 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.4648, allocations: 0 / 1.046 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004451/0.4652, allocations: 55.83 kB / 1.046 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002324/0.4655, allocations: 36.83 kB / 1.046 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.811e-05/0.4655, allocations: 8.219 kB / 1.046 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001993/0.4675, allocations: 1.512 MB / 1.048 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.06e-05/0.4676, allocations: 11.91 kB / 1.048 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001291/0.4689, allocations: 0.5325 MB / 1.048 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002233/0.4691, allocations: 120.8 kB / 1.048 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.835e-05/0.4692, allocations: 19.81 kB / 1.048 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004401/0.4697, allocations: 19.97 kB / 1.048 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.4698, allocations: 27.91 kB / 1.048 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.552e-05/0.4699, allocations: 12 kB / 1.048 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002445/0.4701, allocations: 151 kB / 1.048 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of sort global known variables: time 5.61e-07/0.4701, allocations: 0 / 1.048 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001162/0.4713, allocations: 104 kB / 1.048 GB, free: 10.55 MB / 0.8262 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.0002435/0.4716, allocations: 111 kB / 1.049 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.00247/0.4741, allocations: 0.7368 MB / 1.049 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 8.826e-06/0.4741, allocations: 4.25 kB / 1.049 GB, free: 9.672 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0007306/0.4748, allocations: 270.4 kB / 1.05 GB, free: 9.395 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008615/0.4757, allocations: 44.22 kB / 1.05 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001985/0.4777, allocations: 0.5557 MB / 1.05 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008694/0.4786, allocations: 0.7717 MB / 1.051 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0004905/0.4791, allocations: 85.86 kB / 1.051 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001391/0.4793, allocations: 19.44 kB / 1.051 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of SimCode: time 2.144e-06/0.4793, allocations: 0 / 1.051 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of Templates: time 0.007887/0.4872, allocations: 3.276 MB / 1.054 GB, free: 4.582 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches