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.001317/0.001317, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001842/0.001842, allocations: 183.6 kB / 16.92 MB, free: 6.926 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.552/1.552, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.752/2.752, allocations: 462.7 MB / 0.7371 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003676/0.0003676, allocations: 8.531 kB / 0.9034 GB, free: 36.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3158/0.3162, allocations: 159.6 MB / 1.059 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.003653/0.3199, allocations: 2.573 MB / 1.062 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002932/0.3228, allocations: 1.8 MB / 1.064 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001844/0.3231, allocations: 4 kB / 1.064 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002084/0.3233, allocations: 35.72 kB / 1.064 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0006248/0.3239, allocations: 187.3 kB / 1.064 GB, free: 380 kB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006003/0.3245, allocations: 203.5 kB / 1.064 GB, free: 176 kB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005518/0.3251, allocations: 430.8 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008422/0.326, allocations: 383 kB / 1.065 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002267/0.3262, allocations: 111.5 kB / 1.065 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003153/0.3265, allocations: 143.5 kB / 1.065 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.085e-05/0.3266, allocations: 8 kB / 1.065 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006103/0.3272, allocations: 335.3 kB / 1.065 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.3273, allocations: 67.8 kB / 1.065 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001417/0.3274, allocations: 137.1 kB / 1.066 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004773/0.3279, allocations: 327.4 kB / 1.066 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.3279, allocations: 0 / 1.066 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.673e-06/0.328, allocations: 0 / 1.066 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.014e-05/0.328, allocations: 0 / 1.066 GB, free: 14.24 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.000905/0.3289, allocations: 0.5108 MB / 1.066 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.3289, allocations: 8.031 kB / 1.066 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009903/0.3299, allocations: 112.5 kB / 1.066 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003624/0.3303, allocations: 263.8 kB / 1.067 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.063e-05/0.3303, allocations: 16.73 kB / 1.067 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.058e-05/0.3304, allocations: 16.38 kB / 1.067 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007309/0.3311, allocations: 398.5 kB / 1.067 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.3312, allocations: 0 / 1.067 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.411e-05/0.3312, allocations: 8 kB / 1.067 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-05/0.3312, allocations: 24.31 kB / 1.067 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007232/0.332, allocations: 348.6 kB / 1.067 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001908/0.3339, allocations: 1.748 MB / 1.069 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007046/0.3346, allocations: 337.1 kB / 1.07 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003347/0.335, allocations: 157.6 kB / 1.07 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000147/0.3351, allocations: 93.09 kB / 1.07 GB, free: 9.934 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/0.3352, allocations: 30.56 kB / 1.07 GB, free: 9.895 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=20): time 1.693e-06/0.3352, allocations: 0 / 1.07 GB, free: 9.895 MB / 0.8262 GB Notification: Performance of matching and sorting (n=21): time 0.001455/0.3366, allocations: 0.6167 MB / 1.07 GB, free: 9.25 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.181e-05/0.3367, allocations: 81.11 kB / 1.07 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002799/0.337, allocations: 215.7 kB / 1.071 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.622e-05/0.337, allocations: 37.64 kB / 1.071 GB, free: 8.891 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.469e-05/0.3371, allocations: 155.9 kB / 1.071 GB, free: 8.734 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.622e-05/0.3372, allocations: 74.94 kB / 1.071 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.101e-05/0.3372, allocations: 29.7 kB / 1.071 GB, free: 8.625 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001168/0.3374, allocations: 326.8 kB / 1.071 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003118/0.3377, allocations: 144.5 kB / 1.071 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003508/0.338, allocations: 215.3 kB / 1.072 GB, free: 7.91 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006446/0.3387, allocations: 392.1 kB / 1.072 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.3387, allocations: 4 kB / 1.072 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009497/0.3397, allocations: 448 kB / 1.072 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001215/0.3398, allocations: 174.5 kB / 1.073 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.864e-06/0.3398, allocations: 4.047 kB / 1.073 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002424/0.3401, allocations: 48.81 kB / 1.073 GB, free: 6.777 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003479/0.3404, allocations: 71.88 kB / 1.073 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001463/0.3419, allocations: 1.489 MB / 1.074 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003337/0.3423, allocations: 39.89 kB / 1.074 GB, free: 5.035 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.928e-05/0.3423, allocations: 12 kB / 1.074 GB, free: 5.023 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.185e-06/0.3423, allocations: 8.062 kB / 1.074 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008459/0.3432, allocations: 384.4 kB / 1.075 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.3432, allocations: 7.938 kB / 1.075 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001339/0.3433, allocations: 36.83 kB / 1.075 GB, free: 4.59 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003095/0.3436, allocations: 71.88 kB / 1.075 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001222/0.3449, allocations: 1.493 MB / 1.076 GB, free: 2.887 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002716/0.3452, allocations: 39.88 kB / 1.076 GB, free: 2.848 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.622e-05/0.3452, allocations: 16 kB / 1.076 GB, free: 2.832 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.0002298/0.3454, allocations: 231 kB / 1.076 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.015e-05/0.3455, allocations: 19.81 kB / 1.076 GB, free: 2.578 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007261/0.3462, allocations: 371.9 kB / 1.077 GB, free: 2.207 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.3463, allocations: 4 kB / 1.077 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.3463, allocations: 0 / 1.077 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.3463, allocations: 7.938 kB / 1.077 GB, free: 2.195 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001499/0.3478, allocations: 0.9677 MB / 1.078 GB, free: 1.148 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.3478, allocations: 0 / 1.078 GB, free: 1.148 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002363/0.348, allocations: 63.83 kB / 1.078 GB, free: 1.086 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000124/0.3482, allocations: 32.83 kB / 1.078 GB, free: 1.051 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.199e-05/0.3482, allocations: 8 kB / 1.078 GB, free: 1.043 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001128/0.3493, allocations: 1.41 MB / 1.079 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.571e-06/0.3494, allocations: 7.969 kB / 1.079 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007454/0.3501, allocations: 0.5432 MB / 1.08 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001381/0.3503, allocations: 128.8 kB / 1.08 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.88e-05/0.3503, allocations: 12 kB / 1.08 GB, free: 14.76 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002718/0.3506, allocations: 23.97 kB / 1.08 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.24e-05/0.3507, allocations: 27.91 kB / 1.08 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.79e-05/0.3507, allocations: 12 kB / 1.08 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002114/0.3509, allocations: 159 kB / 1.08 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.4e-07/0.3509, allocations: 0 / 1.08 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006209/0.3515, allocations: 108 kB / 1.08 GB, free: 14.43 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.0001608/0.3517, allocations: 107.2 kB / 1.08 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001373/0.3531, allocations: 0.7612 MB / 1.081 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3531, allocations: 3.938 kB / 1.081 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004079/0.3535, allocations: 275.9 kB / 1.081 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005256/0.3541, allocations: 35.27 kB / 1.081 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.3551, allocations: 0.7024 MB / 1.082 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004662/0.3556, allocations: 0.7717 MB / 1.083 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001044/0.3557, allocations: 27.44 kB / 1.083 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of SimCode: time 3.8e-07/0.3557, allocations: 0 / 1.083 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of Templates: time 0.007229/0.363, allocations: 4.276 MB / 1.087 GB, free: 7.363 MB / 0.8419 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 -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) "" Variables in the reference:time,grid.P.real,grid.P.apparent Variables in the result:grid.P.apparent,grid.P.real,time