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.001579/0.001579, allocations: 99.91 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.001713/0.001713, allocations: 193.2 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.397/1.397, allocations: 222.9 MB / 241 MB, free: 14.96 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.566/2.566, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 67.64 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3747/0.376, allocations: 153 MB / 1.027 GB, free: 2.082 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.004416/0.3805, allocations: 2.907 MB / 1.03 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002532/0.3831, allocations: 1.647 MB / 1.031 GB, free: 13.51 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001376/0.3832, allocations: 7.938 kB / 1.031 GB, free: 13.5 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0008065/0.3841, allocations: 251 kB / 1.031 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004141/0.3845, allocations: 175.1 kB / 1.032 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005676/0.3851, allocations: 227.4 kB / 1.032 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003585/0.3855, allocations: 311 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003436/0.3858, allocations: 178.3 kB / 1.032 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001858/0.386, allocations: 131.5 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002881/0.3863, allocations: 147.5 kB / 1.033 GB, free: 12.1 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.378e-05/0.3864, allocations: 20 kB / 1.033 GB, free: 12.08 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004064/0.3868, allocations: 247.5 kB / 1.033 GB, free: 11.84 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.79e-05/0.3869, allocations: 83.78 kB / 1.033 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001255/0.387, allocations: 119.3 kB / 1.033 GB, free: 11.64 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004795/0.3875, allocations: 418.8 kB / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.279e-06/0.3875, allocations: 0 / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.754e-06/0.3875, allocations: 0 / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.303e-05/0.3875, allocations: 4 kB / 1.033 GB, free: 11.23 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.0008966/0.3884, allocations: 0.5379 MB / 1.034 GB, free: 10.64 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.3885, allocations: 8.031 kB / 1.034 GB, free: 10.63 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000685/0.3892, allocations: 88.56 kB / 1.034 GB, free: 10.54 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003569/0.3895, allocations: 263.9 kB / 1.034 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.936e-05/0.3896, allocations: 16.75 kB / 1.034 GB, free: 10.23 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.85e-05/0.3896, allocations: 20.38 kB / 1.034 GB, free: 10.21 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005936/0.3902, allocations: 374.5 kB / 1.035 GB, free: 9.809 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.3903, allocations: 4 kB / 1.035 GB, free: 9.805 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.042e-05/0.3903, allocations: 15.92 kB / 1.035 GB, free: 9.789 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.542e-05/0.3903, allocations: 28.3 kB / 1.035 GB, free: 9.758 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005734/0.3909, allocations: 328.6 kB / 1.035 GB, free: 9.438 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001909/0.3928, allocations: 1.72 MB / 1.037 GB, free: 7.582 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007073/0.3936, allocations: 331.6 kB / 1.037 GB, free: 7.242 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002579/0.3938, allocations: 153.6 kB / 1.037 GB, free: 7.086 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001609/0.394, allocations: 89.11 kB / 1.037 GB, free: 6.98 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.497e-05/0.394, allocations: 30.56 kB / 1.037 GB, free: 6.941 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=20): time 1.854e-06/0.394, allocations: 0 / 1.037 GB, free: 6.941 MB / 0.8106 GB Notification: Performance of matching and sorting (n=21): time 0.001423/0.3955, allocations: 0.5997 MB / 1.038 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.231e-05/0.3955, allocations: 77.11 kB / 1.038 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002113/0.3958, allocations: 207.7 kB / 1.038 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.642e-05/0.3958, allocations: 29.7 kB / 1.038 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.3959, allocations: 159.9 kB / 1.038 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.932e-05/0.396, allocations: 74.94 kB / 1.038 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.3961, allocations: 57.97 kB / 1.038 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001451/0.3962, allocations: 330.8 kB / 1.039 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002529/0.3965, allocations: 137.9 kB / 1.039 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003128/0.3968, allocations: 219.8 kB / 1.039 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005566/0.3974, allocations: 367.4 kB / 1.039 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3974, allocations: 0 / 1.039 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007946/0.3982, allocations: 430.9 kB / 1.04 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/0.3982, allocations: 7.938 kB / 1.04 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.3983, allocations: 4 kB / 1.04 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002731/0.3985, allocations: 45.16 kB / 1.04 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003159/0.3989, allocations: 75.88 kB / 1.04 GB, free: 4 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001719/0.4006, allocations: 1.607 MB / 1.042 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002274/0.4008, allocations: 31.81 kB / 1.042 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.53e-05/0.4009, allocations: 8 kB / 1.042 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003559/0.4012, allocations: 232.6 kB / 1.042 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002699/0.4015, allocations: 215.3 kB / 1.042 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005141/0.402, allocations: 348.4 kB / 1.042 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.644e-06/0.402, allocations: 0 / 1.042 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.000718/0.4028, allocations: 407.7 kB / 1.043 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.4028, allocations: 8 kB / 1.043 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.015e-06/0.4028, allocations: 0 / 1.043 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001644/0.403, allocations: 48.75 kB / 1.043 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000256/0.4032, allocations: 63.89 kB / 1.043 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001565/0.4048, allocations: 1.607 MB / 1.044 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002089/0.405, allocations: 28.2 kB / 1.044 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.874e-05/0.4051, allocations: 23.98 kB / 1.044 GB, free: 15.02 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.0002015/0.4053, allocations: 198.2 kB / 1.045 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.871e-05/0.4054, allocations: 23.73 kB / 1.045 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007055/0.4061, allocations: 357.7 kB / 1.045 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.4061, allocations: 4 kB / 1.045 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.4061, allocations: 0 / 1.045 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.4061, allocations: 0 / 1.045 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001584/0.4077, allocations: 0.9628 MB / 1.046 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.4077, allocations: 4 kB / 1.046 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002185/0.4079, allocations: 51.89 kB / 1.046 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001418/0.4081, allocations: 36.83 kB / 1.046 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.007e-05/0.4081, allocations: 4 kB / 1.046 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001252/0.4094, allocations: 1.52 MB / 1.048 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.4094, allocations: 8.031 kB / 1.048 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007169/0.4101, allocations: 0.5324 MB / 1.048 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001348/0.4103, allocations: 124.8 kB / 1.048 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.519e-05/0.4103, allocations: 11.88 kB / 1.048 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002281/0.4106, allocations: 24.11 kB / 1.048 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.351e-05/0.4107, allocations: 23.91 kB / 1.048 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.796e-05/0.4107, allocations: 12 kB / 1.048 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001548/0.4108, allocations: 155 kB / 1.048 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4109, allocations: 0 / 1.048 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0006555/0.4115, allocations: 108 kB / 1.048 GB, free: 10.59 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.0002067/0.4117, allocations: 104.5 kB / 1.049 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.00132/0.4131, allocations: 0.7422 MB / 1.049 GB, free: 9.711 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.4131, allocations: 0 / 1.049 GB, free: 9.711 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003764/0.4135, allocations: 270.7 kB / 1.05 GB, free: 9.434 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004771/0.4139, allocations: 38.8 kB / 1.05 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009892/0.4149, allocations: 0.5563 MB / 1.05 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000351/0.4153, allocations: 0.7717 MB / 1.051 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002116/0.4155, allocations: 85.86 kB / 1.051 GB, free: 7.914 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.719e-05/0.4156, allocations: 27.42 kB / 1.051 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of SimCode: time 5.91e-07/0.4156, allocations: 0 / 1.051 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of Templates: time 0.007023/0.4227, allocations: 3.271 MB / 1.054 GB, free: 4.625 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 cvode -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