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.001303/0.001303, allocations: 110.4 kB / 16.42 MB, free: 6.508 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.001323/0.001323, allocations: 185.5 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 1.485/1.485, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.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.7/2.7, allocations: 437 MB / 0.7112 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 63.91 kB / 1.019 GB, free: 9.438 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.134/1.136, allocations: 151.6 MB / 1.167 GB, free: 3.844 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.00517/1.141, allocations: 2.895 MB / 1.17 GB, free: 0.9375 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.003342/1.144, allocations: 1.804 MB / 1.172 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001441/1.144, allocations: 4 kB / 1.172 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0008491/1.145, allocations: 244.6 kB / 1.172 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0004898/1.146, allocations: 199.1 kB / 1.172 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005555/1.146, allocations: 227.4 kB / 1.173 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0004178/1.147, allocations: 315 kB / 1.173 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003513/1.147, allocations: 178.3 kB / 1.173 GB, free: 13.97 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002039/1.147, allocations: 131.5 kB / 1.173 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003324/1.148, allocations: 143.5 kB / 1.173 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 4.093e-05/1.148, allocations: 20 kB / 1.173 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004591/1.148, allocations: 283.4 kB / 1.174 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.000101/1.148, allocations: 83.8 kB / 1.174 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001286/1.148, allocations: 115.4 kB / 1.174 GB, free: 13.21 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0005293/1.149, allocations: 440.4 kB / 1.174 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/1.149, allocations: 3.938 kB / 1.174 GB, free: 12.78 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.402e-06/1.149, allocations: 0 / 1.174 GB, free: 12.78 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 7.104e-06/1.149, allocations: 0 / 1.174 GB, free: 12.78 MB / 0.9044 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.0009214/1.15, allocations: 0.5535 MB / 1.175 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/1.15, allocations: 8.031 kB / 1.175 GB, free: 12.17 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009165/1.151, allocations: 104.5 kB / 1.175 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003704/1.151, allocations: 259.9 kB / 1.175 GB, free: 11.77 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.775e-05/1.151, allocations: 24.73 kB / 1.175 GB, free: 11.75 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.974e-05/1.151, allocations: 16.38 kB / 1.175 GB, free: 11.73 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006712/1.152, allocations: 394.5 kB / 1.175 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/1.152, allocations: 4 kB / 1.175 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.343e-05/1.152, allocations: 4 kB / 1.175 GB, free: 11.31 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.504e-05/1.152, allocations: 24.3 kB / 1.175 GB, free: 11.29 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006948/1.153, allocations: 336.6 kB / 1.176 GB, free: 10.96 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002466/1.155, allocations: 1.74 MB / 1.178 GB, free: 9.082 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007205/1.156, allocations: 337 kB / 1.178 GB, free: 8.734 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002729/1.156, allocations: 145.6 kB / 1.178 GB, free: 8.586 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001504/1.156, allocations: 101.1 kB / 1.178 GB, free: 8.469 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.034e-05/1.156, allocations: 30.56 kB / 1.178 GB, free: 8.43 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=20): time 1.903e-06/1.157, allocations: 7.938 kB / 1.178 GB, free: 8.422 MB / 0.9044 GB Notification: Performance of matching and sorting (n=21): time 0.001435/1.158, allocations: 0.5942 MB / 1.179 GB, free: 7.801 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001615/1.158, allocations: 77.11 kB / 1.179 GB, free: 7.707 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000294/1.158, allocations: 216 kB / 1.179 GB, free: 7.488 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.861e-05/1.158, allocations: 25.7 kB / 1.179 GB, free: 7.457 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/1.159, allocations: 167.8 kB / 1.179 GB, free: 7.289 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 6.53e-05/1.159, allocations: 67 kB / 1.179 GB, free: 7.223 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/1.159, allocations: 65.88 kB / 1.179 GB, free: 7.152 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001309/1.159, allocations: 326.8 kB / 1.18 GB, free: 6.824 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003898/1.159, allocations: 145.9 kB / 1.18 GB, free: 6.68 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004326/1.16, allocations: 220.4 kB / 1.18 GB, free: 6.43 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006191/1.16, allocations: 373.4 kB / 1.18 GB, free: 6.031 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/1.16, allocations: 0 / 1.18 GB, free: 6.031 MB / 0.9044 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009045/1.161, allocations: 445.7 kB / 1.181 GB, free: 5.586 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/1.161, allocations: 4 kB / 1.181 GB, free: 5.582 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/1.161, allocations: 4 kB / 1.181 GB, free: 5.578 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002394/1.162, allocations: 41.17 kB / 1.181 GB, free: 5.535 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003503/1.162, allocations: 75.88 kB / 1.181 GB, free: 5.461 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001597/1.164, allocations: 1.619 MB / 1.182 GB, free: 3.695 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003112/1.164, allocations: 35.89 kB / 1.182 GB, free: 3.66 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.294e-05/1.164, allocations: 12 kB / 1.182 GB, free: 3.648 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003726/1.164, allocations: 244 kB / 1.183 GB, free: 3.406 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000333/1.165, allocations: 215.5 kB / 1.183 GB, free: 3.156 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005767/1.165, allocations: 353.1 kB / 1.183 GB, free: 2.773 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.517e-06/1.165, allocations: 4 kB / 1.183 GB, free: 2.77 MB / 0.9044 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0008782/1.166, allocations: 424.2 kB / 1.184 GB, free: 2.348 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 9.998e-06/1.166, allocations: 12.03 kB / 1.184 GB, free: 2.336 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/1.166, allocations: 4 kB / 1.184 GB, free: 2.332 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000142/1.166, allocations: 40.83 kB / 1.184 GB, free: 2.289 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003101/1.167, allocations: 71.88 kB / 1.184 GB, free: 2.219 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001461/1.168, allocations: 1.604 MB / 1.185 GB, free: 472 kB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002933/1.168, allocations: 39.75 kB / 1.185 GB, free: 432 kB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.453e-05/1.168, allocations: 16.06 kB / 1.185 GB, free: 416 kB / 0.9044 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.0002075/1.169, allocations: 192.2 kB / 1.186 GB, free: 216 kB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.721e-05/1.169, allocations: 23.8 kB / 1.186 GB, free: 192 kB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007212/1.169, allocations: 348 kB / 1.186 GB, free: 15.84 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/1.169, allocations: 4 kB / 1.186 GB, free: 15.84 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/1.169, allocations: 0 / 1.186 GB, free: 15.84 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/1.17, allocations: 120.8 kB / 1.186 GB, free: 15.7 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.096e-05/1.17, allocations: 12.06 kB / 1.186 GB, free: 15.69 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002825/1.17, allocations: 31.89 kB / 1.186 GB, free: 15.66 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.476e-05/1.17, allocations: 23.86 kB / 1.186 GB, free: 15.63 MB / 0.92 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008807/1.171, allocations: 0.489 MB / 1.187 GB, free: 15.13 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001014/1.172, allocations: 0.6956 MB / 1.187 GB, free: 14.42 MB / 0.92 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002353/1.172, allocations: 144 kB / 1.187 GB, free: 14.28 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001902/1.172, allocations: 162.8 kB / 1.188 GB, free: 14.12 MB / 0.92 GB Notification: Performance of Backend: time 7.32e-07/1.172, allocations: 0 / 1.188 GB, free: 14.12 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.002086/1.174, allocations: 0.8589 MB / 1.188 GB, free: 13.23 MB / 0.92 GB Notification: Performance of SimCode: time 0.00115/1.176, allocations: 0.8886 MB / 1.189 GB, free: 12.3 MB / 0.92 GB Notification: Performance of Templates: time 0.0112/1.187, allocations: 6.284 MB / 1.195 GB, free: 6.02 MB / 0.92 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) Reference file matches