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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001386/0.001385, allocations: 107.9 kB / 16.41 MB, free: 6.488 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.001593/0.001593, allocations: 183 kB / 17.34 MB, free: 5.766 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.485/1.485, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.816/2.816, allocations: 461.9 MB / 0.7354 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001877/0.001877, allocations: 63.89 kB / 1.055 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8906/0.8925, allocations: 157.4 MB / 1.208 GB, free: 13.81 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.005074/0.8976, allocations: 2.891 MB / 1.211 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003124/0.9008, allocations: 1.807 MB / 1.213 GB, free: 9.098 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002346/0.901, allocations: 4 kB / 1.213 GB, free: 9.094 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.000957/0.902, allocations: 239 kB / 1.213 GB, free: 8.859 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0006232/0.9027, allocations: 199.1 kB / 1.213 GB, free: 8.664 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006631/0.9033, allocations: 227.4 kB / 1.214 GB, free: 8.441 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004929/0.9038, allocations: 303 kB / 1.214 GB, free: 8.145 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004109/0.9043, allocations: 182.3 kB / 1.214 GB, free: 7.961 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002892/0.9046, allocations: 139.5 kB / 1.214 GB, free: 7.824 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003629/0.9049, allocations: 143.5 kB / 1.214 GB, free: 7.684 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.693e-05/0.905, allocations: 20 kB / 1.214 GB, free: 7.664 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005584/0.9056, allocations: 283.4 kB / 1.215 GB, free: 7.387 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001109/0.9057, allocations: 79.8 kB / 1.215 GB, free: 7.309 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001419/0.9058, allocations: 119.4 kB / 1.215 GB, free: 7.191 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0007014/0.9065, allocations: 440.5 kB / 1.215 GB, free: 6.762 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.9066, allocations: 0 / 1.215 GB, free: 6.762 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.033e-06/0.9066, allocations: 0 / 1.215 GB, free: 6.762 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.738e-06/0.9066, allocations: 0 / 1.215 GB, free: 6.762 MB / 0.9356 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.9077, allocations: 0.5457 MB / 1.216 GB, free: 6.164 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.9077, allocations: 12.03 kB / 1.216 GB, free: 6.152 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009945/0.9087, allocations: 108.5 kB / 1.216 GB, free: 6.047 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004067/0.9092, allocations: 259.9 kB / 1.216 GB, free: 5.754 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.97e-05/0.9092, allocations: 16.75 kB / 1.216 GB, free: 5.738 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.689e-05/0.9092, allocations: 16.38 kB / 1.216 GB, free: 5.723 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007269/0.91, allocations: 394.5 kB / 1.217 GB, free: 5.305 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.91, allocations: 4 kB / 1.217 GB, free: 5.301 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.363e-05/0.91, allocations: 4 kB / 1.217 GB, free: 5.297 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-05/0.9101, allocations: 32.25 kB / 1.217 GB, free: 5.262 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007/0.9108, allocations: 340.6 kB / 1.217 GB, free: 4.93 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001988/0.9128, allocations: 1.732 MB / 1.219 GB, free: 3.062 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000711/0.9135, allocations: 333.1 kB / 1.219 GB, free: 2.719 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000265/0.9138, allocations: 153.6 kB / 1.219 GB, free: 2.562 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000149/0.914, allocations: 89.09 kB / 1.219 GB, free: 2.457 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.164e-05/0.914, allocations: 42.55 kB / 1.219 GB, free: 2.406 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=20): time 3.316e-06/0.914, allocations: 0 / 1.219 GB, free: 2.406 MB / 0.9356 GB Notification: Performance of matching and sorting (n=21): time 0.001407/0.9154, allocations: 0.5975 MB / 1.22 GB, free: 1.781 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.906e-05/0.9155, allocations: 81.11 kB / 1.22 GB, free: 1.684 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002754/0.9158, allocations: 216 kB / 1.22 GB, free: 1.461 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.709e-05/0.9158, allocations: 29.7 kB / 1.22 GB, free: 1.426 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.9159, allocations: 159.8 kB / 1.22 GB, free: 1.266 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.304e-05/0.916, allocations: 74.98 kB / 1.22 GB, free: 1.191 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/0.9161, allocations: 61.88 kB / 1.22 GB, free: 1.125 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001153/0.9162, allocations: 326.8 kB / 1.221 GB, free: 0.7969 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003004/0.9165, allocations: 145.9 kB / 1.221 GB, free: 0.6523 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000348/0.9169, allocations: 215.3 kB / 1.221 GB, free: 416 kB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006135/0.9175, allocations: 378 kB / 1.221 GB, free: 0 / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.9175, allocations: 0 / 1.221 GB, free: 0 / 0.9356 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009188/0.9185, allocations: 436.4 kB / 1.222 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.9185, allocations: 7.938 kB / 1.222 GB, free: 15.56 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.9185, allocations: 4 kB / 1.222 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00026/0.9188, allocations: 49.16 kB / 1.222 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003482/0.9192, allocations: 71.88 kB / 1.222 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001565/0.9207, allocations: 1.611 MB / 1.224 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003337/0.9211, allocations: 35.89 kB / 1.224 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.233e-05/0.9211, allocations: 19.98 kB / 1.224 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003994/0.9215, allocations: 240.7 kB / 1.224 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003438/0.9219, allocations: 216.4 kB / 1.224 GB, free: 13.13 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005842/0.9225, allocations: 352.2 kB / 1.224 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.598e-06/0.9225, allocations: 4 kB / 1.224 GB, free: 12.74 MB / 0.9512 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0008754/0.9234, allocations: 428.4 kB / 1.225 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.119e-05/0.9234, allocations: 8.031 kB / 1.225 GB, free: 12.31 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.9234, allocations: 8.062 kB / 1.225 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001466/0.9236, allocations: 40.81 kB / 1.225 GB, free: 12.26 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003112/0.9239, allocations: 71.89 kB / 1.225 GB, free: 12.19 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00136/0.9253, allocations: 1.611 MB / 1.226 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003184/0.9256, allocations: 35.81 kB / 1.226 GB, free: 10.4 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.535e-05/0.9256, allocations: 12.06 kB / 1.226 GB, free: 10.39 MB / 0.9512 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.0001647/0.9258, allocations: 192.2 kB / 1.227 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.864e-05/0.9259, allocations: 23.75 kB / 1.227 GB, free: 10.17 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007008/0.9266, allocations: 355.9 kB / 1.227 GB, free: 9.816 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.9266, allocations: 8 kB / 1.227 GB, free: 9.809 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.9266, allocations: 0 / 1.227 GB, free: 9.809 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.9266, allocations: 3.984 kB / 1.227 GB, free: 9.805 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001458/0.9281, allocations: 0.9676 MB / 1.228 GB, free: 8.758 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.112e-06/0.9281, allocations: 4 kB / 1.228 GB, free: 8.754 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002358/0.9284, allocations: 55.83 kB / 1.228 GB, free: 8.699 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001259/0.9285, allocations: 32.83 kB / 1.228 GB, free: 8.664 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.136e-05/0.9285, allocations: 8 kB / 1.228 GB, free: 8.656 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001185/0.9297, allocations: 1.516 MB / 1.23 GB, free: 6.996 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.9297, allocations: 4.031 kB / 1.23 GB, free: 6.992 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006949/0.9304, allocations: 0.5315 MB / 1.23 GB, free: 6.422 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001302/0.9306, allocations: 124.7 kB / 1.23 GB, free: 6.281 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.071e-05/0.9306, allocations: 15.92 kB / 1.23 GB, free: 6.266 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002699/0.9309, allocations: 19.97 kB / 1.23 GB, free: 6.246 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.175e-05/0.931, allocations: 27.86 kB / 1.23 GB, free: 6.219 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.819e-05/0.931, allocations: 12 kB / 1.23 GB, free: 6.207 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001945/0.9312, allocations: 159 kB / 1.23 GB, free: 6.051 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.61e-07/0.9312, allocations: 0 / 1.23 GB, free: 6.051 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0006436/0.9319, allocations: 112 kB / 1.231 GB, free: 5.941 MB / 0.9512 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.0002031/0.9321, allocations: 103.2 kB / 1.231 GB, free: 5.832 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001512/0.9336, allocations: 0.7724 MB / 1.231 GB, free: 5.039 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.9336, allocations: 0 / 1.231 GB, free: 5.039 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0004265/0.9341, allocations: 270.5 kB / 1.232 GB, free: 4.762 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005061/0.9346, allocations: 36.09 kB / 1.232 GB, free: 4.73 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001082/0.9357, allocations: 0.5772 MB / 1.232 GB, free: 4.102 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003742/0.9361, allocations: 0.7717 MB / 1.233 GB, free: 3.305 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001063/0.9362, allocations: 23.44 kB / 1.233 GB, free: 3.281 MB / 0.9512 GB Notification: Performance of SimCode: time 4.91e-07/0.9362, allocations: 0 / 1.233 GB, free: 3.281 MB / 0.9512 GB Notification: Performance of Templates: time 0.007512/0.9437, allocations: 4.334 MB / 1.237 GB, free: 14.95 MB / 0.9669 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) Reference file matches