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.0008457/0.0008457, allocations: 91.61 kB / 15.36 MB, free: 0.7383 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.006354/0.006354, allocations: 170.4 kB / 16.26 MB, free: 6.613 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.591/1.591, allocations: 223.3 MB / 240.3 MB, free: 5.254 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 2.929/2.929, allocations: 437.8 MB / 0.7121 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003469/0.0003469, allocations: 8 kB / 0.8728 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8531/0.8535, allocations: 153.8 MB / 1.023 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.004854/0.8584, allocations: 2.586 MB / 1.026 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00365/0.8621, allocations: 1.781 MB / 1.027 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.8623, allocations: 4 kB / 1.027 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002254/0.8625, allocations: 35.7 kB / 1.027 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0006172/0.8632, allocations: 183.3 kB / 1.028 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006574/0.8638, allocations: 215.5 kB / 1.028 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005632/0.8644, allocations: 430.8 kB / 1.028 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009249/0.8653, allocations: 382.9 kB / 1.028 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002314/0.8656, allocations: 99.56 kB / 1.029 GB, free: 10.08 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003903/0.866, allocations: 135.5 kB / 1.029 GB, free: 9.949 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.435e-05/0.866, allocations: 16 kB / 1.029 GB, free: 9.934 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006573/0.8667, allocations: 343.3 kB / 1.029 GB, free: 9.598 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001418/0.8669, allocations: 79.72 kB / 1.029 GB, free: 9.52 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001492/0.867, allocations: 125.2 kB / 1.029 GB, free: 9.391 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006153/0.8676, allocations: 432.6 kB / 1.03 GB, free: 8.969 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.8677, allocations: 0 / 1.03 GB, free: 8.969 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.583e-06/0.8677, allocations: 0 / 1.03 GB, free: 8.969 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.144e-06/0.8677, allocations: 0 / 1.03 GB, free: 8.969 MB / 0.7794 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.0009966/0.8687, allocations: 0.5184 MB / 1.03 GB, free: 8.398 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/0.8687, allocations: 12.03 kB / 1.03 GB, free: 8.387 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009576/0.8697, allocations: 112.5 kB / 1.03 GB, free: 8.277 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003834/0.8701, allocations: 257.4 kB / 1.031 GB, free: 7.988 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.221e-05/0.8701, allocations: 12.75 kB / 1.031 GB, free: 7.977 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.616e-05/0.8702, allocations: 24.36 kB / 1.031 GB, free: 7.953 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007639/0.871, allocations: 390.5 kB / 1.031 GB, free: 7.543 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.871, allocations: 4 kB / 1.031 GB, free: 7.539 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.551e-05/0.871, allocations: 11.92 kB / 1.031 GB, free: 7.527 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.227e-05/0.8711, allocations: 28.31 kB / 1.031 GB, free: 7.496 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007633/0.8719, allocations: 356.6 kB / 1.031 GB, free: 7.148 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002393/0.8743, allocations: 1.736 MB / 1.033 GB, free: 5.277 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008302/0.8751, allocations: 348.9 kB / 1.033 GB, free: 4.918 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003046/0.8754, allocations: 153.6 kB / 1.034 GB, free: 4.762 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001696/0.8756, allocations: 85.11 kB / 1.034 GB, free: 4.66 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.212e-05/0.8757, allocations: 42.55 kB / 1.034 GB, free: 4.609 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=20): time 2.044e-06/0.8757, allocations: 0 / 1.034 GB, free: 4.609 MB / 0.7794 GB Notification: Performance of matching and sorting (n=21): time 0.001551/0.8772, allocations: 0.6049 MB / 1.034 GB, free: 3.977 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.83e-05/0.8773, allocations: 81.09 kB / 1.034 GB, free: 3.879 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003231/0.8777, allocations: 211.7 kB / 1.034 GB, free: 3.664 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.529e-05/0.8777, allocations: 33.7 kB / 1.035 GB, free: 3.625 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.8778, allocations: 155.9 kB / 1.035 GB, free: 3.469 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.854e-05/0.8779, allocations: 82.91 kB / 1.035 GB, free: 3.387 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.856e-05/0.878, allocations: 29.7 kB / 1.035 GB, free: 3.352 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002119/0.8782, allocations: 326.8 kB / 1.035 GB, free: 3.023 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003196/0.8785, allocations: 136.5 kB / 1.035 GB, free: 2.891 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004065/0.879, allocations: 235.7 kB / 1.035 GB, free: 2.625 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006926/0.8797, allocations: 383.5 kB / 1.036 GB, free: 2.215 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.8797, allocations: 0 / 1.036 GB, free: 2.215 MB / 0.7794 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001105/0.8808, allocations: 448.6 kB / 1.036 GB, free: 1.77 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001474/0.8809, allocations: 174.5 kB / 1.036 GB, free: 1.559 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.881, allocations: 4 kB / 1.036 GB, free: 1.555 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002656/0.8812, allocations: 44.77 kB / 1.036 GB, free: 1.508 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003477/0.8816, allocations: 75.88 kB / 1.037 GB, free: 1.434 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00185/0.8834, allocations: 1.505 MB / 1.038 GB, free: 15.79 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003314/0.8838, allocations: 39.81 kB / 1.038 GB, free: 15.75 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.869e-05/0.8838, allocations: 8 kB / 1.038 GB, free: 15.75 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 8.977e-06/0.8838, allocations: 4 kB / 1.038 GB, free: 15.74 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008647/0.8847, allocations: 384.7 kB / 1.038 GB, free: 15.36 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.8847, allocations: 7.938 kB / 1.038 GB, free: 15.36 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001491/0.8849, allocations: 40.81 kB / 1.038 GB, free: 15.31 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003024/0.8852, allocations: 71.89 kB / 1.039 GB, free: 15.24 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00153/0.8867, allocations: 1.493 MB / 1.04 GB, free: 13.61 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002722/0.887, allocations: 35.81 kB / 1.04 GB, free: 13.57 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.33e-05/0.8871, allocations: 8 kB / 1.04 GB, free: 13.57 MB / 0.795 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.0002651/0.8873, allocations: 243.7 kB / 1.04 GB, free: 13.32 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.9e-05/0.8874, allocations: 15.81 kB / 1.04 GB, free: 13.3 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007922/0.8882, allocations: 369.8 kB / 1.041 GB, free: 12.94 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.8882, allocations: 7.984 kB / 1.041 GB, free: 12.93 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.8882, allocations: 0 / 1.041 GB, free: 12.93 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.8882, allocations: 3.938 kB / 1.041 GB, free: 12.93 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001651/0.8899, allocations: 0.9716 MB / 1.042 GB, free: 11.88 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.8899, allocations: 4.219 kB / 1.042 GB, free: 11.87 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002316/0.8902, allocations: 51.91 kB / 1.042 GB, free: 11.82 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001363/0.8903, allocations: 40.81 kB / 1.042 GB, free: 11.78 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.379e-05/0.8903, allocations: 8 kB / 1.042 GB, free: 11.77 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001535/0.8919, allocations: 1.405 MB / 1.043 GB, free: 10.23 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.177e-05/0.8919, allocations: 7.938 kB / 1.043 GB, free: 10.22 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008967/0.8928, allocations: 0.543 MB / 1.044 GB, free: 9.645 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001468/0.893, allocations: 132.7 kB / 1.044 GB, free: 9.496 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.609e-05/0.893, allocations: 8 kB / 1.044 GB, free: 9.488 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000268/0.8933, allocations: 27.95 kB / 1.044 GB, free: 9.461 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.939e-05/0.8934, allocations: 15.98 kB / 1.044 GB, free: 9.445 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.733e-05/0.8934, allocations: 8 kB / 1.044 GB, free: 9.438 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002201/0.8936, allocations: 167 kB / 1.044 GB, free: 9.273 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8936, allocations: 0 / 1.044 GB, free: 9.273 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006552/0.8943, allocations: 108 kB / 1.044 GB, free: 9.168 MB / 0.795 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.0001991/0.8945, allocations: 115.6 kB / 1.044 GB, free: 9.047 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001566/0.8961, allocations: 0.7711 MB / 1.045 GB, free: 8.25 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.8961, allocations: 0 / 1.045 GB, free: 8.25 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004528/0.8966, allocations: 279.1 kB / 1.045 GB, free: 7.965 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005237/0.8971, allocations: 31.98 kB / 1.045 GB, free: 7.934 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001153/0.8982, allocations: 0.6521 MB / 1.046 GB, free: 7.23 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005306/0.8988, allocations: 0.7717 MB / 1.047 GB, free: 6.434 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0003119/0.8991, allocations: 89.86 kB / 1.047 GB, free: 6.348 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.023e-05/0.8992, allocations: 31.42 kB / 1.047 GB, free: 6.316 MB / 0.795 GB Notification: Performance of SimCode: time 3e-07/0.8992, allocations: 0 / 1.047 GB, free: 6.316 MB / 0.795 GB Notification: Performance of Templates: time 0.008409/0.9076, allocations: 3.171 MB / 1.05 GB, free: 3.152 MB / 0.795 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=400 -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