Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent",fileNamePrefix="Buildings_9_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_9_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.001464/0.001464, allocations: 106 kB / 16.41 MB, free: 6.461 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.001631/0.001632, allocations: 189.7 kB / 17.34 MB, free: 5.715 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.42/1.42, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.267/2.267, allocations: 390.3 MB / 0.6655 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 63.91 kB / 0.9515 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9962/0.9974, allocations: 140.4 MB / 1.089 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.004192/1.002, allocations: 2.897 MB / 1.091 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002894/1.005, allocations: 1.806 MB / 1.093 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001896/1.005, allocations: 7.969 kB / 1.093 GB, free: 2.32 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0008157/1.006, allocations: 234.3 kB / 1.093 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005872/1.006, allocations: 208.1 kB / 1.094 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006581/1.007, allocations: 224.1 kB / 1.094 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004361/1.007, allocations: 312.6 kB / 1.094 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003798/1.008, allocations: 168.3 kB / 1.094 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002248/1.008, allocations: 127 kB / 1.094 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003111/1.008, allocations: 155.5 kB / 1.095 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.758e-05/1.008, allocations: 20.28 kB / 1.095 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005578/1.009, allocations: 278.9 kB / 1.095 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001358/1.009, allocations: 83.83 kB / 1.095 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001402/1.009, allocations: 124.8 kB / 1.095 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0007299/1.01, allocations: 433 kB / 1.095 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/1.01, allocations: 0.7812 kB / 1.095 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.563e-06/1.01, allocations: 0 / 1.095 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.346e-06/1.01, allocations: 0 / 1.095 GB, free: 1.289 MB / 0.8575 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.00097/1.011, allocations: 0.5494 MB / 1.096 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/1.011, allocations: 9.688 kB / 1.096 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009995/1.012, allocations: 109.2 kB / 1.096 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003302/1.012, allocations: 271.8 kB / 1.096 GB, free: 0.5391 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.418e-05/1.012, allocations: 16.72 kB / 1.096 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.957e-05/1.012, allocations: 23.98 kB / 1.096 GB, free: 0.5195 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007764/1.013, allocations: 384 kB / 1.097 GB, free: 320 kB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.158e-05/1.013, allocations: 1.922 kB / 1.097 GB, free: 320 kB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.626e-05/1.013, allocations: 9.734 kB / 1.097 GB, free: 312 kB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.876e-05/1.013, allocations: 29.47 kB / 1.097 GB, free: 300 kB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007755/1.014, allocations: 340.3 kB / 1.097 GB, free: 192 kB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002193/1.016, allocations: 1.729 MB / 1.099 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008294/1.017, allocations: 336.1 kB / 1.099 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003096/1.018, allocations: 150 kB / 1.099 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001637/1.018, allocations: 86.72 kB / 1.099 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.92e-05/1.018, allocations: 36.38 kB / 1.099 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=20): time 2.034e-06/1.018, allocations: 1.281 kB / 1.099 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of matching and sorting (n=21): time 0.001519/1.019, allocations: 0.5956 MB / 1.1 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.589e-05/1.019, allocations: 84.45 kB / 1.1 GB, free: 13.99 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002713/1.02, allocations: 209.8 kB / 1.1 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.022e-05/1.02, allocations: 34.92 kB / 1.1 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/1.02, allocations: 164.8 kB / 1.1 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 7.113e-05/1.02, allocations: 71.36 kB / 1.101 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001223/1.02, allocations: 59.56 kB / 1.101 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001873/1.02, allocations: 330 kB / 1.101 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003303/1.021, allocations: 142 kB / 1.101 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004321/1.021, allocations: 221.7 kB / 1.101 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006989/1.022, allocations: 375.7 kB / 1.102 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/1.022, allocations: 0.9062 kB / 1.102 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001018/1.023, allocations: 434.5 kB / 1.102 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/1.023, allocations: 10.28 kB / 1.102 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/1.023, allocations: 6.875 kB / 1.102 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002618/1.023, allocations: 45.97 kB / 1.102 GB, free: 12.65 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004271/1.023, allocations: 74.42 kB / 1.102 GB, free: 12.64 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001734/1.025, allocations: 1.603 MB / 1.104 GB, free: 11.13 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003658/1.026, allocations: 39.03 kB / 1.104 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.435e-05/1.026, allocations: 15.25 kB / 1.104 GB, free: 11.11 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004392/1.026, allocations: 240.7 kB / 1.104 GB, free: 10.98 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003655/1.026, allocations: 214.3 kB / 1.104 GB, free: 10.82 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007272/1.027, allocations: 351.2 kB / 1.105 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.016e-06/1.027, allocations: 0.5625 kB / 1.105 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0009602/1.028, allocations: 422.2 kB / 1.105 GB, free: 10.44 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/1.028, allocations: 6.875 kB / 1.105 GB, free: 10.44 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/1.028, allocations: 6.812 kB / 1.105 GB, free: 10.43 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001464/1.028, allocations: 56.36 kB / 1.105 GB, free: 10.41 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000313/1.029, allocations: 67.77 kB / 1.105 GB, free: 10.4 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00143/1.03, allocations: 1.613 MB / 1.107 GB, free: 8.883 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003298/1.03, allocations: 35.19 kB / 1.107 GB, free: 8.871 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.579e-05/1.031, allocations: 11.72 kB / 1.107 GB, free: 8.871 MB / 0.8731 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.0001877/1.031, allocations: 197.4 kB / 1.107 GB, free: 8.676 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.001e-05/1.031, allocations: 22.02 kB / 1.107 GB, free: 8.664 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007725/1.032, allocations: 360.3 kB / 1.107 GB, free: 8.512 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/1.032, allocations: 3.484 kB / 1.107 GB, free: 8.512 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/1.032, allocations: 5.312 kB / 1.107 GB, free: 8.508 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/1.032, allocations: 0.75 kB / 1.107 GB, free: 8.508 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001562/1.033, allocations: 0.9615 MB / 1.108 GB, free: 7.883 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/1.033, allocations: 1.156 kB / 1.108 GB, free: 7.883 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002412/1.033, allocations: 51.09 kB / 1.108 GB, free: 7.879 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001321/1.034, allocations: 36.73 kB / 1.108 GB, free: 7.867 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.46e-05/1.034, allocations: 6.625 kB / 1.108 GB, free: 7.863 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001235/1.035, allocations: 1.516 MB / 1.11 GB, free: 6.398 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/1.035, allocations: 6.891 kB / 1.11 GB, free: 6.395 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007637/1.036, allocations: 0.5367 MB / 1.11 GB, free: 6.023 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001614/1.036, allocations: 125.1 kB / 1.11 GB, free: 5.906 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.292e-05/1.036, allocations: 13.06 kB / 1.11 GB, free: 5.898 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002762/1.036, allocations: 23.72 kB / 1.11 GB, free: 5.895 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.579e-05/1.036, allocations: 15.77 kB / 1.11 GB, free: 5.895 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.038e-05/1.036, allocations: 14.5 kB / 1.11 GB, free: 5.887 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002202/1.036, allocations: 167.5 kB / 1.111 GB, free: 5.781 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/1.036, allocations: 0 / 1.111 GB, free: 5.781 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.000717/1.037, allocations: 108.3 kB / 1.111 GB, free: 5.77 MB / 0.8731 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.0001859/1.037, allocations: 112.5 kB / 1.111 GB, free: 5.672 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001585/1.039, allocations: 0.7533 MB / 1.112 GB, free: 5.277 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/1.039, allocations: 4.062 kB / 1.112 GB, free: 5.273 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004203/1.039, allocations: 273.9 kB / 1.112 GB, free: 5.109 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000505/1.04, allocations: 34.27 kB / 1.112 GB, free: 5.098 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/1.041, allocations: 0.5875 MB / 1.112 GB, free: 4.719 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000394/1.041, allocations: 0.7702 MB / 1.113 GB, free: 4.012 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/1.042, allocations: 28.25 kB / 1.113 GB, free: 4 MB / 0.8731 GB Notification: Performance of SimCode: time 3.21e-07/1.042, allocations: 0 / 1.113 GB, free: 4 MB / 0.8731 GB Notification: Performance of Templates: time 0.01041/1.052, allocations: 4.329 MB / 1.117 GB, free: 3.656 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches