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.001833/0.001833, allocations: 110 kB / 15.99 MB, free: 5.895 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.002206/0.002206, allocations: 194.5 kB / 16.91 MB, free: 5.742 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.892/1.892, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.835/2.835, allocations: 482.4 MB / 0.755 GB, free: 7.211 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 72.67 kB / 0.924 GB, free: 356 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8352/0.8372, allocations: 162.2 MB / 1.082 GB, free: 1.891 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.004536/0.8418, allocations: 2.944 MB / 1.085 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.003531/0.8454, allocations: 1.789 MB / 1.087 GB, free: 14.67 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000195/0.8456, allocations: 3.688 kB / 1.087 GB, free: 14.67 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0009273/0.8466, allocations: 220 kB / 1.087 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.000642/0.8472, allocations: 182.7 kB / 1.087 GB, free: 14.45 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007439/0.848, allocations: 218.8 kB / 1.088 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0004402/0.8485, allocations: 305.4 kB / 1.088 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004886/0.849, allocations: 209.2 kB / 1.088 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002454/0.8492, allocations: 124.5 kB / 1.088 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003298/0.8495, allocations: 159 kB / 1.088 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.15e-05/0.8496, allocations: 20.47 kB / 1.088 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006233/0.8502, allocations: 283.1 kB / 1.089 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001381/0.8504, allocations: 80.31 kB / 1.089 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001636/0.8505, allocations: 117 kB / 1.089 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0006061/0.8512, allocations: 338 kB / 1.089 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.8512, allocations: 1.188 kB / 1.089 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.863e-06/0.8512, allocations: 3.938 kB / 1.089 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.622e-06/0.8512, allocations: 0 / 1.089 GB, free: 13.7 MB / 0.8419 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.001096/0.8523, allocations: 0.5479 MB / 1.09 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.8524, allocations: 13.25 kB / 1.09 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000984/0.8533, allocations: 109.2 kB / 1.09 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003847/0.8537, allocations: 260.5 kB / 1.09 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.279e-05/0.8538, allocations: 15.88 kB / 1.09 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.538e-05/0.8538, allocations: 16.88 kB / 1.09 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008072/0.8546, allocations: 391.2 kB / 1.09 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.8547, allocations: 5.562 kB / 1.09 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.705e-05/0.8547, allocations: 9.609 kB / 1.091 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.977e-05/0.8548, allocations: 26.77 kB / 1.091 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007716/0.8556, allocations: 339.9 kB / 1.091 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00243/0.858, allocations: 1.743 MB / 1.093 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008119/0.8588, allocations: 331.8 kB / 1.093 GB, free: 11 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003042/0.8591, allocations: 146.5 kB / 1.093 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001766/0.8593, allocations: 94.73 kB / 1.093 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.8594, allocations: 33.58 kB / 1.093 GB, free: 10.81 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=20): time 2.254e-06/0.8594, allocations: 0 / 1.093 GB, free: 10.81 MB / 0.8419 GB Notification: Performance of matching and sorting (n=21): time 0.001595/0.861, allocations: 0.6037 MB / 1.094 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.209e-05/0.8611, allocations: 80.3 kB / 1.094 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003073/0.8614, allocations: 209 kB / 1.094 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.229e-05/0.8614, allocations: 31.52 kB / 1.094 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001397/0.8616, allocations: 165.5 kB / 1.094 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 7.871e-05/0.8616, allocations: 66.19 kB / 1.094 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001331/0.8618, allocations: 64.41 kB / 1.094 GB, free: 9.996 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001779/0.862, allocations: 333.3 kB / 1.095 GB, free: 9.672 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003501/0.8623, allocations: 142.7 kB / 1.095 GB, free: 9.621 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004268/0.8628, allocations: 217.4 kB / 1.095 GB, free: 9.477 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000725/0.8635, allocations: 375.1 kB / 1.095 GB, free: 9.258 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.8635, allocations: 1.375 kB / 1.095 GB, free: 9.258 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009822/0.8645, allocations: 436.6 kB / 1.096 GB, free: 9.082 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.8645, allocations: 6.219 kB / 1.096 GB, free: 9.082 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/0.8645, allocations: 3.469 kB / 1.096 GB, free: 9.082 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002688/0.8648, allocations: 39.5 kB / 1.096 GB, free: 9.07 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003794/0.8652, allocations: 75.16 kB / 1.096 GB, free: 9.062 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001815/0.867, allocations: 1.616 MB / 1.097 GB, free: 7.539 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003604/0.8674, allocations: 33.94 kB / 1.097 GB, free: 7.531 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.323e-05/0.8674, allocations: 12.09 kB / 1.097 GB, free: 7.531 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004245/0.8679, allocations: 236.1 kB / 1.098 GB, free: 7.398 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003782/0.8683, allocations: 220.1 kB / 1.098 GB, free: 7.242 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006676/0.8689, allocations: 357.5 kB / 1.098 GB, free: 7.023 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.866e-06/0.869, allocations: 1.094 kB / 1.098 GB, free: 7.023 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0009511/0.8699, allocations: 426.7 kB / 1.099 GB, free: 6.844 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.8699, allocations: 10.98 kB / 1.099 GB, free: 6.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.8699, allocations: 2.5 kB / 1.099 GB, free: 6.84 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000157/0.8701, allocations: 40.33 kB / 1.099 GB, free: 6.828 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003255/0.8704, allocations: 72.3 kB / 1.099 GB, free: 6.82 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001736/0.8722, allocations: 1.616 MB / 1.1 GB, free: 5.301 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003359/0.8725, allocations: 40.53 kB / 1.1 GB, free: 5.285 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.182e-05/0.8726, allocations: 14.58 kB / 1.1 GB, free: 5.281 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.0002293/0.8728, allocations: 199.9 kB / 1.101 GB, free: 5.086 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001023/0.8729, allocations: 20.81 kB / 1.101 GB, free: 5.074 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007941/0.8737, allocations: 353.8 kB / 1.101 GB, free: 4.926 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.8737, allocations: 4.156 kB / 1.101 GB, free: 4.926 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.8738, allocations: 4 kB / 1.101 GB, free: 4.922 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.8738, allocations: 3.078 kB / 1.101 GB, free: 4.922 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001736/0.8755, allocations: 0.9593 MB / 1.102 GB, free: 4.301 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.8755, allocations: 1.125 kB / 1.102 GB, free: 4.301 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002441/0.8758, allocations: 59.47 kB / 1.102 GB, free: 4.289 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001302/0.8759, allocations: 35.09 kB / 1.102 GB, free: 4.277 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.62e-05/0.8759, allocations: 7.406 kB / 1.102 GB, free: 4.273 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001475/0.8774, allocations: 1.512 MB / 1.103 GB, free: 2.812 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.167e-06/0.8775, allocations: 6.438 kB / 1.104 GB, free: 2.809 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008416/0.8783, allocations: 0.5385 MB / 1.104 GB, free: 2.438 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001539/0.8785, allocations: 125.1 kB / 1.104 GB, free: 2.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.635e-05/0.8785, allocations: 16.64 kB / 1.104 GB, free: 2.309 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002801/0.8788, allocations: 24.34 kB / 1.104 GB, free: 2.305 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.734e-05/0.8789, allocations: 18.36 kB / 1.104 GB, free: 2.301 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-05/0.8789, allocations: 7.734 kB / 1.104 GB, free: 2.301 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002181/0.8791, allocations: 166.7 kB / 1.104 GB, free: 2.195 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.3e-07/0.8792, allocations: 0 / 1.104 GB, free: 2.195 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0007303/0.8799, allocations: 109.2 kB / 1.104 GB, free: 2.184 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.0001936/0.8801, allocations: 107.9 kB / 1.105 GB, free: 2.09 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001666/0.8818, allocations: 0.7788 MB / 1.105 GB, free: 1.676 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 6.271e-06/0.8818, allocations: 5.219 kB / 1.105 GB, free: 1.672 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004262/0.8822, allocations: 265.1 kB / 1.106 GB, free: 1.516 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005028/0.8827, allocations: 38.56 kB / 1.106 GB, free: 1.5 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00119/0.8839, allocations: 0.6883 MB / 1.106 GB, free: 1.02 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004319/0.8844, allocations: 0.7668 MB / 1.107 GB, free: 324 kB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.8845, allocations: 25.73 kB / 1.107 GB, free: 316 kB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.8845, allocations: 0 / 1.107 GB, free: 316 kB / 0.8419 GB Notification: Performance of Templates: time 0.008741/0.8932, allocations: 4.297 MB / 1.111 GB, free: 15.99 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=400 -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