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.002519/0.002518, allocations: 115.7 kB / 16.42 MB, free: 6.516 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.002462/0.002462, allocations: 190.7 kB / 17.35 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.263/2.263, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.396/3.396, allocations: 461.9 MB / 0.7354 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001655/0.001655, allocations: 63.91 kB / 1.055 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.119/1.121, allocations: 157.4 MB / 1.208 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.005607/1.127, allocations: 2.892 MB / 1.211 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003466/1.13, allocations: 1.811 MB / 1.213 GB, free: 8.961 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002405/1.13, allocations: 4 kB / 1.213 GB, free: 8.957 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0009557/1.131, allocations: 239 kB / 1.213 GB, free: 8.723 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0006757/1.132, allocations: 199.1 kB / 1.213 GB, free: 8.527 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007407/1.133, allocations: 227.4 kB / 1.214 GB, free: 8.305 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0005677/1.133, allocations: 319 kB / 1.214 GB, free: 7.992 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000458/1.134, allocations: 174.3 kB / 1.214 GB, free: 7.816 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003271/1.134, allocations: 127.5 kB / 1.214 GB, free: 7.691 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004278/1.135, allocations: 143.5 kB / 1.214 GB, free: 7.551 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 7.565e-05/1.135, allocations: 23.94 kB / 1.214 GB, free: 7.527 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006349/1.135, allocations: 275.5 kB / 1.215 GB, free: 7.258 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001521/1.136, allocations: 91.78 kB / 1.215 GB, free: 7.168 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.000189/1.136, allocations: 115.4 kB / 1.215 GB, free: 7.055 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0008953/1.137, allocations: 444.4 kB / 1.215 GB, free: 6.625 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/1.137, allocations: 0 / 1.215 GB, free: 6.625 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.034e-06/1.137, allocations: 0 / 1.215 GB, free: 6.625 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.243e-05/1.137, allocations: 0 / 1.215 GB, free: 6.625 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.001309/1.138, allocations: 0.5457 MB / 1.216 GB, free: 6.027 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/1.138, allocations: 8.031 kB / 1.216 GB, free: 6.02 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001076/1.139, allocations: 112.5 kB / 1.216 GB, free: 5.91 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004133/1.14, allocations: 265.4 kB / 1.216 GB, free: 5.613 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/1.14, allocations: 12.75 kB / 1.216 GB, free: 5.602 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.456e-05/1.14, allocations: 24.34 kB / 1.216 GB, free: 5.578 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007651/1.14, allocations: 390.5 kB / 1.217 GB, free: 5.164 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/1.141, allocations: 7.922 kB / 1.217 GB, free: 5.156 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.807e-05/1.141, allocations: 7.984 kB / 1.217 GB, free: 5.148 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.858e-05/1.141, allocations: 28.31 kB / 1.217 GB, free: 5.117 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007501/1.141, allocations: 336.6 kB / 1.217 GB, free: 4.789 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002377/1.144, allocations: 1.74 MB / 1.219 GB, free: 2.914 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000776/1.145, allocations: 329 kB / 1.219 GB, free: 2.574 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000321/1.145, allocations: 149.6 kB / 1.219 GB, free: 2.422 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001734/1.145, allocations: 93.09 kB / 1.219 GB, free: 2.312 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.178e-05/1.145, allocations: 34.5 kB / 1.219 GB, free: 2.27 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=20): time 2.104e-06/1.145, allocations: 0 / 1.219 GB, free: 2.27 MB / 0.9356 GB Notification: Performance of matching and sorting (n=21): time 0.001557/1.147, allocations: 0.5958 MB / 1.22 GB, free: 1.645 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.469e-05/1.147, allocations: 81.11 kB / 1.22 GB, free: 1.547 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003077/1.147, allocations: 207.8 kB / 1.22 GB, free: 1.332 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.007e-05/1.147, allocations: 29.7 kB / 1.22 GB, free: 1.297 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/1.147, allocations: 167.8 kB / 1.22 GB, free: 1.129 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.603e-05/1.147, allocations: 63.02 kB / 1.22 GB, free: 1.066 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001267/1.147, allocations: 69.88 kB / 1.22 GB, free: 0.9922 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001599/1.148, allocations: 330.8 kB / 1.221 GB, free: 0.6602 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003273/1.148, allocations: 137.9 kB / 1.221 GB, free: 0.5234 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003767/1.148, allocations: 223.3 kB / 1.221 GB, free: 276 kB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006815/1.149, allocations: 370 kB / 1.221 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/1.149, allocations: 7.938 kB / 1.221 GB, free: 15.86 MB / 0.9512 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009958/1.15, allocations: 440.5 kB / 1.222 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.443e-05/1.15, allocations: 9.719 kB / 1.222 GB, free: 15.42 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/1.15, allocations: 0 / 1.222 GB, free: 15.42 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002566/1.15, allocations: 40.83 kB / 1.222 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003474/1.151, allocations: 71.88 kB / 1.222 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001667/1.152, allocations: 1.619 MB / 1.224 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003438/1.153, allocations: 43.98 kB / 1.224 GB, free: 13.49 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.413e-05/1.153, allocations: 8 kB / 1.224 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004502/1.153, allocations: 236.6 kB / 1.224 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004053/1.154, allocations: 228.3 kB / 1.224 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006667/1.154, allocations: 356.2 kB / 1.224 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.444e-06/1.154, allocations: 0 / 1.224 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0009701/1.155, allocations: 432.2 kB / 1.225 GB, free: 12.17 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/1.155, allocations: 4 kB / 1.225 GB, free: 12.17 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/1.155, allocations: 4 kB / 1.225 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001591/1.156, allocations: 36.83 kB / 1.225 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003159/1.156, allocations: 76.12 kB / 1.225 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001639/1.158, allocations: 1.603 MB / 1.226 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003475/1.158, allocations: 35.81 kB / 1.226 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.006e-05/1.158, allocations: 12 kB / 1.226 GB, free: 10.26 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.0001862/1.158, allocations: 200.1 kB / 1.227 GB, free: 10.05 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/1.158, allocations: 19.8 kB / 1.227 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007681/1.159, allocations: 360 kB / 1.227 GB, free: 9.68 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/1.159, allocations: 0 / 1.227 GB, free: 9.68 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/1.159, allocations: 4 kB / 1.227 GB, free: 9.676 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001642/1.159, allocations: 117 kB / 1.227 GB, free: 9.543 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.431e-05/1.159, allocations: 19.98 kB / 1.227 GB, free: 9.523 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003051/1.16, allocations: 35.95 kB / 1.227 GB, free: 9.488 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.625e-05/1.16, allocations: 19.91 kB / 1.227 GB, free: 9.469 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008549/1.161, allocations: 0.4911 MB / 1.228 GB, free: 8.969 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009228/1.161, allocations: 0.6951 MB / 1.228 GB, free: 8.258 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002619/1.162, allocations: 127.9 kB / 1.229 GB, free: 8.133 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0002065/1.162, allocations: 163 kB / 1.229 GB, free: 7.973 MB / 0.9512 GB Notification: Performance of Backend: time 7.62e-07/1.162, allocations: 0 / 1.229 GB, free: 7.973 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0022/1.164, allocations: 0.8494 MB / 1.229 GB, free: 7.09 MB / 0.9512 GB Notification: Performance of SimCode: time 0.001296/1.165, allocations: 0.8983 MB / 1.23 GB, free: 6.145 MB / 0.9512 GB Notification: Performance of Templates: time 0.01409/1.18, allocations: 6.398 MB / 1.237 GB, free: 15.75 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