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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001514/0.001514, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002029/0.002029, allocations: 194 kB / 16.14 MB, free: 6.699 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.391/1.391, allocations: 222.9 MB / 239.8 MB, free: 4.645 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.842/2.842, allocations: 472.7 MB / 0.7447 GB, free: 4.887 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 62.67 kB / 0.9114 GB, free: 33.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3725/0.3738, allocations: 159.9 MB / 1.068 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.00569/0.3795, allocations: 2.949 MB / 1.07 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003395/0.383, allocations: 1.819 MB / 1.072 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002124/0.3832, allocations: 7.938 kB / 1.072 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0008794/0.3841, allocations: 223.2 kB / 1.072 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005948/0.3847, allocations: 183.3 kB / 1.073 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006243/0.3854, allocations: 207 kB / 1.073 GB, free: 5.449 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0005452/0.3859, allocations: 434.9 kB / 1.073 GB, free: 5.023 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004433/0.3864, allocations: 173.9 kB / 1.073 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002608/0.3866, allocations: 107.6 kB / 1.073 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003846/0.387, allocations: 163.4 kB / 1.074 GB, free: 4.586 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.69e-05/0.3871, allocations: 12 kB / 1.074 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006718/0.3878, allocations: 339.3 kB / 1.074 GB, free: 4.242 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001372/0.3879, allocations: 79.73 kB / 1.074 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001478/0.3881, allocations: 107.5 kB / 1.074 GB, free: 4.059 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000721/0.3888, allocations: 442.9 kB / 1.075 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.882e-06/0.3888, allocations: 0 / 1.075 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.936e-06/0.3888, allocations: 0 / 1.075 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.466e-05/0.3889, allocations: 3.938 kB / 1.075 GB, free: 3.621 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.001244/0.3901, allocations: 0.5536 MB / 1.075 GB, free: 3.016 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.3902, allocations: 8.031 kB / 1.075 GB, free: 3.008 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001083/0.3912, allocations: 112.5 kB / 1.075 GB, free: 2.898 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004378/0.3917, allocations: 257.4 kB / 1.075 GB, free: 2.609 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.298e-05/0.3917, allocations: 16.73 kB / 1.075 GB, free: 2.594 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.089e-05/0.3918, allocations: 16.38 kB / 1.076 GB, free: 2.578 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007629/0.3926, allocations: 390.5 kB / 1.076 GB, free: 2.16 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.3926, allocations: 0 / 1.076 GB, free: 2.16 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.773e-05/0.3926, allocations: 12 kB / 1.076 GB, free: 2.148 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.241e-05/0.3927, allocations: 24.31 kB / 1.076 GB, free: 2.125 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007804/0.3935, allocations: 340.6 kB / 1.076 GB, free: 1.793 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002172/0.3957, allocations: 1.74 MB / 1.078 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007066/0.3964, allocations: 333.1 kB / 1.078 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002739/0.3967, allocations: 149.6 kB / 1.078 GB, free: 15.42 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000152/0.3968, allocations: 85.11 kB / 1.078 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.899e-05/0.3969, allocations: 46.48 kB / 1.079 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=20): time 2.444e-06/0.3969, allocations: 0 / 1.079 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of matching and sorting (n=21): time 0.001444/0.3983, allocations: 0.5856 MB / 1.079 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.01e-05/0.3984, allocations: 89.28 kB / 1.079 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002847/0.3987, allocations: 215.7 kB / 1.079 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.464e-05/0.3987, allocations: 29.7 kB / 1.079 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.3988, allocations: 155.9 kB / 1.08 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 7.571e-05/0.3989, allocations: 78.94 kB / 1.08 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/0.399, allocations: 57.88 kB / 1.08 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001332/0.3992, allocations: 330.8 kB / 1.08 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000315/0.3995, allocations: 145.9 kB / 1.08 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003635/0.3999, allocations: 219.2 kB / 1.08 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006559/0.4005, allocations: 384.5 kB / 1.081 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.4006, allocations: 8 kB / 1.081 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009079/0.4015, allocations: 429 kB / 1.081 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.4015, allocations: 12 kB / 1.081 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/0.4015, allocations: 4 kB / 1.081 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002655/0.4018, allocations: 44.86 kB / 1.081 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003482/0.4022, allocations: 71.88 kB / 1.081 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001441/0.4036, allocations: 1.497 MB / 1.083 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003357/0.404, allocations: 43.73 kB / 1.083 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.054e-05/0.404, allocations: 8 kB / 1.083 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003773/0.4044, allocations: 240.7 kB / 1.083 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003441/0.4047, allocations: 219.3 kB / 1.083 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005691/0.4053, allocations: 348.4 kB / 1.084 GB, free: 9.723 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.033e-06/0.4053, allocations: 4 kB / 1.084 GB, free: 9.719 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0009043/0.4062, allocations: 431.8 kB / 1.084 GB, free: 9.289 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.4063, allocations: 4 kB / 1.084 GB, free: 9.285 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.4063, allocations: 7.984 kB / 1.084 GB, free: 9.277 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001573/0.4064, allocations: 36.83 kB / 1.084 GB, free: 9.238 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003289/0.4068, allocations: 75.88 kB / 1.084 GB, free: 9.164 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00136/0.4082, allocations: 1.497 MB / 1.086 GB, free: 7.527 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003163/0.4085, allocations: 35.81 kB / 1.086 GB, free: 7.492 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.733e-05/0.4085, allocations: 16.06 kB / 1.086 GB, free: 7.477 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.0001582/0.4087, allocations: 196.1 kB / 1.086 GB, free: 7.277 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.825e-05/0.4088, allocations: 19.81 kB / 1.086 GB, free: 7.258 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000735/0.4095, allocations: 365.1 kB / 1.086 GB, free: 6.898 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.4095, allocations: 7.938 kB / 1.086 GB, free: 6.891 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.4095, allocations: 0 / 1.086 GB, free: 6.891 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.4095, allocations: 0 / 1.086 GB, free: 6.891 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001551/0.4111, allocations: 0.9535 MB / 1.087 GB, free: 5.859 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.341e-06/0.4111, allocations: 4 kB / 1.087 GB, free: 5.855 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002321/0.4114, allocations: 51.89 kB / 1.087 GB, free: 5.805 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000134/0.4115, allocations: 36.83 kB / 1.087 GB, free: 5.766 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.679e-05/0.4115, allocations: 4 kB / 1.087 GB, free: 5.762 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001247/0.4128, allocations: 1.422 MB / 1.089 GB, free: 4.203 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4128, allocations: 0 / 1.089 GB, free: 4.203 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007413/0.4136, allocations: 0.5354 MB / 1.089 GB, free: 3.629 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001335/0.4137, allocations: 124.8 kB / 1.089 GB, free: 3.488 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.047e-05/0.4137, allocations: 7.938 kB / 1.089 GB, free: 3.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002879/0.414, allocations: 23.97 kB / 1.089 GB, free: 3.457 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.006e-05/0.4141, allocations: 23.91 kB / 1.089 GB, free: 3.434 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.542e-05/0.4142, allocations: 11.94 kB / 1.089 GB, free: 3.422 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002102/0.4144, allocations: 167 kB / 1.089 GB, free: 3.258 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4144, allocations: 0 / 1.089 GB, free: 3.258 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006506/0.415, allocations: 108 kB / 1.09 GB, free: 3.152 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.0001737/0.4152, allocations: 107.2 kB / 1.09 GB, free: 3.039 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00147/0.4167, allocations: 0.7441 MB / 1.09 GB, free: 2.27 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.68e-06/0.4167, allocations: 8.25 kB / 1.09 GB, free: 2.262 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004156/0.4171, allocations: 266.4 kB / 1.091 GB, free: 1.988 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005018/0.4177, allocations: 39.92 kB / 1.091 GB, free: 1.949 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.4187, allocations: 0.6479 MB / 1.091 GB, free: 1.258 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003691/0.4191, allocations: 0.7678 MB / 1.092 GB, free: 476 kB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003031/0.4194, allocations: 89.88 kB / 1.092 GB, free: 384 kB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.98e-05/0.4195, allocations: 23.42 kB / 1.092 GB, free: 364 kB / 0.8419 GB Notification: Performance of SimCode: time 5.01e-07/0.4195, allocations: 0 / 1.092 GB, free: 364 kB / 0.8419 GB Notification: Performance of Templates: time 0.007159/0.4267, allocations: 3.245 MB / 1.095 GB, free: 13.12 MB / 0.8575 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/jenkins/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