Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001344/0.001344, allocations: 104 kB / 15.99 MB, free: 5.891 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.001447/0.001447, allocations: 193 kB / 16.91 MB, free: 5.746 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.361/1.361, allocations: 222.9 MB / 240.6 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.749/2.749, allocations: 469.8 MB / 0.7427 GB, free: 7.582 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001818/0.001818, allocations: 69.12 kB / 0.9087 GB, free: 34.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2771/0.279, allocations: 159.2 MB / 1.064 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.004963/0.284, allocations: 2.931 MB / 1.067 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003083/0.2871, allocations: 1.807 MB / 1.069 GB, free: 9.855 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001409/0.2873, allocations: 4 kB / 1.069 GB, free: 9.852 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000826/0.2881, allocations: 220.3 kB / 1.069 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005097/0.2886, allocations: 179.3 kB / 1.069 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005756/0.2892, allocations: 207.6 kB / 1.069 GB, free: 9.258 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003963/0.2896, allocations: 315 kB / 1.07 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004474/0.2901, allocations: 202.3 kB / 1.07 GB, free: 8.75 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000214/0.2903, allocations: 131.5 kB / 1.07 GB, free: 8.621 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002982/0.2906, allocations: 147.5 kB / 1.07 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.874e-05/0.2907, allocations: 23.94 kB / 1.07 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004761/0.2911, allocations: 283.4 kB / 1.07 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000128/0.2913, allocations: 87.77 kB / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001374/0.2914, allocations: 111.5 kB / 1.071 GB, free: 7.98 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005214/0.292, allocations: 339.5 kB / 1.071 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.292, allocations: 4 kB / 1.071 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.833e-06/0.292, allocations: 0 / 1.071 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.476e-06/0.292, allocations: 0 / 1.071 GB, free: 7.645 MB / 0.8262 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.001106/0.2931, allocations: 0.5419 MB / 1.071 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.733e-05/0.2932, allocations: 12.03 kB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009729/0.2941, allocations: 108.5 kB / 1.072 GB, free: 6.934 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003666/0.2945, allocations: 267.7 kB / 1.072 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.368e-05/0.2946, allocations: 16.75 kB / 1.072 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.561e-05/0.2946, allocations: 20.38 kB / 1.072 GB, free: 6.598 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007402/0.2954, allocations: 394.5 kB / 1.072 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.2954, allocations: 0 / 1.072 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.156e-05/0.2954, allocations: 4 kB / 1.072 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-05/0.2955, allocations: 28.31 kB / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007249/0.2962, allocations: 344.6 kB / 1.073 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002269/0.2985, allocations: 1.736 MB / 1.074 GB, free: 3.938 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007419/0.2992, allocations: 333 kB / 1.075 GB, free: 3.594 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000282/0.2995, allocations: 157.5 kB / 1.075 GB, free: 3.434 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001511/0.2997, allocations: 93.09 kB / 1.075 GB, free: 3.324 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/0.2997, allocations: 30.56 kB / 1.075 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=20): time 1.312e-06/0.2997, allocations: 0 / 1.075 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of matching and sorting (n=21): time 0.001398/0.3011, allocations: 0.597 MB / 1.075 GB, free: 2.66 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.051e-05/0.3012, allocations: 81.05 kB / 1.076 GB, free: 2.562 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002671/0.3015, allocations: 215.7 kB / 1.076 GB, free: 2.344 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.841e-05/0.3015, allocations: 29.7 kB / 1.076 GB, free: 2.309 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.3017, allocations: 163.9 kB / 1.076 GB, free: 2.145 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.571e-05/0.3017, allocations: 74.92 kB / 1.076 GB, free: 2.07 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001204/0.3019, allocations: 65.88 kB / 1.076 GB, free: 2 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001544/0.302, allocations: 326.8 kB / 1.076 GB, free: 1.672 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003057/0.3023, allocations: 137.9 kB / 1.077 GB, free: 1.535 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003638/0.3027, allocations: 223.3 kB / 1.077 GB, free: 1.281 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006305/0.3033, allocations: 375.6 kB / 1.077 GB, free: 0.8789 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3034, allocations: 0 / 1.077 GB, free: 0.8789 MB / 0.8262 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008895/0.3043, allocations: 434.5 kB / 1.077 GB, free: 456 kB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.3043, allocations: 5.406 kB / 1.077 GB, free: 452 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.3043, allocations: 4 kB / 1.077 GB, free: 448 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002256/0.3045, allocations: 40.81 kB / 1.078 GB, free: 404 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003414/0.3049, allocations: 80.12 kB / 1.078 GB, free: 324 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001623/0.3065, allocations: 1.611 MB / 1.079 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003158/0.3068, allocations: 43.86 kB / 1.079 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.858e-05/0.3069, allocations: 12 kB / 1.079 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003801/0.3073, allocations: 236.6 kB / 1.079 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003344/0.3076, allocations: 215.3 kB / 1.08 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00059/0.3082, allocations: 353 kB / 1.08 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.758e-06/0.3082, allocations: 4 kB / 1.08 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0008432/0.3091, allocations: 421.6 kB / 1.08 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/0.3091, allocations: 8 kB / 1.08 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.3091, allocations: 4.375 kB / 1.08 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001375/0.3092, allocations: 48.75 kB / 1.08 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002969/0.3096, allocations: 63.89 kB / 1.081 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001477/0.311, allocations: 1.611 MB / 1.082 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002929/0.3113, allocations: 35.86 kB / 1.082 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.533e-05/0.3114, allocations: 20 kB / 1.082 GB, free: 11.27 MB / 0.8419 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.0001547/0.3115, allocations: 192.2 kB / 1.082 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.842e-05/0.3116, allocations: 23.75 kB / 1.082 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007047/0.3123, allocations: 361.6 kB / 1.083 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.3123, allocations: 7.938 kB / 1.083 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.3123, allocations: 0 / 1.083 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.3124, allocations: 3.984 kB / 1.083 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001502/0.3139, allocations: 0.956 MB / 1.084 GB, free: 9.645 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.3139, allocations: 144 / 1.084 GB, free: 9.645 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002334/0.3141, allocations: 59.89 kB / 1.084 GB, free: 9.586 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001229/0.3142, allocations: 44.81 kB / 1.084 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.232e-05/0.3143, allocations: 12.22 kB / 1.084 GB, free: 9.527 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00129/0.3156, allocations: 1.512 MB / 1.085 GB, free: 7.875 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3156, allocations: 0 / 1.085 GB, free: 7.875 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007376/0.3163, allocations: 0.5276 MB / 1.086 GB, free: 7.309 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001269/0.3165, allocations: 120.8 kB / 1.086 GB, free: 7.172 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.247e-05/0.3165, allocations: 23.8 kB / 1.086 GB, free: 7.148 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002715/0.3168, allocations: 23.97 kB / 1.086 GB, free: 7.125 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.715e-05/0.3169, allocations: 19.98 kB / 1.086 GB, free: 7.105 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.533e-05/0.3169, allocations: 8 kB / 1.086 GB, free: 7.098 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001935/0.3171, allocations: 159.2 kB / 1.086 GB, free: 6.941 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3171, allocations: 0 / 1.086 GB, free: 6.941 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006106/0.3177, allocations: 108 kB / 1.086 GB, free: 6.836 MB / 0.8419 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.000168/0.3179, allocations: 115.9 kB / 1.086 GB, free: 6.715 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001457/0.3194, allocations: 0.7654 MB / 1.087 GB, free: 5.926 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3194, allocations: 0 / 1.087 GB, free: 5.926 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004156/0.3198, allocations: 266.4 kB / 1.087 GB, free: 5.652 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004559/0.3203, allocations: 35.64 kB / 1.087 GB, free: 5.621 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.3213, allocations: 0.6858 MB / 1.088 GB, free: 4.883 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004332/0.3218, allocations: 0.7678 MB / 1.089 GB, free: 4.09 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.3219, allocations: 31.38 kB / 1.089 GB, free: 4.059 MB / 0.8419 GB Notification: Performance of SimCode: time 1.91e-07/0.3219, allocations: 0 / 1.089 GB, free: 4.059 MB / 0.8419 GB Notification: Performance of Templates: time 0.006709/0.3286, allocations: 4.319 MB / 1.093 GB, free: 15.75 MB / 0.8575 GB make -j1 -f Buildings_11_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_11_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_11_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_11_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_11_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches