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.001633/0.001633, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002755/0.002755, allocations: 192.2 kB / 16.25 MB, free: 6.633 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.487/1.487, allocations: 222.9 MB / 239.9 MB, free: 4.539 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.821/2.821, allocations: 437 MB / 0.71 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 63.91 kB / 0.8687 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8328/0.8342, allocations: 151.6 MB / 1.017 GB, free: 2.77 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.009052/0.8433, allocations: 2.946 MB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.005355/0.8488, allocations: 1.793 MB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003232/0.8491, allocations: 4 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001395/0.8506, allocations: 223.2 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.001083/0.8517, allocations: 187.3 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009823/0.8527, allocations: 207.6 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000699/0.8534, allocations: 315 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006985/0.8541, allocations: 192.4 kB / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003749/0.8545, allocations: 131.5 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004486/0.855, allocations: 155.5 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.919e-05/0.8551, allocations: 24 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007992/0.8559, allocations: 279.5 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001566/0.8561, allocations: 87.72 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002022/0.8563, allocations: 115.5 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001084/0.8574, allocations: 448.6 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.8574, allocations: 0 / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.264e-06/0.8574, allocations: 3.938 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.094e-05/0.8575, allocations: 0 / 1.024 GB, free: 11.68 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.001507/0.859, allocations: 0.5652 MB / 1.024 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.626e-05/0.859, allocations: 8.031 kB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001385/0.8604, allocations: 112.5 kB / 1.024 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000467/0.8609, allocations: 257.4 kB / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.503e-05/0.861, allocations: 12.75 kB / 1.025 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.182e-05/0.861, allocations: 16.38 kB / 1.025 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009259/0.862, allocations: 394.5 kB / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.233e-05/0.862, allocations: 3.938 kB / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.409e-05/0.8621, allocations: 8 kB / 1.025 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.576e-05/0.8621, allocations: 28.31 kB / 1.025 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009858/0.8631, allocations: 340.6 kB / 1.025 GB, free: 9.84 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003258/0.8664, allocations: 1.732 MB / 1.027 GB, free: 7.973 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001059/0.8675, allocations: 344.9 kB / 1.027 GB, free: 7.617 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003496/0.8679, allocations: 145.6 kB / 1.028 GB, free: 7.469 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002305/0.8681, allocations: 85.11 kB / 1.028 GB, free: 7.367 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.456e-05/0.8682, allocations: 46.55 kB / 1.028 GB, free: 7.312 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=20): time 3.667e-06/0.8682, allocations: 0 / 1.028 GB, free: 7.312 MB / 0.7794 GB Notification: Performance of matching and sorting (n=21): time 0.001814/0.87, allocations: 0.5825 MB / 1.028 GB, free: 6.703 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.547e-05/0.8702, allocations: 85.3 kB / 1.028 GB, free: 6.602 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003532/0.8705, allocations: 215.7 kB / 1.028 GB, free: 6.383 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.066e-05/0.8706, allocations: 29.7 kB / 1.029 GB, free: 6.348 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001551/0.8707, allocations: 155.9 kB / 1.029 GB, free: 6.191 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 8.307e-05/0.8708, allocations: 82.89 kB / 1.029 GB, free: 6.109 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001432/0.871, allocations: 53.97 kB / 1.029 GB, free: 6.051 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001864/0.8712, allocations: 330.8 kB / 1.029 GB, free: 5.719 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003423/0.8715, allocations: 145.9 kB / 1.029 GB, free: 5.574 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003722/0.8719, allocations: 219.8 kB / 1.029 GB, free: 5.324 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006504/0.8725, allocations: 377.2 kB / 1.03 GB, free: 4.922 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.8726, allocations: 0 / 1.03 GB, free: 4.922 MB / 0.7794 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001064/0.8736, allocations: 433.7 kB / 1.03 GB, free: 4.488 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.755e-05/0.8737, allocations: 12.33 kB / 1.03 GB, free: 4.477 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.8737, allocations: 11.94 kB / 1.03 GB, free: 4.465 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002653/0.874, allocations: 40.83 kB / 1.03 GB, free: 4.422 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003549/0.8743, allocations: 71.88 kB / 1.03 GB, free: 4.352 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001869/0.8762, allocations: 1.615 MB / 1.032 GB, free: 2.594 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003759/0.8766, allocations: 43.86 kB / 1.032 GB, free: 2.551 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.132e-05/0.8766, allocations: 12 kB / 1.032 GB, free: 2.539 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004477/0.8771, allocations: 244 kB / 1.032 GB, free: 2.297 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003379/0.8774, allocations: 215.6 kB / 1.032 GB, free: 2.047 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005605/0.878, allocations: 352.9 kB / 1.033 GB, free: 1.664 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.876e-06/0.878, allocations: 0 / 1.033 GB, free: 1.664 MB / 0.7794 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0008632/0.8789, allocations: 423.2 kB / 1.033 GB, free: 1.242 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.8789, allocations: 8 kB / 1.033 GB, free: 1.234 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.8789, allocations: 0 / 1.033 GB, free: 1.234 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00019/0.8791, allocations: 44.81 kB / 1.033 GB, free: 1.188 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003006/0.8794, allocations: 71.88 kB / 1.033 GB, free: 1.117 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001612/0.8811, allocations: 1.616 MB / 1.035 GB, free: 15.36 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003171/0.8814, allocations: 31.91 kB / 1.035 GB, free: 15.32 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.428e-05/0.8814, allocations: 12 kB / 1.035 GB, free: 15.31 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.0001622/0.8816, allocations: 192.7 kB / 1.035 GB, free: 15.12 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.311e-05/0.8817, allocations: 27.59 kB / 1.035 GB, free: 15.09 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007186/0.8824, allocations: 348.2 kB / 1.035 GB, free: 14.74 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.8824, allocations: 4 kB / 1.035 GB, free: 14.74 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.8824, allocations: 3.984 kB / 1.035 GB, free: 14.73 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.84e-06/0.8824, allocations: 4 kB / 1.035 GB, free: 14.73 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001567/0.884, allocations: 0.9754 MB / 1.036 GB, free: 13.68 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.884, allocations: 224 / 1.036 GB, free: 13.68 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000235/0.8843, allocations: 55.89 kB / 1.036 GB, free: 13.62 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001298/0.8844, allocations: 36.77 kB / 1.037 GB, free: 13.58 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.155e-05/0.8844, allocations: 8 kB / 1.037 GB, free: 13.57 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00139/0.8858, allocations: 1.512 MB / 1.038 GB, free: 11.92 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.8858, allocations: 0 / 1.038 GB, free: 11.92 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007266/0.8866, allocations: 0.5392 MB / 1.039 GB, free: 11.34 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001328/0.8867, allocations: 128.8 kB / 1.039 GB, free: 11.2 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.27e-05/0.8868, allocations: 15.84 kB / 1.039 GB, free: 11.18 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002723/0.8871, allocations: 19.97 kB / 1.039 GB, free: 11.16 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.208e-05/0.8871, allocations: 15.98 kB / 1.039 GB, free: 11.14 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.001e-05/0.8872, allocations: 19.88 kB / 1.039 GB, free: 11.12 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002011/0.8874, allocations: 167 kB / 1.039 GB, free: 10.96 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.91e-07/0.8874, allocations: 0 / 1.039 GB, free: 10.96 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.00073/0.8881, allocations: 112 kB / 1.039 GB, free: 10.85 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.00016/0.8883, allocations: 101.2 kB / 1.039 GB, free: 10.74 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001579/0.8899, allocations: 0.7782 MB / 1.04 GB, free: 9.941 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.8899, allocations: 1 kB / 1.04 GB, free: 9.941 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000408/0.8903, allocations: 266.6 kB / 1.04 GB, free: 9.668 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004695/0.8908, allocations: 31.98 kB / 1.04 GB, free: 9.637 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/0.8919, allocations: 0.6416 MB / 1.041 GB, free: 8.949 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004565/0.8924, allocations: 0.7678 MB / 1.041 GB, free: 8.156 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0003107/0.8927, allocations: 93.86 kB / 1.042 GB, free: 8.066 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.735e-05/0.8928, allocations: 23.42 kB / 1.042 GB, free: 8.043 MB / 0.795 GB Notification: Performance of SimCode: time 5.11e-07/0.8928, allocations: 0 / 1.042 GB, free: 8.043 MB / 0.795 GB Notification: Performance of Templates: time 0.008157/0.901, allocations: 3.38 MB / 1.045 GB, free: 4.672 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=480 -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