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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001169/0.001169, allocations: 97.78 kB / 16.02 MB, free: 76 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.001172/0.001172, allocations: 187.3 kB / 16.92 MB, free: 6.75 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.45/1.45, allocations: 223.3 MB / 241 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.73/2.73, allocations: 437.8 MB / 0.7128 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003714/0.0003716, allocations: 11.98 kB / 0.8735 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8425/0.8429, allocations: 153.8 MB / 1.024 GB, free: 48 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.003772/0.8467, allocations: 2.586 MB / 1.026 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003048/0.8498, allocations: 1.785 MB / 1.028 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002072/0.85, allocations: 7.938 kB / 1.028 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002187/0.8502, allocations: 31.77 kB / 1.028 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0007005/0.8509, allocations: 183.3 kB / 1.028 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008044/0.8518, allocations: 219.4 kB / 1.028 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006974/0.8525, allocations: 430.9 kB / 1.029 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009794/0.8535, allocations: 378.9 kB / 1.029 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003156/0.8538, allocations: 99.62 kB / 1.029 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000384/0.8542, allocations: 139.5 kB / 1.029 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.805e-05/0.8543, allocations: 12 kB / 1.029 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006731/0.8549, allocations: 335.3 kB / 1.03 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001304/0.8551, allocations: 79.72 kB / 1.03 GB, free: 9.746 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000161/0.8552, allocations: 121.1 kB / 1.03 GB, free: 9.621 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006134/0.8559, allocations: 341.2 kB / 1.03 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.8559, allocations: 4 kB / 1.03 GB, free: 9.285 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.154e-06/0.8559, allocations: 0 / 1.03 GB, free: 9.285 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.072e-05/0.8559, allocations: 0 / 1.03 GB, free: 9.285 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.00113/0.857, allocations: 0.4952 MB / 1.031 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.473e-05/0.8571, allocations: 12.03 kB / 1.031 GB, free: 8.727 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001128/0.8582, allocations: 120.4 kB / 1.031 GB, free: 8.609 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004184/0.8587, allocations: 261.2 kB / 1.031 GB, free: 8.316 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.649e-05/0.8587, allocations: 16.75 kB / 1.031 GB, free: 8.301 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.099e-05/0.8588, allocations: 20.36 kB / 1.031 GB, free: 8.281 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008015/0.8596, allocations: 394.5 kB / 1.032 GB, free: 7.867 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.8596, allocations: 0 / 1.032 GB, free: 7.867 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.792e-05/0.8597, allocations: 11.98 kB / 1.032 GB, free: 7.855 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.753e-05/0.8597, allocations: 24.31 kB / 1.032 GB, free: 7.828 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007758/0.8605, allocations: 352.6 kB / 1.032 GB, free: 7.484 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002172/0.8627, allocations: 1.748 MB / 1.034 GB, free: 5.602 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007128/0.8634, allocations: 333.1 kB / 1.034 GB, free: 5.258 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000277/0.8637, allocations: 157.5 kB / 1.034 GB, free: 5.098 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001522/0.8639, allocations: 93.09 kB / 1.034 GB, free: 4.988 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.602e-05/0.8639, allocations: 34.5 kB / 1.034 GB, free: 4.945 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=20): time 1.443e-06/0.8639, allocations: 0 / 1.034 GB, free: 4.945 MB / 0.7794 GB Notification: Performance of matching and sorting (n=21): time 0.001422/0.8653, allocations: 0.6133 MB / 1.035 GB, free: 4.305 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.914e-05/0.8654, allocations: 81.11 kB / 1.035 GB, free: 4.207 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002701/0.8657, allocations: 215.6 kB / 1.035 GB, free: 3.988 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.023e-05/0.8657, allocations: 29.7 kB / 1.035 GB, free: 3.953 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.8658, allocations: 163.9 kB / 1.035 GB, free: 3.789 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.596e-05/0.8659, allocations: 74.86 kB / 1.035 GB, free: 3.715 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.033e-05/0.866, allocations: 33.64 kB / 1.035 GB, free: 3.676 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001302/0.8661, allocations: 330.8 kB / 1.036 GB, free: 3.344 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003078/0.8664, allocations: 144.5 kB / 1.036 GB, free: 3.203 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003478/0.8668, allocations: 223.8 kB / 1.036 GB, free: 2.949 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006246/0.8674, allocations: 385.3 kB / 1.036 GB, free: 2.539 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.8674, allocations: 0 / 1.036 GB, free: 2.539 MB / 0.7794 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008959/0.8683, allocations: 445.8 kB / 1.037 GB, free: 2.094 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001307/0.8685, allocations: 170.7 kB / 1.037 GB, free: 1.887 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.8685, allocations: 4 kB / 1.037 GB, free: 1.883 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002396/0.8687, allocations: 44.75 kB / 1.037 GB, free: 1.836 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003381/0.8691, allocations: 79.88 kB / 1.037 GB, free: 1.758 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001365/0.8705, allocations: 1.497 MB / 1.039 GB, free: 128 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003174/0.8708, allocations: 43.92 kB / 1.039 GB, free: 84 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.905e-05/0.8708, allocations: 12 kB / 1.039 GB, free: 72 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.985e-06/0.8708, allocations: 4 kB / 1.039 GB, free: 68 kB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008145/0.8717, allocations: 382.7 kB / 1.039 GB, free: 15.69 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.8717, allocations: 7.938 kB / 1.039 GB, free: 15.68 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001313/0.8718, allocations: 41.14 kB / 1.039 GB, free: 15.64 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003014/0.8721, allocations: 75.88 kB / 1.039 GB, free: 15.57 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001197/0.8733, allocations: 1.493 MB / 1.041 GB, free: 13.93 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000262/0.8736, allocations: 35.81 kB / 1.041 GB, free: 13.9 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.869e-05/0.8736, allocations: 15.98 kB / 1.041 GB, free: 13.88 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.0001991/0.8739, allocations: 229.5 kB / 1.041 GB, free: 13.65 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.026e-05/0.8739, allocations: 19.81 kB / 1.041 GB, free: 13.63 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007192/0.8747, allocations: 365.7 kB / 1.041 GB, free: 13.27 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.8747, allocations: 4 kB / 1.041 GB, free: 13.26 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.8747, allocations: 7.938 kB / 1.041 GB, free: 13.25 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.8747, allocations: 7.922 kB / 1.041 GB, free: 13.25 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001445/0.8761, allocations: 0.966 MB / 1.042 GB, free: 12.2 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.8762, allocations: 4 kB / 1.042 GB, free: 12.2 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002256/0.8764, allocations: 51.95 kB / 1.042 GB, free: 12.15 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001369/0.8765, allocations: 49.05 kB / 1.042 GB, free: 12.1 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.325e-05/0.8766, allocations: 4 kB / 1.042 GB, free: 12.09 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001033/0.8776, allocations: 1.409 MB / 1.044 GB, free: 10.55 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/0.8776, allocations: 7.922 kB / 1.044 GB, free: 10.54 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007396/0.8784, allocations: 0.5355 MB / 1.044 GB, free: 9.969 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001333/0.8785, allocations: 136.7 kB / 1.044 GB, free: 9.816 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.38e-05/0.8786, allocations: 4 kB / 1.044 GB, free: 9.812 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002673/0.8788, allocations: 27.97 kB / 1.044 GB, free: 9.785 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.572e-05/0.8789, allocations: 23.91 kB / 1.044 GB, free: 9.762 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-05/0.8789, allocations: 8 kB / 1.044 GB, free: 9.754 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002068/0.8792, allocations: 166.9 kB / 1.045 GB, free: 9.59 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.1e-07/0.8792, allocations: 0 / 1.045 GB, free: 9.59 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000631/0.8798, allocations: 112 kB / 1.045 GB, free: 9.48 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.0001655/0.88, allocations: 103.2 kB / 1.045 GB, free: 9.371 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001422/0.8814, allocations: 0.7628 MB / 1.045 GB, free: 8.586 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.8814, allocations: 4.062 kB / 1.045 GB, free: 8.582 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004146/0.8819, allocations: 274.4 kB / 1.046 GB, free: 8.301 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005222/0.8824, allocations: 35.97 kB / 1.046 GB, free: 8.266 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001184/0.8836, allocations: 0.6931 MB / 1.046 GB, free: 7.512 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004154/0.884, allocations: 0.7678 MB / 1.047 GB, free: 6.719 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.8841, allocations: 27.42 kB / 1.047 GB, free: 6.691 MB / 0.795 GB Notification: Performance of SimCode: time 4.71e-07/0.8841, allocations: 4 kB / 1.047 GB, free: 6.688 MB / 0.795 GB Notification: Performance of Templates: time 0.008043/0.8922, allocations: 4.262 MB / 1.051 GB, free: 2.426 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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